{"uid":"cap_vpTSs87tOLpmv4r4hZceQ","slug":"compacthost-ai-music-generator-ca72f7ea","name":"Compacthost AI Music Generator","description":"Pay-per-call generative AI tools for autonomous agents, settled in USDC on Base via x402.","url":"https://x402.compacthost.com/music","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lyrics":{"type":"string","description":"Optional song lyrics"},"prompt":{"type":"string","description":"Style/mood description"},"duration":{"type":"number","description":"Seconds, 15-240, default 60"}}},"responseSchema":{"type":"audio/mpeg"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ax-Zp0x4zm-xkErjjpjvL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an MP3 audio track from a style/mood prompt and optional lyrics, paid per-call in USDC on Base via x402","exampleAgentPrompt":"Generate a 45-second upbeat lo-fi hip-hop track with the lyrics 'morning light, coffee in hand, the city wakes up slow' — I want it to feel relaxed and jazzy.","exampleUseCases":[{"title":"Background music for a podcast intro","prompt":"Make me a 30-second cinematic orchestral intro track — dramatic and building, no lyrics, something that would feel right at the start of a tech news podcast."},{"title":"Custom jingle with brand lyrics","prompt":"Compose a 20-second upbeat pop jingle with these lyrics: 'Fresh brews every morning, wake up with a smile, Morning Bloom Coffee, making every day worthwhile.' Keep the vibe fun and catchy."},{"title":"Ambient soundscape for a meditation app","prompt":"Generate a 3-minute ambient meditation track — calm, slow, no lyrics, with a warm and peaceful mood, like soft nature sounds mixed with gentle synth pads."}],"resultDescription":"Returns a binary MP3 audio file (audio/mpeg) containing the AI-generated music track matching the requested style, mood, optional lyrics, and duration.","failureModes":["Invalid duration outside 15-240 second range returns an error","Prompt or lyrics too long may be rejected or truncated","Payment failure via x402 (insufficient USDC balance) results in 402 response and no audio","Generation timeout for longer durations may result in no response","Ambiguous or empty prompt may yield generic or low-quality output"],"whenToPreferThis":"Choose this endpoint when you need to generate a complete music audio file (MP3) on-demand from a text description, with optional lyrical content and a configurable duration — particularly in automated pipelines that can handle pay-per-call USDC micropayments via x402 on Base. It is well-suited for agents that need to produce background music, jingles, or ambient soundscapes without a subscription. Prefer it over text-to-speech endpoints when the output should be musical rather than spoken, and over video generation endpoints when only audio is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T09:15:31.704Z","isFirstParty":false}