API reference — build on every model

OpenAI-compatible chat completions, Anthropic-compatible messages, image and video generation — the same key.

Chat completions

curl https://tokion.io/api/v1/chat/completions \
  -H "Authorization: Bearer tok_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "kimi-k3", "messages": [{"role": "user", "content": "Hello"}]}'

Image generation

curl https://tokion.io/api/v1/images/generations \
  -H "Authorization: Bearer tok_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-image", "prompt": "a cat astronaut"}'

Anthropic clients

export ANTHROPIC_BASE_URL=https://tokion.io/api
export ANTHROPIC_AUTH_TOKEN=tok_...

# Claude Code, Cline и другие Anthropic-совместимые клиенты работают сразу

What you get

OpenAI-compatibleUse the official OpenAI SDK with a new base_url. Chat, streaming, function calling — all supported.
Anthropic-compatibleNative /v1/messages endpoint for Claude Code, Cline and other Anthropic clients.
Images & videoGeneration endpoints share the same key and balance as chat.
Usage in responseEvery response includes token usage; failures are never billed.

Get your key

Create an account — the key is in settings, free tokens included.

Open the app