Skip to content

Quickstart

TokenFlux is a model gateway: one API key lets you call models from many providers inside the client you already use.

This page maps out the route. Three steps and you are running.

Access Note

Some content on this site or related services may require a proxy before access works reliably. Use the default tokenflux.dev endpoint for API requests; the former mainland acceleration endpoint is deprecated.

For AGENTS

For bulk Markdown reads, use markdown-sitemap.xml. For a single page, append .md to any documentation URL that does not end with /, for example /en/docs/quickstart.md.

Three Steps

StepWhat to doWhere
1Top up or subscribe to get inference creditsTop-up/Subscription · Billing
2Create an API key and pick a groupCreate API Key
3Enter the key and endpoint in your clientSee the selection below

Prices shown in the model marketplace are the final billing prices; no extra conversion is needed.

Pick Your Client

Best for terminal workflows, programming tasks, or users who want AI Agent assistance while developing.

Start with CC-Switch. It manages API keys and provider settings in one place, so you do not have to edit environment variables by hand. Then follow the guide for your client:

ClientBest forGuide
Claude CodeAnthropic's official CLI, terminal codingGuide
CodexOpenAI's official CLI and desktop appGuide
Codex++Adds extra capabilities on top of CodexGuide
OpenCodeOpen-source terminal agent with model switchingGuide
HermesLightweight terminal agentGuide

Going Further

Once things work, these may be useful:

  • Composite Key - bind one key to several groups and switch with prefixes
  • Fast Mode - force the high-priority tier at the key level
  • Team - share the owner's balance while everyone keeps their own keys
  • Referral Rewards - earn inference credits by inviting friends

Troubleshooting

  • FAQ - connection drops, model detection, and other common questions
  • API Endpoints - choosing an endpoint and migrating from deprecated routes
  • Usage Policy - what gets accounts banned