Audio Projects
AI Music Generator
Changed onGenerate music from a description, with optional custom lyrics or instrumental-only output. Costs 1 credits per requested second. Returns a project ID; poll GET /v1/audio-projects/{id} for status and downloads.
post/v1/ai-music-generator
Request
- Base URLhttps://api.magichour.ai
- URLhttps://api.magichour.ai/v1/ai-music-generator
- AuthHTTP bearer
Request body
Example request
{
"name": "My Music Generator audio",
"duration": 120,
"style": {
"prompt": "Dreamy synthwave with warm bass and soft vocals",
"lyrics": "City lights are fading..."
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 120
}Changes
- info
endpoint added
- info