curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "elevenlabs-v4-tts",
"input": {
"text": "Hello! Welcome to PoYo."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-10-13T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}ElevenLabs
ElevenLabs V4 TTS
The ElevenLabs V4 TTS API converts up to 5,000 characters of text into speech with voice, stability, and similarity controls, plus an optional language code. Choose one of 19 audio formats, and optionally receive timestamps as a separate file.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "elevenlabs-v4-tts",
"input": {
"text": "Hello! Welcome to PoYo."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-10-13T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
elevenlabs-v4-tts converts text into expressive speech audio. Results are returned as task files, matching the standard image, video, 3D, and audio task response structure.
Models
- elevenlabs-v4-tts - ElevenLabs V4 text-to-speech generation
Required parameters
- text: Text to convert to speech
- Length:
1-5000characters, containing non-whitespace text
- Length:
Optional parameters
- voice: Voice name or voice ID. Default:
Rachel - stability: Voice stability from
0to1. Default:0.5 - similarity_boost: Voice similarity from
0to1. Default:0.75 - language_code: Optional ISO 639-1 language code
- apply_text_normalization:
auto,on, oroff. Default:auto - timestamps: Boolean. When
true, timing data may be returned as a separate JSON file. Default:false - output_format: Audio codec, sample rate, and bitrate. Default:
mp3_44100_128 - callback_url: Optional webhook URL for task completion notification
Output Formats
Supported values:mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_44100, pcm_48000, ulaw_8000, alaw_8000, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192.
MP3 and Opus are encoded audio. PCM is raw audio without a WAV header. µ-law and A-law are telephony formats. Output keeps its original encoding and file extension. Use the selected sample rate when decoding raw audio.
Examples
Default speech
{
"model": "elevenlabs-v4-tts",
"callback_url": "https://your-domain.com/callback",
"input": {
"text": "Hello! Welcome to PoYo.",
"voice": "Rachel",
"stability": 0.5,
"similarity_boost": 0.75,
"apply_text_normalization": "auto"
}
}
Timestamps with raw PCM
{
"model": "elevenlabs-v4-tts",
"callback_url": "https://your-domain.com/callback",
"input": {
"text": "Welcome to PoYo.",
"timestamps": true,
"output_format": "pcm_24000"
}
}
Notes
- Query status through the standard task status API.
- Successful responses return
files. Generated speech usesfile_type: audio. - When
timestampsis enabled and returned, timing JSON is a separate file item withfile_type: other.
Authorizations
All API endpoints require Bearer Token authentication.
Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Task accepted; query the task for final files.
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
200: Success400: Invalid request parameters401: Missing or invalid API key402: Insufficient credits403: Permission denied404: Resource not found408: Request timeout429: Rate limit exceeded500: Internal server error502: Upstream service error503: Service unavailable
See Error Codes for details.
Available options:
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 Example:
200