Gemini 3.1 Flash TTS
Generate a short spoken phrase with Gemini 3.1 Flash TTS and download a WAV file. Up to 80 characters per request.
Our price
per generation credit
Official
Not available
First request
Availablecurl https://api.tokely.me/v1/media/tasks \
-H "Authorization: Bearer $TOKELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-tts-preview",
"voice": "Kore",
"prompt": "A quiet coastal village at sunrise."
}'
# Read the returned task_id, then check its status:
curl https://api.tokely.me/v1/media/tasks/TASK_ID \
-H "Authorization: Bearer $TOKELY_API_KEY"
# When complete, list downloadable results:
curl https://api.tokely.me/v1/media/tasks/TASK_ID/artifacts \
-H "Authorization: Bearer $TOKELY_API_KEY"Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.
Capabilities & limits
- Provider
- API model ID
gemini-3.1-flash-tts-preview- Category
- Audio
- Endpoints
POST /v1/media/tasks- Output
- Audio · background task
- Supported input
- Text to speak, Voice
- Measured speech usage
- $0.008333 per generation credit
API reference
Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use your Tokely base URL and API key.
- model
- Required string:
gemini-3.1-flash-tts-preview - prompt (required)
- Text, up to 80 characters
- voice
- Kore, Zephyr, Puck. Default:
Kore
Requests are charged to your Tokely balance using the options and rates shown above. Your dashboard records usage.
Save the returned task ID. Check its status, then list its artifacts and download them with your API key. Stopping the browser’s progress checks does not cancel an accepted generation.
- 400 / 415
- Invalid request, parameter, endpoint for this model, or content type.
- 401 / 403
- Invalid, revoked or restricted API key.
- 402
- Insufficient account balance or API key budget.
- 429
- Request limit reached. Retry after the indicated delay.
- 502 / 503 / 504
- Upstream failure, temporary service unavailability or request timeout.
Frequently asked questions
How much does Gemini 3.1 Flash TTS cost?
Measured speech usage: $0.008333 per generation credit. Usage is charged to your Tokely balance.
Do I need a separate Google account?
Use your Tokely API key and balance. A separate provider key is not required.
How do I switch to this model?
Set model to gemini-3.1-flash-tts-preview and use /v1/media/tasks. Keep your Tokely base URL and API key. Use the parameters listed above for this model.
How do I get the completed result?
Save the task ID from your request, check its status, then download the completed artifacts with your Tokely API key.
Playground
Explore models in the Tokely Playground.
Open in playground