{"uid":"cap_-4aojbicnvRilkgRk66Df","slug":"aile-music-generation-api-a6b02f14","name":"Aile Music Generation API","description":"Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.","url":"https://api.aile.sh/v1/music/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","prompt"],"properties":{"model":{"type":"string","description":"`<provider>/<model>`, e.g. `openrouter/google/lyria-3-clip-preview`. GET /v1/models?output_modalities=audio lists what is servable, with prices."},"prompt":{"type":"string","description":"Style, mood, instruments, and lyrics if any."},"instrumental":{"type":"boolean"}}},"responseSchema":{"data":[{"audio_url":"data:audio/mpeg;base64,…"}]},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.032","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.032/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KLI91OuBT3UCtqPQdJ3m7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.032","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI-composed music audio from a text prompt using a selectable AI model, returning the audio as a base64-encoded MP3.","exampleAgentPrompt":"Compose a 30-second upbeat lo-fi hip hop track with mellow piano and soft drums — no lyrics, just instrumental — using the openrouter/google/lyria-3-clip-preview model.","exampleUseCases":[{"title":"Background music for video content","prompt":"Generate a calm, cinematic instrumental piece with strings and piano for a nature documentary intro — no vocals, just ambient orchestral vibes — using openrouter/google/lyria-3-clip-preview."},{"title":"AI jingle for a brand ad","prompt":"Create a short, energetic pop jingle about a coffee shop called Morning Bloom — upbeat tempo, catchy melody, include lyrics mentioning fresh coffee and good mornings — use openrouter/google/lyria-3-clip-preview."},{"title":"Meditation app ambient track","prompt":"Generate a soft, 60-second ambient meditation track with gentle synth pads and nature-inspired sounds, no lyrics, purely instrumental, using openrouter/google/lyria-3-clip-preview on Aile."}],"resultDescription":"Returns a JSON object with a data array containing an audio_url field holding a base64-encoded MP3 data URI (e.g. data:audio/mpeg;base64,…) that can be decoded and played or saved as an audio file.","failureModes":["Invalid or unavailable model identifier returns an error — use GET /v1/models?output_modalities=audio to verify supported models","Empty or missing prompt field causes a validation error","Insufficient USDC balance for x402 payment results in payment failure and no audio returned","Model provider unavailable or overloaded may result in timeout or 503 error","Prompt too short or ambiguous may result in low-quality or unexpected audio output"],"whenToPreferThis":"Choose this endpoint when you need programmatic AI music generation with per-call USDC micropayment pricing on Solana, flexible model selection across multiple providers, and no subscription commitment. It is especially well-suited for agents that need to generate music on demand, pick specific audio AI models (e.g. Google Lyria), and settle payments atomically per call rather than managing API keys per provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:32:14.971Z","isFirstParty":false,"canonicalSlug":"aile-music-generation-api-a6b02f14"}