1. The Request
Method: POST Endpoint:https://api.openai.com/v1/audio/speech
Content-Type: application/json
Request Body Parameters
Example Request (cURL):
2. The Response
ForPOST /v1/audio/speech, the response is binary audio bytes, not JSON.
Success response
- HTTP status:
200 - Body: non-empty binary data
Content-Type: notapplication/json(typicallyaudio/wavwhenresponse_format=wav)