# Authentication

Get the correct credential for the account API, proxy connections, Web MCP, or the AI Model Gateway.

## Account API key

1. Sign in and open [Settings → API Key](/dashboard/settings/api-keys). Generate a key beginning with `ak_`.
2. Store it as `ARCVENZA_API_KEY` in a server-side environment variable or secrets manager. Set `Authorization: Bearer <YOUR_API_KEY>` on requests to the [account API](/docs/api).
3. To set up your API client, download [OpenAPI JSON](/openapi.json), import it, and set Bearer authentication under `AccountApiKey`.

An account API key authorizes the operations in the API reference. A missing or invalid key can return HTTP 401. If a valid account key is refused for a route, check whether the operation is in the public API reference.

## Which credential to use

| Credential | Where to get it | Where to send it |
| --- | --- | --- |
| Proxy username and password | The active product workspace or plan details in the [dashboard](/dashboard). | Proxy authentication in the client, together with the provided host and port. |
| Unlimited plan key | The active Unlimited Residential plan in the [dashboard](/dashboard/unlimited-residential-proxies). | The sensitive `KeyName` query parameter for [unlimited generation](/docs/api/unlimited-generate), along with the account key in the header. |
| Web MCP key | [Web MCP](/dashboard/web-mcp). Copy the full key at creation. | `Authorization: Bearer <YOUR_MCP_KEY>` on `/mcp`. |
| Gateway API key | [AI Model Gateway](/dashboard/ai-model-gateway). Select permitted models when creating the key. | `Authorization: Bearer <YOUR_GATEWAY_KEY>` for OpenAI-compatible requests or `x-api-key` for Anthropic Messages. |

## Rotate or revoke a key

Only one account API key is active at a time. Resetting it in Settings immediately invalidates the previous key. For Web MCP and the gateway, revoke the exposed key in its own workspace and update the client with a new one. Keep secrets out of logs, source control and screenshots, including URLs containing a plan key.

## AI integration prompt

```text
Read the Arcvenza Markdown at https://www.arcvenza.com/docs/markdown/authentication.md and use https://www.arcvenza.com/llms.txt to find related guides. Cite https://www.arcvenza.com/docs/authentication for this page. Ask what I want to integrate, then identify the correct product, endpoint and authentication method. Confirm the required access before sending a live request through API Playground, and show how to supply credentials through environment variables. Indicate any account, plan or usage requirements and flag anything the docs do not establish.
```

[Open API Playground](/docs/playground)

[llms.txt](/llms.txt)

