curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "elevenlabs-music",
"callback_url": "https://your-domain.com/callback",
"input": {
"text": "A polished instrumental cinematic game menu loop for a neon sci-fi strategy game, elegant synth arpeggios, warm analog pads, restrained percussion, gradual heroic lift, no vocals, seamless background score.",
"duration": 45,
"is_instrumental": true,
"output_format": "opus_48000_128"
}
}
'{
"code": 200,
"data": {
"task_id": "task_xxxxxxxxxxxxxxxx",
"status": "not_started",
"created_time": "2026-06-26T10:30:00"
}
}{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}ElevenLabs
ElevenLabs Music
Generate studio-grade music from text inputs or structured composition plans using ElevenLabs Music
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-music",
"callback_url": "https://your-domain.com/callback",
"input": {
"text": "A polished instrumental cinematic game menu loop for a neon sci-fi strategy game, elegant synth arpeggios, warm analog pads, restrained percussion, gradual heroic lift, no vocals, seamless background score.",
"duration": 45,
"is_instrumental": true,
"output_format": "opus_48000_128"
}
}
'{
"code": 200,
"data": {
"task_id": "task_xxxxxxxxxxxxxxxx",
"status": "not_started",
"created_time": "2026-06-26T10:30:00"
}
}{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}- 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 Music
elevenlabs-music generates music audio from a text or a structured composition plan. Results are returned as task files, matching the standard image, video, 3D, and audio task response structure.
Available Model
- elevenlabs-music - ElevenLabs Music generation with text and composition-plan controls
Input Parameters
Provide exactly one creative control path:- Use text for a single text brief.
- Use composition_plan for section-level arrangement control.
- Do not send both
textandcomposition_planin the same request.
input fields:
- text: Text describing the music to generate. Required when
composition_planis not provided. Length:1-4100characters. - composition_plan: Structured composition plan. Required when
textis not provided.- positive_global_styles: String array of global styles to include.
- negative_global_styles: String array of global styles to avoid.
- sections: Non-empty array of music sections.
- section_name: Section name,
1-100characters. - positive_local_styles: String array of section-specific styles to include.
- negative_local_styles: String array of section-specific styles to avoid.
- duration: Section duration in seconds,
3-120. This public PoYo field uses seconds. - lines: Lyrics lines. Each line must be
200characters or fewer.
- section_name: Section name,
- duration: Optional song length in seconds. Must be
3-600when provided. Only valid withtext. - is_instrumental: When
true, requests instrumental-only output. Only valid withtext. - respect_sections_durations: Controls how strictly section durations are followed. Only valid with
composition_plan. - output_format: Output format. Defaults to
mp3_44100_128.
Output Formats
Supportedoutput_format 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.
Credit Billing
Billing is calculated by started minute:128credits per started minute- Equivalent to
$0.64per started minute - Less than one minute is billed as one minute
- Requests with
textand nodurationare estimated as one started minute in PoYo v1
Notes
- Provide exactly one of
textorcomposition_plan. durationandis_instrumentalcan only be used withtext.respect_sections_durationscan only be used withcomposition_plan.- Query status through the standard task status API, not the music detail endpoint.
- Successful responses return
files, where the generated music usesfile_type: audio.
Authorizations
All API endpoints require Bearer Token authentication.
Get your API Key from the API Key Management Page.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Model identifier.
Available options:
elevenlabs-music Example:
"elevenlabs-music"
Input parameters. Provide exactly one of text or composition_plan.
Show child attributes
Show child attributes
Webhook callback URL for result notifications
Example:
"https://your-domain.com/callback"
