{"uid":"cap_Yuncp6zGiXV-YU9lp8FvX","slug":"stability-ai-text-to-audio-via-locus-x402-60d0d9d5","name":"Stability AI Text-to-Audio via Locus x402","description":"Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.","url":"https://stability-ai.x402.paywithlocus.com/stability-ai/text-to-audio","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"number"},"model":{"type":"string"},"steps":{"type":"number"},"prompt":{"type":"string"},"duration":{"type":"number"},"cfg_scale":{"type":"number"},"output_format":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ruBsmozZxc_LrwDIMgqMq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates audio files from a text prompt using Stability AI's stable-audio models, payable via x402 microtransaction.","exampleAgentPrompt":"Use Stability AI to generate a 30-second ambient forest soundscape with birds and a gentle stream — output it as an mp3 using stable-audio-2.5.","exampleUseCases":[{"title":"Ambient background track for video","prompt":"Generate a 60-second calm lo-fi background music track suitable for a study video using stable-audio-2.5, and give it to me as an mp3."},{"title":"Sound effects for game development","prompt":"Create a 10-second dramatic thunderstorm sound effect with heavy rain and distant thunder using Stability AI's audio model — wav format please."},{"title":"Podcast intro jingle creation","prompt":"I need a short 15-second upbeat, energetic intro jingle for a tech podcast — generate it with stable-audio-2.5 as an mp3."}],"resultDescription":"Returns a JSON object with a request ID and a status URL to poll for the completed audio file (mp3 or wav), along with payment settlement details showing the amount of USDC charged via the x402 protocol.","failureModes":["Invalid model name returns an error — must be 'stable-audio-2.5' or 'stable-audio-2'","Duration exceeding model limits may fail or be clamped","Empty or missing prompt results in a generation error","Invalid output_format value (not 'mp3' or 'wav') causes a bad request","Payment failure via x402 if insufficient USDC balance","Long inference step counts on stable-audio-2 increase cost and latency significantly","Response is async — the data field may be empty until polled via statusUrl"],"whenToPreferThis":"Choose this endpoint when you need AI-generated audio from a text description and want to pay per-call with USDC via x402 without a subscription. It is especially suitable for agents that need on-demand audio generation in automated workflows, or when cost control via microtransactions is important. Prefer stable-audio-2.5 for higher quality at a fixed cost, or stable-audio-2 when step-level cost control is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T09:15:16.695Z","isFirstParty":false}