# ElevenLabs

> This page is about FlutterFlow (the app builder you use by describing your app), not FlutterFlow Studio.

URL: https://docs.flutterflow.io/ffx/elevenlabs

Connect your ElevenLabs API key, and then ask the agent for a feature that speaks text aloud, makes sound effects, or transcribes recordings, billed to your ElevenLabs account.

Use ElevenLabs to add a feature that reads text aloud in a voice from your ElevenLabs account, makes sound effects from a description, or transcribes a recording. You need an API key from ElevenLabs.

## Connect ElevenLabs {#connect-elevenlabs}

To connect ElevenLabs, you must be a project owner. Everyone on the project can use it after an owner connects it. Create an API key in ElevenLabs under **Developers › API Keys**. The key starts with `sk_`, and ElevenLabs shows it only once. If you restrict the key to some endpoints, allow Text to Speech, Sound Effects, Speech to Text, and Voices (read).

1. Open **Project Settings › Connections**.
2. Turn on the switch for **ElevenLabs**. The **Connect ElevenLabs** dialog opens.
3. If the dialog lists keys from your other apps, choose one. FlutterFlow connects it, and you're done.
4. To use a new key instead, click **Paste an API key** if the dialog shows it. Paste your key into **API key**, and click **Connect**. To open ElevenLabs' API keys page, click **Find it** beside the label.

## Cost {#cost}

ElevenLabs bills every speech clip, sound effect, and transcript to your ElevenLabs account's credits: speech by its characters, sound effects by their length, and transcripts by the recording's length. A call that's tried again is billed again.

## What to ask

To ask for an ElevenLabs feature, tell the agent what the feature does, that it uses ElevenLabs, and which voice speaks. To pick a voice, ask the agent to list the voices that your key can use, with a sample of each:

> Example request: "Which voices can my connected ElevenLabs key use?"

> Example request: "On each transaction, add a Read aloud button that uses ElevenLabs to speak the payee and the amount in the [voice name] voice."

> Example request: "Let people upload a short voice recording to a transaction, and then use ElevenLabs to transcribe it into the transaction's note."

Speech and sound effects come back as MP3 files. The agent has your app save them in **Backend › Files** and play them from there. Long text is spoken in several calls, one part at a time. To transcribe a recording, ElevenLabs downloads it from your app's files, so keep recordings to a few minutes.

## Agent questions {#agent-questions}

If ElevenLabs isn't connected, the agent asks you to connect it in a card above the message box. See [Connect when the agent asks](https://docs.flutterflow.io/ffx/connect-a-service#connect-when-the-agent-asks).

## Review {#review}

After the agent finishes, read the turn's [**Summary**](https://docs.flutterflow.io/ffx/what-changed#summary) and review its [**Changes**](https://docs.flutterflow.io/ffx/what-changed#changes-tab). Check the affected screens in **Screens**, and try the change in **Preview**. If the change uses records or sign-in, test it with [the thread's own data in **Data**](https://docs.flutterflow.io/ffx/thread-data).

After you push a backend change, check the result in **Backend**.

Try the feature in the preview, and listen to the clip or read the transcript. ElevenLabs can't reach recordings in the preview's files, so to try a transcript in the preview, use a recording at a public `https` link. Each try is billed to your ElevenLabs account.

## Call limit {#call-limit}

Your app and the agent share a limit of 30 calls a minute to ElevenLabs through your app's connection. See [Limits](https://docs.flutterflow.io/ffx/limits#connections).

## Push {#push}

After you test the feature, [push the changes to your app](https://docs.flutterflow.io/ffx/push).

## Next steps {#next-steps}

- To replace the key or disconnect ElevenLabs, see [Manage connections](https://docs.flutterflow.io/ffx/manage-connections).

## Troubleshooting {#troubleshooting}

- **ElevenLabs refuses your key:** see [A service refuses your key](https://docs.flutterflow.io/ffx/troubleshoot-connections#key-refused).
- **The dialog says that your key is a Stripe, OpenAI, or Anthropic key:** ElevenLabs keys start with `sk_`, with an underscore. Paste the key from **Developers › API Keys** in ElevenLabs.
- **Calls fail because the key isn't allowed to make them:** in ElevenLabs, under **Developers › API Keys**, allow Text to Speech, Sound Effects, Speech to Text, and Voices (read) on the key, or [replace the key](https://docs.flutterflow.io/ffx/manage-connections#replace-key).
- **Calls fail because your account is out of credits:** add credits or upgrade your plan in ElevenLabs, or raise the key's credit limit.
- **Calls fail because ElevenLabs is busy:** your ElevenLabs plan limits how many requests run at once. Wait a moment, and try again. FlutterFlow also limits how often one connection can be called each minute.
- **Speech fails because the clip is too large:** ask the agent to send less text in each call.
- **A transcript fails:** the link to the recording must open the recording itself on the public internet and must not have expired. Check the recording in **Backend › Files**, and try again.
- **Your app shows a message about the service:** see [Messages shown in your app](https://docs.flutterflow.io/ffx/troubleshoot-connections#app-messages).
