Run the Codex CLI on credit bought with SOL
Run the Codex CLI on fable-5.2-high with credit bought in SOL. The config.toml model provider for the Responses route, and the two settings that must be turned off.
What you need
The Codex CLI (@openai/codex) and an API key from this gateway. Each payment gets 20x its dollar value as API credit for fable-5.2-high, charged at $8 per million input tokens and $40 per million output tokens. The minimum is 0.01 SOL.
Get a key
Ask for a quote, send the quoted SOL, report the transaction signature and poll the claim. The key arrives once the payment is approved. Each payment is approved by the operator by hand, so the key is not instant.
curl -s -X POST https://fable-drop-nine.vercel.app/v1/quote \
-H "content-type: application/json" \
-d '{"amount_sol": 0.1}'
Add the provider
Put this in ~/.codex/config.toml and export FABLE_API_KEY. Web search and sub-agent tools are turned off because Codex sends them as tool types this gateway rejects; with them on, every request fails with "Only tools of type function are supported."
model = "fable-5.2-high" model_provider = "fable" web_search = "disabled" [features] multi_agent = false [model_providers.fable] name = "Fable Drop" base_url = "https://fable-drop-nine.vercel.app/v1" env_key = "FABLE_API_KEY" wire_api = "responses"
Run it
Codex warns that it has no metadata for the model and uses fallback settings.
export FABLE_API_KEY=<api_key> codex exec "explain this repository"
What is not supported
Web search, sub-agents and images. Nothing is stored between calls; Codex sends the whole conversation each turn, which works. Reasoning settings are ignored.
How this was checked
codex-cli 0.172.0 with this config was run against a local copy of this gateway with a simulated model: codex exec completed a turn in which the model called a shell tool, Codex returned the result and the model replied. Real model answers and real coding tasks were not run, and the fable-test key was not tried with Codex, so start with a small payment.
Track what is left
A script or the agent can read remaining credit and top up before it runs out.
curl -s https://fable-drop-nine.vercel.app/v1/balance -H "x-api-key: <api_key>"Pay to 5pgexa… and get 20x credit