Choose a model
Browse Music & Sound Effects Models for current model IDs, pricing, duration limits, and supported features. You can also discover model capabilities at runtime:duration_seconds, lyrics_prompt, force_instrumental, or loop. Unsupported fields cause an HTTP 400 response.
Generation flow
1. Get a price quote
Quote the request before generating media. Include the same model and duration you plan to send to the queue endpoint.2. Queue the generation
model and queue_id; the retrieve and complete endpoints require them.
3. Poll and download
Call/audio/retrieve with the values from the queue response:
Content-Type:
A processing response looks like this:
Complete example
This Python example queues instrumental music, polls every five seconds, and saves the result with an extension based on its content type.The quote endpoint does not require authentication, but queue, retrieve, and complete requests do.
Prompting tips
- For music, describe genre, instruments, mood, tempo, structure, and whether vocals are desired.
- For sound effects, describe the source, environment, intensity, timing, and perspective.
- Use
lyrics_promptonly when the selected model supports lyrics. - Use
force_instrumentalorlooponly when the model metadata reports support.