Generate a sound effect from a text prompt
Generates a non-speech audio clip - a sound effect or ambience - from a text prompt. Gateway extension: OpenAI has no sound-effects endpoint, so this mirrors the shape of POST /audio/speech (JSON in, raw audio bytes out) rather than an upstream OpenAI operation. The response is the generated audio as raw binary bytes; the actual Content-Type header of the response reflects the requested response_format (e.g. audio/mpeg for mp3).
Not every provider implements sound-effect generation. Requests routed to a provider that does not support it return 400 Bad Request with an explanatory error message.
Query parameters
Specific provider to use (default determined by model)
Request body
Response
The generated audio as raw binary bytes. The actual Content-Type header of the response reflects the requested response_format.
Changes
Changed in 2 of the 77 revisions of this API.11
- ▲
removed the enum value
wavof the request propertyrequest-property-enum-value-removed
- ▲
- ○
endpoint added
endpoint-added
- ○