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

# Быстрый старт

> Сделайте первый запрос к OmniaKey API за несколько минут.

В этом руководстве используется OpenAI-compatible endpoint. Для Claude Code,
Cursor, Codex, Cline и aider смотрите раздел [Tools & SDKs](/ru/coding).

## Шаг 1: создайте API key

Создайте ключ в [личном кабинете API Keys](https://omniakey.com/dashboard/tokens).
Каждый запрос использует заголовок:

```bash theme={null}
Authorization: Bearer your-omniakey-api-key
```

## Шаг 2: установите SDK

<CodeGroup>
  ```bash Python theme={null}
  pip install openai
  ```

  ```bash Node.js theme={null}
  npm install openai
  ```
</CodeGroup>

## Шаг 3: отправьте запрос

Укажите `base_url` как `https://api.omniakey.com/v1` и возьмите model ID со
страницы [Models](/ru/models).

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="your-omniakey-api-key",
      base_url="https://api.omniakey.com/v1",
  )

  response = client.chat.completions.create(
      model="claude-opus-4-8",
      messages=[{"role": "user", "content": "Explain what a race condition is."}],
  )

  print(response.choices[0].message.content)
  ```

  ```bash cURL theme={null}
  curl https://api.omniakey.com/v1/chat/completions \
    -H "Authorization: Bearer your-omniakey-api-key" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "claude-opus-4-8",
      "messages": [{"role": "user", "content": "Explain what a race condition is."}]
    }'
  ```
</CodeGroup>

## Streaming

```python theme={null}
stream = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Write a haiku about clean code."}],
    stream=True,
)

for chunk in stream:
    if chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="")
```
