latestOpenAPI 3.1.12026-08-22330162.7 KB
35448566f143
Music
Generate a song
Generates an original song from a text prompt using AI. Use it as the soundtrack for a music video (POST /music-videos), or download it once ready.
Flow: create the song, then poll GET /music/{id} until status is completed (usually 30-90 seconds). The finished track also appears in GET /music and can be used as musicId in POST /music-videos.
Modes:
- Simple (default): describe the song in prompt and the AI writes everything (style, and lyrics unless instrumental).
- Custom (customMode: true): you control style, title, and lyrics directly. prompt is ignored for the words.
Cost: a flat fee per song (see the response creditsUsed). Credits are refunded automatically if generation fails.
post/music
Request body
Response
OK