POST /audio/speech

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
input String Yes

The text to generate audio for. The maximum length is 4096 characters.

voice Yes
speed Number No

The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.

Default value: 1

response_format String No

The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm.

Possible values:

  • "opus"
  • "mp3"
  • "pcm"
  • "flac"
  • "aac"
  • "wav"

Default value: "mp3"

model Yes

One of the available TTS models: tts-1, tts-1-hd or gpt-4o-mini-tts.

instructions String No

Control the voice of your generated audio with additional instructions. Does not work with tts-1 or tts-1-hd.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.