API docsIntegration guides
Audio models
Music (Suno) and text-to-speech (Gemini TTS) models use the same /generations flow as images and video: create a task, then poll it. Outputs are audio file URLs.
Request
cURL
curl 'https://01router.com/api/v1/generations' \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash-tts",
"input": {
"prompt": "Welcome back, let us get started.",
"voice": "Kore"
}
}'Usage notes
- Poll at intervals of at least 3 seconds. A 504 from the synchronous image endpoint means the task may still be running: poll its error.id instead of submitting it again.
Use with AI
Give your coding assistant the documentation index or the full API reference, including live model parameters.