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

# Portkey Gateway

> Portkey Gateway'de upstream sağlayıcı olarak TokenLab kullanın

## Genel Bakış

Portkey Gateway, istekleri upstream sağlayıcı olarak TokenLab'e yönlendirebilir. En güvenli varsayılan seçenek OpenAI uyumlu sohbet tamamlama (chat completions) işlemleridir; Portkey sürümünüz TokenLab için bu yolu desteklediğinde Responses özelliğini kullanın.

<Note>
  **Tür**: AI Gateway

  **Birincil Yollar**: OpenAI uyumlu sohbet tamamlama ve Responses

  **Destek Güveni**: Desteklenen yol
</Note>

## Sağlayıcı Değerleri

| Alan          | Değer                        |
| ------------- | ---------------------------- |
| Provider      | `tokenlab`                   |
| Base URL      | `https://api.tokenlab.sh/v1` |
| API key       | `sk-your-tokenlab-key`       |
| Default model | `gpt-5.4-mini`               |

## Sohbet Tamamlama (Chat Completions)

OpenAI uyumlu sohbet istekleri için TokenLab kullanın:

```bash theme={null}
curl https://your-portkey-gateway.example/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "x-portkey-provider: tokenlab" \
  -H "Authorization: Bearer sk-your-tokenlab-key" \
  -d '{
    "model": "gpt-5.4-mini",
    "messages": [{"role": "user", "content": "Say hello from TokenLab."}]
  }'
```

## Responses

Eğer Portkey yapınız TokenLab Responses yönlendirmesi yapıyorsa, `/v1/responses` ile `gpt-5.5`, `gpt-5.4` veya `gpt-5.4-mini` kullanın.

## Yerel Uç Nokta (Native Endpoint) Notu

TokenLab ayrıca Anthropic Messages ve Gemini uyumlu uç noktaları doğrudan sunar. Bunların Portkey üzerinden kullanılıp kullanılamayacağı, dağıtılan sürümünüzdeki Portkey sağlayıcı ve uç nokta desteğine bağlıdır.
