Create speech
Generates audio from the input text.
Returns the audio file content, or a stream of audio events.
Request body
Example request
{
"voice": {
"id": "voice_1234"
}
}Response
OK
Changes
Changed in 11 of the 163 revisions of this API.1528
- ○
added the media type
audio/aacfor the response with the statusresponse-media-type-added
- ○
added the media type
audio/flacfor the response with the statusresponse-media-type-added
- ○
added the media type
audio/mpegfor the response with the statusresponse-media-type-added
- ○
added the media type
audio/opusfor the response with the statusresponse-media-type-added
- ○
added the media type
audio/pcmfor the response with the statusresponse-media-type-added
- ○
added the media type
audio/wavfor the response with the statusresponse-media-type-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ▲
removed from the
request propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1to therequest propertyanyOflistrequest-property-any-of-added
- ▲
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ▲
removed
subschema #1subschema #2from therequest propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added
subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added the new
gpt-4o-mini-tts-2025-12-15enum value to the request property/request-property-enum-value-added
- ○
added the media type
text/event-streamfor the response with the statusresponse-media-type-added
This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the enum value
alloyof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
ashof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
coralof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
echoof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
fableof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
novaof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
onyxof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
sageof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
shimmerof the request propertyrequest-property-enum-value-removed
- ▲
the
request property type changed fromstringto no typerequest-property-type-changed
- ○
added the new optional request property
new-optional-request-property
- ○
added
subschema #1subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added the new
gpt-4o-mini-ttsenum value to the request property/request-property-enum-value-added
- ▲
- ○
added the new
ashenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
coralenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
sageenum value to the request propertyrequest-property-enum-value-added
- ○
- ▲
removed the enum value
ashof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
coralof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
sageof the request propertyrequest-property-enum-value-removed
- ▲