New: AI video tools. Cut, clip, caption and dub your videos. See all video tools →
Agent

OpenAI-compatible text-to-speech

POST
/v1/audio/speech

Drop-in for OpenAI's POST /v1/audio/speech, so OpenAI-compatible clients (OpenClaw, etc.) can point a baseUrl at this server. Send the API key as Authorization: Bearer <key>. OpenAI model/voice names fall back to the configured agent defaults. Speech is ephemeral — nothing is written to history, nothing plays on this machine.

Request Body

application/json
  1. body
input*Input

Text to synthesize

Length1 <= length
model?|

VCP model family. OpenAI model names (tts-1, gpt-4o-mini-tts, ...) are accepted and ignored — the configured default agent model is used instead.

voice?|

Saved voice name or ID. Unknown names (e.g. OpenAI's 'alloy') fall back to the configured default agent voice.

response_format?Response Format

Audio container. mp3 (64kbps, default) or wav (PCM16).

Default"mp3"
Value in"mp3""wav"
speed?|

Accepted for OpenAI compatibility; ignored.

instructions?|

Accepted for OpenAI compatibility; ignored.

Response Body

Audio bytes, streamed progressively while synthesis runs.

response?unknown
Example Request
curl -X POST 'http://127.0.0.1:8100/v1/audio/speech' \  -H 'Content-Type: application/json' \  -d '{  "input": "Hello from an agent."}'
Example Response
null