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.
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
{ "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
| Method | Path | What it does |
|---|---|---|
| POST | /v1/speech | Generate speech from text |
| GET | /v1/voices | List your saved voices and the presets |
| GET | /v1/models | List 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.
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
| Method | Path | What it does |
|---|---|---|
| POST | /api/v1/tts/generate | Generate speech from text with a preset speaker |
| GET | /api/v1/tts/speakers | List the built-in speakers |
| GET | /api/v1/tts/languages | List supported languages |
| GET | /api/v1/generation/progress | Poll 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.
Explore
Related APIs
Voice cloning
Clone a voice from a short clip and speak new text with it.
Voice design
Describe a voice in words and generate speech in it.
Speech to text
Transcribe audio with word timestamps and speaker labels.
Dubbing
Dub videos into 21 languages, keeping each speaker's voice.
Subtitles
Generate SRT caption files with word-level timing.
Clips
Cut long videos into short, captioned clips.
AI Cut
Remove silences, filler words and bad takes, then render.
Avatars
Make a lip-synced talking-head video from one photo.
Voice changer
Re-voice a recording while keeping its timing and emotion.
Audiobooks
Narrate a manuscript with a voice for every character.