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

# API keys

> Create sandbox and live API keys from the AI Gen Studio dashboard.

API keys are managed in the AI Gen Studio web app.

| Key type | Use for                                       |
| -------- | --------------------------------------------- |
| Sandbox  | Integration tests without credit consumption. |
| Live     | Production jobs that reserve paid credits.    |

Use keys server-side only. Never expose an API key in a browser, mobile app, or public repository.

```bash theme={"theme":{"light":"github-light","dark":"github-light"}}
Authorization: Bearer aigs_sandbox_...
```

## Key lifecycle

You can create, deactivate, reactivate, or revoke keys from the dashboard. Revoked keys cannot be recovered.

## Environments are isolated

A sandbox key can only read sandbox jobs. A live key can only read live jobs.
