Skip to main content
The v1/audio/speech endpoint is designed to convert written text into lifelike spoken audio.

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

For POST /v1/audio/speech, the response is binary audio bytes, not JSON.

Success response

  • HTTP status: 200
  • Body: non-empty binary data
  • Content-Type: not application/json (typically audio/wav when response_format=wav)

Example (HTTP-style)

Example CURL to save response