How do I get an API key?
Create an account, then create a key on your account page. See Getting started for more.Why isn’t my API key working?
If your key is rejected in an application or integration, first log in to your account to confirm the key is valid. Then:- Check that your account has credits on the billing page.
- Copy and paste the key rather than retyping it, since some characters look alike (O and 0).
- Try creating a new key.
What are the rate limits?
The API allows 150 requests every 10 seconds. Past that, you get a429 response and are blocked for 60 seconds. If you need a higher limit, contact us.
What happens when a request fails?
The API uses standard HTTP status codes:400means the request was malformed, and the body explains what to fix.401means the key is missing or invalid.402means the account is out of credits.429means you hit the rate limit and should retry with backoff.- Anything in the
5xxrange is a server error and is safe to retry.
What format does Stable Audio return?
Audio is returned as a file in the response, or as base64 JSON if you set theaccept header that way.
How fast is a Stable Audio generation?
Most requests finish in seconds, and time scales with the length of audio you ask for.How are longer Stable Audio jobs handled?
Short generations return the finished audio directly. Anything long enough to run past the request window returns a job ID immediately, and you poll for the result.Can I use the API outputs for commercial purposes?
Yes, as long as the output doesn’t violate anyone’s copyright. See the Terms of Service for details.What was Stable Audio trained on?
Stable Audio models are trained on fully licensed material.Where can I find uptime and status information for the API?
See the Stability AI status page.How do I get usage statistics for my account or API keys?
This isn’t available yet. It’s planned.