> ## 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에서 업스트림 공급자로 TokenLab 사용하기

## 개요

Portkey Gateway는 TokenLab을 업스트림 공급자로 하여 요청을 라우팅할 수 있습니다. 가장 안전한 기본값은 OpenAI 호환 채팅 완성(chat completions)입니다. Portkey 버전에서 TokenLab을 위한 해당 경로를 노출하는 경우 Responses를 사용하십시오.

<Note>
  **유형**: AI Gateway

  **기본 경로**: OpenAI 호환 채팅 완성 및 Responses

  **지원 신뢰도**: 지원되는 경로
</Note>

## 공급자 값

| 필드            | 값                            |
| ------------- | ---------------------------- |
| Provider      | `tokenlab`                   |
| Base URL      | `https://api.tokenlab.sh/v1` |
| API key       | `sk-your-tokenlab-key`       |
| Default model | `gpt-5.4-mini`               |

## 채팅 완성 (Chat Completions)

OpenAI 호환 채팅 요청에 TokenLab을 사용하십시오:

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

Portkey 빌드가 TokenLab Responses를 라우팅하는 경우, `/v1/responses`와 함께 `gpt-5.5`, `gpt-5.4` 또는 `gpt-5.4-mini`를 사용하십시오.

## 네이티브 엔드포인트 참고 사항

TokenLab은 Anthropic Messages 및 Gemini 호환 엔드포인트도 직접 노출합니다. Portkey를 통해 이러한 엔드포인트를 사용할 수 있는지 여부는 배포된 버전의 Portkey 공급자 및 엔드포인트 지원 여부에 따라 달라집니다.
