Speech
Create speech (OpenAI-compatible)
Generate audio from text in OpenAI's text-to-speech format
/v1/audio/speechGenerate audio from text using the format of OpenAI's /v1/audio/speech endpoint. To use the OpenAI SDKs with Inworld, set the base URL, API key, model, and voice to Inworld values. See OpenAI Compatibility for SDK examples, audio formats, and streaming.
An Inworld model ID. See Models. OpenAI model names such as tts-1 are rejected.
The text to synthesize, up to 4,000 characters. Inline markup such as steering tags and pause controls is supported.
An Inworld voice ID, or the ID of one of your custom voices. Voice IDs are case-sensitive. OpenAI voice names such as alloy are not available.
response_formatenum<string>default: "mp3"
The audio format. mp3, opus, flac, and wav are 48 kHz mono. pcm is raw 16-bit signed little-endian mono samples at 24 kHz, with no header. aac is not supported.
Available options:mp3opusflacwavpcm
A natural-language steering instruction for the whole request. Supported on inworld-tts-2 only; other models ignore it.