Create a task
POST the workflow payload. Include receive_url when webhook delivery is preferred.
Generation API · REST · asynchronous tasks
Integrate speech, dialogue, audio, Suno music and image generation through one base URL. The API uses the same premium-credit balance as the web application.
Task model
Most generation APIs are asynchronous so long audio, music and image work can run without keeping the request open.
POST the workflow payload. Include receive_url when webhook delivery is preferred.
The create response returns the shared ID used to check status and retrieve output.
Call GET /v1/task/{task_id}, or let OpenSpeaker deliver the result to receive_url.
Generation endpoints
This list intentionally excludes Kokoro, Kiki, legacy MiniMax Music, legacy Google Imagen and Video/Veo because they are not in the active public catalog.
/v3/text-to-speech/v3/text-to-speech/dialogue/v3/dictionaries/v3/dictionaries/v3/dictionaries/preview/v3/text-to-speech/voice-clone/v1/task/dubbing/v1/task/voice-changer/v1/task/voice-isolate/v1/task/speech-to-text/v1/task/sound-effect/v1s/task/music-generation/v1i/models/v1i/task/price/v1i/task/generate-imageSafe example
Replace $API_KEY and the voice ID with your account values. Never place a real key in browser source, a public repository or a prompt sent to a third party.
curl -X POST "https://api.openspeaker.ai/v3/text-to-speech" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"text": "A long-form narration starts here.",
"voice_id": "provider:voice-id",
"speed": 1,
"receive_url": "https://example.com/webhooks/openspeaker"
}'Common endpoints
Use these endpoints to operate an integration: inspect history, check credits, find voices or delete tasks.
/v1/task/{task_id}Poll one asynchronous task
/v1/tasksList and filter task history
/v1/task/deleteDelete a task; refund where available
/v1/creditsRead the current credit balance
/v1/health-checkCheck API availability
/v3/voicesSearch the unified voice library
Use the clean text guide or generation OpenAPI document to discover endpoints without crawling the authenticated interface.