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

# Quickstart

> Create an API key and call the OpenAI-compatible Chat Completions API.

# Quickstart

## 1. Get an API key

Sign in to the [console](https://omniall.ai/dashboard) → **API Keys** → create a token and copy the `sk-...` secret.

## 2. Set the Base URL

Point your client Base URL to the API host:

```text theme={null}
https://api.omniall.ai/v1
```

Website / console: [https://omniall.ai](https://omniall.ai). Include `/v1` in the API Base URL.

## 3. Make a request

```bash theme={null}
curl https://api.omniall.ai/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

## 4. Use the OpenAI SDK

```python theme={null}
from openai import OpenAI

client = OpenAI(
    api_key="sk-...",
    base_url="https://api.omniall.ai/v1",
)

resp = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
```

See the [API overview](/api-reference/overview) for more endpoints.


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