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

# API Keys

> Authenticate with the Gravix Layer API

## Get Your API Key

Sign up at [api.gravixlayer.ai](https://api.gravixlayer.ai) and generate an API key from your dashboard.

## Set Your API Key

<CodeGroup>
  ```bash Environment Variable (Recommended) theme={null}
  export GRAVIXLAYER_API_KEY="your-api-key"
  ```

  ```python Python theme={null}
  from gravixlayer import GravixLayer

  client = GravixLayer(api_key="your-api-key")
  ```
</CodeGroup>

When `GRAVIXLAYER_API_KEY` is set, the SDK picks it up automatically — no need to pass it in code.

```python theme={null}
from gravixlayer import GravixLayer

# Reads GRAVIXLAYER_API_KEY from environment
client = GravixLayer()
```

## API Base URL

```
https://api.gravixlayer.ai
```

All requests require the `Authorization: Bearer <API_KEY>` header. The SDK handles this automatically.
