> ## Documentation Index
> Fetch the complete documentation index at: https://elarislabs-87.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys

> How to create, rotate, and revoke brand-bound API keys that authenticate your agent or MCP client against ElarisLabs Creative Studio.

Every API key is bound to one brand and authenticates all MCP and agent requests made on that brand's behalf. Keys are created in your ElarisLabs profile under **API keys / MCP**.

## How do I create a brand-bound API key?

**1. Open your profile**

Go to [your profile](https://studio.elarislabs.ai/en/profile) and select **API keys / MCP**.

**2. Choose a brand**

Select the brand this key will act on. All generation spend is billed to that brand's credit balance.

**3. Set expiry and spend cap**

Set an expiry (max 24 weeks) and a per-key spend cap (max 2000 credits). Both are editable after creation.

**4. Copy the key**

Copy the key (`elx_live_...`). It is shown only once. Store it in a secrets manager or environment variable immediately.

> [card] Bound to a brand
>
> The key acts on one brand. All spend is billed to that brand's credit
> balance.

> [card] Expiry and spend cap
>
> Required expiry up to 24 weeks. Per-key spend cap up to 2000 credits,
> editable anytime.

> [card] Revoke or rotate
>
> Rotate to replace a key, or revoke to disable it instantly. Manage all keys
> from settings.

> [card] Scopes
>
> Keys ship with `studio:read` and `studio:generate`. That is enough to list
> projects and run generation tools.

> [!NOTE]
>
> **Endpoint:** your MCP URL is `https://studio.elarislabs.ai/api/mcp`.
> Authenticate with `Authorization: Bearer elx_live_...`. The server uses
> Streamable HTTP (stateless). It works with Claude Desktop, Cursor, and
> `mcp-remote` for older clients.

> [!WARNING]
>
> **Security:** treat `elx_live_...` like a password. Never commit it to git,
> paste it in public channels, or share it in screenshots. Prefer separate keys
> per client (Claude vs Cursor vs CI) with low spend caps when possible.

## Where to next

> [card] [MCP setup](https://elarislabs-87.mintlify.site/connect/setup.md)
>
> Paste the key into Claude, Cursor, or another MCP client.

> [card] [Tool reference](https://elarislabs-87.mintlify.site/connect/tools.md)
>
> See which tools are free vs credit-consuming.


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