cURL
curl --request POST \ --url http://localhost:8080/openai/audio/speech \ --header 'Content-Type: application/json' \ --data '{ "model": "<string>", "input": "<string>", "voice": "<string>", "instructions": "<string>", "response_format": "<string>", "speed": 123 }'
This response does not have an example.
OpenAI-compatible speech synthesis endpoint.
Model to use for speech synthesis in 'provider/model' format
Text to convert to speech
Additional instructions for voice synthesis
Audio format for the response
Speed of the generated audio
Audio file
The response is of type file.
file
Was this page helpful?