{"access":{"authentication":{"format":"L402 {macaroon}:{proof_of_payment}","header":"Authorization","protocols":["L402","MPP"],"format_mpp":"Payment <base64url_json>"},"endpoint":"https://sats4ai.com/api/l402/generate-music","method":"POST"},"content_type":"api","description":"Generate a full song with AI vocals from a style prompt plus lyrics.\nYou choose the length: 15-300 seconds at 5 sats/second (75-1500 sats).\nReturns 44.1 kHz 16-bit stereo WAV.\nStructure tags must each be on their OWN line - words on a tag line are dropped by the model.\nSend only tags and no words for an instrumental.\nSet \"lyricsAddon\": true to have the lyrics written for you (+25 sats), optionally with \"lyricsAbout\" to say what they should be about; leave it out and the subject is inferred from your prompt.\nOn generation failure, a LNURL-withdraw refund link is returned in the error response.\nSend parameters as JSON:\n```\n{\n    \"prompt\": \"E minor, 90 BPM, acoustic guitar ballad, male vocal\",\n    \"lyrics\": \"[verse]\\nYour lyrics here...\\n[chorus]\\nThe hook...\",\n    \"duration\": 60\n}\n```\nSection tags: [intro], [verse], [pre-chorus], [chorus], [post-chorus], [bridge], [instrumental], [solo], [outro].\nPrompt: up to 2,000 chars. Lyrics: up to 3,500 chars.","name":"Music Generation","billing":"prepaid","billing_detail":"Regular invoice, instant settlement. On failure, error response includes a LNURL-withdraw link to claim your refund with any Lightning wallet."}