Codex on any model
OpenAI’s coding agent, unchanged, on any text model in the catalogue. Add FlintBeam as a provider in Codex’s config, set one key, pay per token from your balance.
- Setup in a minute
- Responses
- Every text model
- MCP servers
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 Codex at FlintBeam
Add FlintBeam as a model provider in ~/.codex/config.toml, then put your key in the variable it names.
model = "openai/gpt-5.3-codex"
model_provider = "flintbeam"
[model_providers.flintbeam]
name = "FlintBeam"
base_url = "https://api.flintbeam.com/v1"
env_key = "FLINTBEAM_API_KEY"
wire_api = "responses"The address ends in /v1 and wire_api stays responses. Codex reads the key from the variable named in env_key.
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 codex 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 OpenAI models
- Streaming
- Function tools and
web_search - MCP servers
On Claude, Gemini, Qwen and others
- Streaming, function tools,
web_searchand MCP servers store,metadataandprompt_cache_keyare dropped and named in thex-ignored-paramsresponse header.- Codex may warn “Model metadata not found” and use a fallback. 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 FLINTBEAM_API_KEY in the terminal you start Codex from, 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 model in config.toml 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.