curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-3.8-flash-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"
}
}Google
Gemini 3.8 Flash TTS
The Gemini 3.8 Flash TTS API converts a transcript or a two-speaker dialogue into WAV speech using preset voices and separate style instructions. The complete input is limited to 8,192 tokens.
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": "gemini-3.8-flash-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.
gemini-3.8-flash-tts converts a transcript or a two-speaker dialogue into native WAV speech. Results are returned as task files, matching the standard image, video, 3D, and audio task response structure.
Models
- gemini-3.8-flash-tts - Gemini 3.8 Flash text-to-speech generation
Required parameters
Single-speaker and dialogue inputs are mutually exclusive.- text: Required for single-speaker synthesis. Non-empty transcript. Omit when using
speakersandturns - speakers: Required for dialogue, together with
turns. Exactly two speakers. Each item includes:speaker_id: Distinct non-empty speaker aliasvoice: Gemini voice preset
- turns: Required for dialogue, together with
speakers. At least one turn. Each item includes:speaker_id: Must match a configured speakertext: Non-empty turn textstyle_instructions: Optional delivery direction for that turn
text and top-level voice. The complete input is limited to 8,192 tokens.
Optional parameters
- voice: Voice preset for single-speaker synthesis. Default:
Kore. Omit for dialogue - style_instructions: Global delivery style, separate from the transcript. Can be used with either mode
- enable_safety_checker: Enable input safety checking. Default:
true. Disabling can require account authorization - callback_url: Optional webhook URL for task completion notification
Voice Presets
Supported values:Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi.
Examples
Single speaker
{
"model": "gemini-3.8-flash-tts",
"callback_url": "https://your-domain.com/callback",
"input": {
"text": "Hello! Welcome to PoYo.",
"voice": "Kore",
"style_instructions": "Warm, confident product narrator with clear pacing."
}
}
Two-speaker dialogue
{
"model": "gemini-3.8-flash-tts",
"callback_url": "https://your-domain.com/callback",
"input": {
"style_instructions": "Conversational podcast tone with distinct speaker energy.",
"speakers": [
{
"speaker_id": "host",
"voice": "Kore"
},
{
"speaker_id": "guest",
"voice": "Puck"
}
],
"turns": [
{
"speaker_id": "host",
"text": "Welcome!"
},
{
"speaker_id": "guest",
"text": "Thank you.",
"style_instructions": "Warm and friendly."
}
]
}
}
Notes
- Output is native WAV. This model has no
output_format,temperature,language_code, orseedparameter. - Query status through the standard task status API.
- Successful responses return
files. Generated speech usesfile_type: audio. Optional timing JSON usesfile_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