Skip to main content
POST
/
v1
/
audio
/
speech
Create speech with an OpenAI-compatible API
curl --request POST \
  --url https://api.example.com/v1/audio/speech \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "voice": "<string>",
  "model": "<string>",
  "instructions": "<string>",
  "response_format": "<string>",
  "speed": 1,
  "stream_format": "<string>"
}
'
"<string>"

Body

application/json
input
string
required

Text to synthesize

Maximum string length: 4096
voice
required

VOICEVOX style ID, AI SDK voice alias, or OpenAI voice name

model
string

OpenAI-compatible model name. Accepted for compatibility in the Laravel implementation.

instructions
string

OpenAI-compatible parameter. Currently unused by the Laravel implementation.

Maximum string length: 4096
response_format
string

OpenAI-compatible parameter. The Laravel implementation currently always returns WAV audio.

speed
number
default:1

Speech speed applied to VOICEVOX speedScale

Required range: 0.25 <= x <= 4
stream_format
string

OpenAI-compatible parameter. Currently unused by the Laravel implementation.

Response

Successful Response

The response is of type file.

Last modified on May 27, 2026