Claude Code on any model
Keep Anthropic’s coding agent exactly as it is and run it on Claude, GPT, Gemini, Qwen or any other model in the catalogue. Two settings, one key, pay per token from your balance.
- Setup in a minute
- Messages
- Prompt caching on Claude
- Extended thinking on Claude
Get an API key
Sign up, add money on the Billing page, then create a key. It starts with sk-live- and is shown only once — copy it straight away.
Point Claude Code at FlintBeam
Two environment variables. The address has no /v1 on the end — Claude Code adds it.
export ANTHROPIC_BASE_URL="https://api.flintbeam.com"
export ANTHROPIC_AUTH_TOKEN="sk-live-your-api-key"
claude --model anthropic/claude-sonnet-5-5ANTHROPIC_API_KEY works too — the key is read from either header. Switch models any time inside Claude Code with /model.
Pick a model
Model names are ours: maker/model, exactly as the catalogue writes them. Click one and the code above changes with it.
Input / output prices, live from the catalogue. All 140 models →
Check it works
Run claude and ask anything. Within a few seconds the request shows up in Usage in your dashboard, with the model, tokens and the exact price.
What works where
On Claude models
- Prompt caching
- Extended thinking
- Web search — $0.01 a search
On GPT, Gemini, Qwen and others
- Your own tools, file edits, the whole agent loop
- Web search
- Claude-only extras are left out, never faked — the
x-ignored-paramsresponse header names them. - Claude Code may say it does not recognise the model and assumes a large context window. That is harmless.
If something goes wrong
401Invalid API keyinvalid_api_key
The key is missing, wrong or unknown. Check the header, not the balance.
Check ANTHROPIC_AUTH_TOKEN (or ANTHROPIC_API_KEY) in the same terminal, and that the key is Active on the API keys page.
402Not enough balanceinsufficient_credits
Not enough balance for the estimated cost of this request.
Top up on the Billing page, or turn on auto top-up so a long session never stops halfway.
404Model not foundmodel_not_found
No such model on sale. Check the exact code against /v1/models.
The name after --model must be the full catalogue code with the maker in front, maker/model, exactly as the catalogue writes it — copy it from the model’s page.
403Key not allowed for this modelmodel_not_allowed
This key may not use that model. The model exists — the key is narrowed.
The model exists, but this key was limited to other models. Widen it under “What this key can reach”, or use another key.
429Too many requestsrate_limit_exceeded
The key's spending limit, request rate or token rate for this period is reached, or the provider is busy for a moment. Wait as long as Retry-After says.
Wait as long as Retry-After says, then try again.
Ready in a minute
Create a key, point your tool at FlintBeam, keep coding — on any model.