Skip to main content

Overview

Portkey Gateway can route requests to TokenLab as an upstream provider. The safest default is OpenAI-compatible chat completions; use Responses when your Portkey version exposes that path for TokenLab.
Type: AI GatewayPrimary Paths: OpenAI-compatible chat completions and ResponsesSupport Confidence: Supported path

Provider Values

FieldValue
Providertokenlab
Base URLhttps://api.tokenlab.sh/v1
API keysk-your-tokenlab-key
Default modelgpt-5.4-mini

Chat Completions

Use TokenLab for OpenAI-compatible chat requests:
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

If your Portkey build routes TokenLab Responses, use gpt-5.5, gpt-5.4, or gpt-5.4-mini with /v1/responses.

Native Endpoint Note

TokenLab also exposes Anthropic Messages and Gemini-compatible endpoints directly. Whether those can be used through Portkey depends on the Portkey provider and endpoint support in your deployed version.