apicheats.dev Cheat sheet Raw .md
POST

Try POST /v1/flows/text-to-speech — ElevenLabs API

ElevenLabs playground

Create Speech Generation

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.elevenlabs.io; the proxy stores and logs nothing about them.

Body application/json

8 body fields
  • webhook · optional · object — Include to send the generation's result to the workspace's configured flows webhooks once it completes or fails. The webhook payload matches the terminal response of the corresponding GET endpoint.
  • text · required · string — The text to synthesize into speech.
  • voice · required · string — The ID of the voice to speak with.
  • output_format · optional · string — The audio encoding of the output, as `codec_sampleRateHz_bitrateKbps`. `mp3_44100_192` requires the Creator tier or above.
  • pronunciation_dictionary_locators · optional · object[] — Pronunciation dictionaries to apply to the text, in order of precedence. Up to 3.
  • model_id · required · string — The model to use for the generation.
  • language_code · optional · string — ISO 639-1 language code to enforce on the output. Omit to detect the language from the text.
  • voice_settings · optional · object — Overrides for the voice's saved settings, applied to this generation only.