Music
Generate a song
Changed onGenerates 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
- Base URLhttps://app.aituber.app/api/v1
- AuthHTTP bearer
Request body
Response
OK
Changes
- info
api operation id
musicGeneration.createMusicPublicremoved and replaced withgenerateMusic
- info
- info
added the non-success response with the status
- info