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

# Authentication

> Learn how to authenticate requests using API keys.

## Obtaining Your API Key

To access our API, you need an API key. You can generate your API key by visiting the [Smallest AI Console](https://app.smallest.ai/dashboard/settings/apikeys?utm_source=documentation\&utm_medium=api-references).

## Using API Keys

Once you have an API key, you must include it in the `Authorization` header of each request using the **Bearer Token** scheme.

### Example Request

```http theme={null}
GET /v1/some-endpoint HTTP/1.1
Host: api.smallest.ai
Authorization: Bearer YOUR_API_KEY_HERE
```

## Security Best Practices

* **Keep your API key private**: Do not expose your key in client-side applications.
* **Rotate keys periodically**: Regularly regenerate your API keys to enhance security.
* **Use environment variables**: Store API keys securely instead of hardcoding them in your source code.
* **Monitor API usage**: Keep track of your API calls to detect any unauthorized access.

For more details, visit our [API Documentation](/v4.0.0/content/getting-started/authentication#model-overview).
