> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stability.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FAQs

> Answers to common questions about Stability AI API keys, rate limits, errors, Stable Audio, commercial use, status, and billing.

If your question isn't answered here, check the [knowledge base](https://kb.stability.ai/knowledge-base) or [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).

## How do I get an API key?

Create an account, then create a key on your [account page](https://platform.stability.ai/dashboard/api-keys). See [Getting started](https://docs.stability.ai/getting-started.md) 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](https://platform.stability.ai/dashboard/api-keys) to confirm the key is valid. Then:

* Check that your account has credits on the [billing page](https://platform.stability.ai/dashboard/billing).
* 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 a `429` response and are blocked for 60 seconds. If you need a higher limit, [contact us](https://kb.stability.ai/knowledge-base/kb-tickets/new).

## What happens when a request fails?

The API uses standard HTTP status codes:

* `400` means the request was malformed, and the body explains what to fix.
* `401` means the key is missing or invalid.
* `402` means the account is out of credits.
* `429` means you hit the rate limit and should retry with backoff.
* Anything in the `5xx` range 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 the `accept` 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](https://stability.ai/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](https://status.stability.ai/).

## How do I get usage statistics for my account or API keys?

> [!NOTE]
>
> This isn't available yet. It's planned.

## Can I switch to an invoice-based payment?

For large credit purchases and enterprise deals, [contact our sales team](https://stability.ai/contact).

## What are your policies regarding privacy and terms of service?

Usage of the API is subject to the [Stability AI Terms of Service](https://stability.ai/terms-of-service), [Acceptable Use Policy](https://stability.ai/use-policy), and [Privacy Policy](https://stability.ai/privacypolicy).
