> ## 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.

# Quick Start

> Haz tu primera solicitud a la API de OmniaKey en pocos minutos.

Este guía usa el endpoint OpenAI-compatible. Para Claude Code, Cursor, Codex,
Cline o aider, consulta [Herramientas y SDKs](/es/coding).

## Paso 1: crea una API key

Crea una key en el [panel de API Keys](https://omniakey.com/dashboard/tokens).
Cada solicitud usa:

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

## Paso 2: instala un SDK

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

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

## Paso 3: envía una solicitud

Define `base_url` como `https://api.omniakey.com/v1` y copia un model id desde
[Models](/es/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="")
```
