> ## 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.

# Getting started

> Create a Stability AI account, get an API key, and buy credits to start calling the Stability AI API.

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](#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](https://mintcdn.com/stability-ai/NP6aA8QE8Ed7tw4l/images/getting-started/ContinueWithGoogle.png?fit=max\&auto=format\&n=NP6aA8QE8Ed7tw4l\&q=85\&s=d6a2a802c1666f901f537645470c5a44)

## Authentication

Second, you'll need an API key to make requests to the API. To get one, hop on over to
the [API Keys](https://platform.stability.ai/dashboard/api-keys) page. All APIs documented on this site use the same authentication mechanism: passing the
API key in via the `Authorization` header.

> [!WARNING]
>
> 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](https://platform.stability.ai/dashboard/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](https://docs.stability.ai/pricing.md) 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](https://platform.stability.ai/dashboard/billing) dashboard at
a rate of \$1 USD per 100 credits.
