Skip to main content

Claude Code · Codex · Gemini CLI · OpenAI SDK

Light up one key,sail the whole model galaxy

Compatible with the OpenAI and Anthropic protocols. Point your coding assistants, SDKs and scripts at Token King, pay as you go, and see every call traced on the console star map.

  • Claude Code
  • Codex
  • Gemini CLI
  • OpenAI SDK

01 / Models

Pick a model for the task.Keep the same key.

Reason, write, analyze images, or code. Switch models by changing the model parameter.

Reasoning

Complex reasoning

Analyze, plan, and work through problems that need several steps.

Writing

Creative writing

Draft, refine, and develop ideas through multi-turn dialogue.

Vision

Visual understanding

Interpret images and combine visual and text inputs.

Code

Coding

Write and debug code, and automate the work around it.

View all models and pricing

02 / Integration

Change the Base URL.Get started in three steps.

Find keys, endpoints, and supported model IDs in the console.

  1. 1

    Create an API key

    Create a key in the console and save it as the TOKENKING_API_KEY environment variable.

  2. 2

    Set the endpoint

    Set your SDK or tool’s Base URL to the address in the example.

  3. 3

    Choose a model and run

    Set an available model ID as TOKENKING_MODEL and run the example.

import OpenAI from 'openai'const client = new OpenAI({  apiKey: process.env.TOKENKING_API_KEY,  baseURL: 'https://api.token-king.com/v1'})const response = await client.chat.completions.create({  model: process.env.TOKENKING_MODEL,  messages: [{ role: 'user', content: 'Hello' }]})console.log(response.choices[0].message.content)
POST /v1/chat/completionsNode.js

03 / Console

See where your tokens go.Track every request.

Assign keys by project, review requests by date, model, and key, and manage balance and plans in one place.

  1. 01

    One key per project

    Separate production and development keys; disabling one never touches the others.

  2. 02

    Daily requests at a glance

    See requests and tokens by date, model and key, and catch unusual growth the same day.

  3. 03

    Balance and plans in one place

    Top-ups, subscriptions and usage live in the same console, so month end needs no reconciling.

Requests in the last 30 days24,680
Tokens used8.42M
Active keys2
production-appsk-•••• 9X4PPRODUCTION
local-developmentsk-•••• 2K8MDEVELOPMENT

Start with your first key,
chart your own course.

Launch