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

# Add credits and create an API key

> Fund your organization and create a key for programmatic access.

<Frame>
  <img src="https://mintcdn.com/openserv/wCXyJJTiOX6drWSJ/images/tutorials/credits-and-api-keys.webp?fit=max&auto=format&n=wCXyJJTiOX6drWSJ&q=85&s=5ecbb45b4fd049c8b4a63b358c53ec98" alt="Organization credits flowing into a protected API key and backend service" width="1536" height="1024" data-path="images/tutorials/credits-and-api-keys.webp" />
</Frame>

Open **Billing** from the account menu or go to `/settings/billing`. Choose a credit amount and complete the Stripe payment flow. Your balance is shared by the organization’s API keys and members.

You can configure auto top-up after adding a payment method. AWS Marketplace organizations are billed through AWS and do not use Stripe credit purchases or auto top-up.

To create a key, open **API Keys** or go to `/settings/keys`, select **Create API key**, name it, and copy the secret immediately. The complete key is shown only once.

```bash theme={null}
export SERV_API_KEY="paste-your-key-here"
```

Create separate keys for development, staging, and production. Revoke an exposed key from the same page. Never commit the key or send it to a browser client.
