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

Text to Speech API

Text to speech API with natural voices and style control

Send text and a voice in one request and get a WAV file back.

Cloud API on the Starter and Premium plans, or the Desktop API on your own computer.

POST/v1/speech
curl -X POST https://api.vcp.name/v1/speech \
-H "Authorization: Bearer $VCP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Welcome to the product tour.",
"voice": "af_alloy"
}'
 
curl "https://api.vcp.name/v1/jobs/JOB_ID?wait=60" -H "Authorization: Bearer $VCP_API_KEY"

What developers build with it

Use a preset voice or any voice you cloned or designed. GET /v1/voices lists the ids you can send.

  • Narration for product tours, explainers and course lessons, generated from your CMS
  • Spoken versions of articles or newsletters, rebuilt whenever the text changes
  • Voice lines for games and prototypes, generated in the same saved voice every time
See the product page
Response
{
"id": "04bd0571-e2c8-4d5b-a3cc-e56f85773abf",
"type": "speech",
"status": "succeeded",
"result": {
"audio_url": "https://files.example.com/speech.wav",
"download_url": "https://files.example.com/speech.wav?download=speech.wav",
"expires_at": "2026-10-31T00:18:01Z"
},
"tokens_charged": 42,
"finished_at": "2026-10-30T00:18:01Z"
}

Add text to speech to your app with one API key.

Endpoints

Text to speech endpoints

MethodPathWhat it does
POST/v1/speechGenerate speech from text
GET/v1/voicesList your saved voices and the presets
GET/v1/modelsList models with their languages and preset voices
GET/v1/jobs/{id}Get a job, or wait for it to finish

Desktop API

Run the API on your own computer

Every desktop plan includes a local API on Windows and Mac. It needs no key and answers requests from your computer while the app is open.

POST/api/v1/tts/generate
curl -X POST "http://127.0.0.1:8100/api/v1/tts/generate?sync=true" \
-H "Content-Type: application/json" \
-d '{
"text": "Welcome to the product tour.",
"speaker": "Ryan",
"language": "English"
}'

Desktop API endpoints

MethodPathWhat it does
POST/api/v1/tts/generateGenerate speech from text with a preset speaker
GET/api/v1/tts/speakersList the built-in speakers
GET/api/v1/tts/languagesList supported languages
GET/api/v1/generation/progressPoll a generation started without sync

Create a key and send your first request in a few minutes.

FAQ

Common Questions

POST /v1/speech returns a job. Call GET /v1/jobs/{id}?wait=60, and when the job succeeds, result.audio_url links to the WAV. The links work for 24 hours.

It depends on the model. GET /v1/models lists each model's languages and preset voices. In the desktop app, the preset speakers cover 10 languages.

In the Desktop API, yes. Pass an instruct string such as "speak slowly and warmly", and a seed in generation_params keeps results repeatable. In the Cloud API, pick a voice whose style fits, or design one from a description.

The Cloud API draws on your plan's monthly tokens, and each finished job shows its tokens_charged. The Desktop API comes with the desktop app, a one-time purchase, with no per-character or per-request fee.