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

# Hızlı Başlangıç

> İlk OmniaKey isteğinizi 5 dakikadan kısa sürede gönderin

Bu rehber OpenAI uyumlu bir SDK kullanır. Bir kodlama ajanını bağlamak
istiyorsanız (Claude Code, Cursor, Cline, aider, Codex), [Kodlama Ajanları](/tr/coding)
sayfasına bakın.

## 1. Adım: API anahtarınızı alın

[omniakey.com](https://omniakey.com) adresinden kaydolun ve Dashboard'da bir
anahtar oluşturun. **Yeni hesaplara ücretsiz kredi verilir; bu örnekleri hemen
çalıştırabilirsiniz** — başlamak için bakiye yüklemeniz gerekmez. Her istek şu
header ile kimlik doğrular: `Authorization: Bearer <your-key>`.

<Card title="Dashboard'a git" icon="key" href="https://omniakey.com/dashboard/tokens">
  API anahtarınızı oluşturun
</Card>

## 2. Adım: Bir SDK kurun

OmniaKey resmi OpenAI SDK'leriyle çalışır; OmniaKey'e özel bir kütüphane gerekmez.

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

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

## 3. Adım: İlk isteğinizi gönderin

Base URL'i `https://api.omniakey.com/v1` olarak ayarlayın ve anahtarınızı kullanın.
[Modeller](/tr/models) sayfasından herhangi bir model id'si seçebilirsiniz; burada
`claude-opus-4-8` kullanıyoruz.

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

## 4. Adım: Yanıtı stream edin

Token'ları üretildikçe almak için `stream: true` ayarlayın:

```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="")
```

## Sonraki adımlar

<CardGroup cols={3}>
  <Card title="API Referansı" icon="code" href="/tr/api">
    Üç protokol, model matrisi ve cURL/SDK örnekleri
  </Card>

  <Card title="Kodlama Ajanları" icon="terminal" href="/tr/coding">
    Claude Code, Cursor, Cline, aider ve Codex'i yapılandırın
  </Card>

  <Card title="Modeller" icon="cubes" href="/tr/models">
    Tüm Claude, GPT ve Gemini listesini inceleyin
  </Card>
</CardGroup>
