Skip to main content
Welcome to the Stability AI API! This guide will help you get started with the Stability AI API.

Create an account

First, you’ll need to create an account with us. You can create one using a username and password, or by using your Google account. Creating your account with Google’s social login will grant you 25 free credits! To create an account using your Google account and receive free credits, click on the Login button on the top-right and then choose the following option: Continue with Google

Authentication

Second, you’ll need an API key to make requests to the API. To get one, hop on over to the API Keys page. All APIs documented on this site use the same authentication mechanism: passing the API key in via the Authorization header.
Your API key needs to be kept secret! If you suspect your key has been leaked, first create a new one on the API Keys page, and then delete the old one.

Credits

Lastly, you’ll need some credits to make requests to the API. Credits are the unit of currency that is consumed when calling the API, and the amount of credits consumed per request will vary across models and modalities. Refer to the Pricing page to learn more about credit usage for specific models.

Purchasing credits

After depleting your free credits, additional credits can be purchased via your Billing dashboard at a rate of $1 USD per 100 credits.