Complex reasoning
Analyze, plan, and work through problems that need several steps.
Claude Code · Codex · Gemini CLI · OpenAI SDK
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.
01 / Models
Reason, write, analyze images, or code. Switch models by changing the model parameter.
Analyze, plan, and work through problems that need several steps.
Draft, refine, and develop ideas through multi-turn dialogue.
Interpret images and combine visual and text inputs.
Write and debug code, and automate the work around it.
02 / Integration
Find keys, endpoints, and supported model IDs in the console.
Create a key in the console and save it as the TOKENKING_API_KEY environment variable.
Set your SDK or tool’s Base URL to the address in the example.
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)03 / Console
Assign keys by project, review requests by date, model, and key, and manage balance and plans in one place.
Separate production and development keys; disabling one never touches the others.
See requests and tokens by date, model and key, and catch unusual growth the same day.
Top-ups, subscriptions and usage live in the same console, so month end needs no reconciling.
sk-•••• 9X4PPRODUCTIONsk-•••• 2K8MDEVELOPMENT