TTokenHub
Prepare API

OpenAI-compatible gateway

TokenHub

Keys, routes, and usage records for model API traffic.

Prepare API integration
curl https://api.yourdomain.com/v1/models

Quickstart

Change the base URL. Keep the client.

curlPOST /v1/chat/completions
curl https://api.yourdomain.com/v1/chat/completions \
  -H "Authorization: Bearer sk_tg_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "messages": [
      { "role": "user", "content": "Ping the gateway" }
    ]
  }'

Primitives

Small surface area. Clear control points.

Keys

Hash, revoke, and limit project credentials.

Routes

Map public model names to upstream pools.

Ledger

Record tokens, cost, latency, status, and request id.

Usage

Request records stay inspectable.

request_idreq_8Kx2
modelgpt-5.5 -> openai-primary
tokens8,240 total / 1,204 cached
status200 / recorded