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

# Authentication

> Create, send, and protect a Corvex Token Factory API key.

Corvex Token Factory uses virtual API keys with the `sk-corvex-` prefix. A key
identifies your account and controls which models and usage limits
apply to a request.

## Create an API key

Open **Settings → API Keys** in the [Token Factory
dashboard](https://tokenfactory.corvex.cloud/app/settings/keys), select **Create
API key**, and copy the value immediately. The dashboard shows the key only
once.

Keys are created and revoked in the dashboard. Token Factory does not provide a
public API for key management.

> [!WARNING]
>
> Keep API keys server-side and out of source control, browser code, logs, and
> screenshots. If a key is exposed, revoke it in the dashboard and create a new
> one.

## Send the key

Use the header required by the endpoint family:

| Endpoint family | Header |
| - | - |
| OpenAI-compatible endpoints | `Authorization: Bearer sk-corvex-...` |
| Anthropic-compatible `/v1/messages` endpoints | `x-api-key: sk-corvex-...` |
| Usage endpoint `/api/v1/usage` | `Authorization: Bearer sk-corvex-...` |

The Anthropic-compatible endpoints also accept a Bearer token, but `x-api-key`
matches the default behavior of the Anthropic SDK and Claude Code.

`GET /v1/models` is public and does not require a key. When a valid key is
included, the response can include account-specific availability and limit
information.

> [!NOTE]
>
> Existing `sk-bf-` keys remain accepted. Create new integrations with an
> `sk-corvex-` key.

## Rate limits and usage

When a request or token-rate limit is exceeded, the API returns HTTP `429`. If
the response includes `Retry-After`, wait for that interval before retrying;
otherwise use exponential backoff.

Review usage in the [dashboard](https://tokenfactory.corvex.cloud/app/usage) or
query `GET /api/v1/usage` with the same API key. The [error
reference](https://docs.corvex.cloud/reference/errors.md) documents the stable error codes for request,
token, authentication, and billing failures.

## Related documentation

> [card] [Quickstart](https://docs.corvex.cloud/getting-started/quickstart.md)
>
> Send a chat-completions request with `curl`.

> [card] [API reference](https://docs.corvex.cloud/api-reference/openapi.md)
>
> Review endpoint authentication and schemas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.