{"uid":"cap_VFJxlYPSEsgHROCZ_sH6C","slug":"stability-ai-text-to-audio-4423005b","name":"Stability AI Text to Audio","description":"Generate music or sound effects from a text prompt.","url":"https://stability-ai.mpp.paywithlocus.com/stability-ai/text-to-audio?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"seed":{"type":"number","description":"Random seed"},"model":{"type":"string","description":"stable-audio-2.5 ($0.23) | stable-audio-2 (step-based, default)"},"steps":{"type":"number","description":"Inference steps — affects cost for stable-audio-2 (default 50)"},"prompt":{"type":"string","description":"Audio description prompt"},"duration":{"type":"number","description":"Output duration in seconds (default 190)"},"cfg_scale":{"type":"number","description":"Guidance scale"},"output_format":{"type":"string","description":"mp3|wav (default mp3)"}},"additionalProperties":true},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["image-generation","stable-diffusion","upscaling","3d","ai","media"],"displayCostAmount":"0.092","displayCostAsset":"USDC","priceDynamic":true,"priceHint":"$0.23 (50 steps, stable-audio-2)","priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":5,"rating":{"score":"0.48","successRate":"0.35","reviews":5,"stars":"2.9","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"dynamic","summary":"$0.23 (50 steps, stable-audio-2) (dynamic)","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.23","per":"call","confidence":"exact"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.23","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SQYVsDLxLpFBOPkZuax1L","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.23","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Stability AI","brandSlug":"stability-ai","brandBaseUrl":"https://stability.ai","brandDocsUrl":"https://platform.stability.ai/docs/api-reference","whatItDoes":"Generates audio from a text description prompt using Stability AI's stable-audio models, returning an mp3 or wav file","exampleAgentPrompt":"Generate a 30-second ambient forest soundscape with birds chirping and a light breeze, using stable-audio-2.5, and give me the result as an mp3.","exampleUseCases":[{"title":"Create podcast intro music from description","prompt":"I need a 10-second upbeat tech podcast intro with electronic synths and a punchy beat. Can you generate that as an mp3 and save it for me?"},{"title":"Generate sound effects for video project","prompt":"Make me a realistic door creaking open slowly, then slamming shut. I'd like it as a wav file so I can edit it into my video."},{"title":"Synthesize ambient background audio for meditation app","prompt":"Create a 2-minute calming meditation track with soft piano, gentle rain sounds, and subtle nature ambience. Use the higher quality model and export as mp3."}],"resultDescription":"An audio file (mp3 or wav) generated from the provided text prompt, synthesized by Stability AI's stable-audio model. The response contains the binary audio content ready for playback or further processing.","failureModes":["Invalid or missing prompt returns a 400 error","Unsupported model name returns a validation error","Duration value out of acceptable range returns an error","Invalid output_format value (not mp3 or wav) returns a validation error","Insufficient USDC balance or payment failure returns a 402 error","Model overload or timeout may return a 503 or 504 error"],"whenToPreferThis":"Choose this endpoint when you need to generate original audio content — sound effects, music, or ambient audio — directly from a natural language text description using Stability AI's stable-audio models. Prefer this over audio-to-audio when you are starting from scratch with no source audio. Use stable-audio-2.5 for higher quality at fixed cost, or stable-audio-2 when you want step-based cost control.","instructions":null,"reviewSummary":"Text-to-audio generation produces clean stereo MP3 output across ambient soundscapes and orchestral music when calls succeed, with prompts matched accurately. However, the service carries a meaningful failure rate — 502 upstream errors still incur the full charge (~$0.23 USDC), making retries costly. Stable-audio-2 is the more reliable model choice; stable-audio-2.5 has shown failures. Note that successful responses are double-base64-wrapped and require two decode passes to extract audio bytes.","reviewSummaryHighlights":["Accurate prompt-matching for both ambient soundscapes and musical content","Produces clean stereo MP3 output up to 90 seconds with solid sound-design quality"],"reviewSummaryConcerns":["~40% failure rate observed; failed calls (HTTP 502) still charge full price (~$0.23 USDC)","stable-audio-2.5 model less reliable than stable-audio-2 — prefer stable-audio-2 and budget for retries","Response payload is double-base64-wrapped, requiring two decode steps to retrieve audio bytes"],"reviewSummaryGeneratedAt":"2026-07-30T18:15:07.601Z","activationCount":37,"lastUsedAt":"2026-07-30T17:08:44.455Z","lastSuccessfullyRanAt":"2026-07-30T17:08:44.455Z","lastHealthCheckAt":"2026-10-10T06:46:36.199Z","isFirstParty":false,"canonicalSlug":"stability-ai-text-to-audio-4423005b"}