responses.create run on Runcrate models: point them at https://api.runcrate.ai/v1 with your Runcrate API key and a Runcrate model id. Requests are billed, limited and routed exactly as chat completions are, at the same per-token prices, with no per-minute cap on paid models beyond a high abuse guard. Nothing is stored: every request carries its whole conversation, as Codex sends it.
Codex
Paste this one line into Codex. It reads the steps written for it, asks you for your API key and the model, and sets itself up; then restart it.Set it up by hand
Set it up by hand
Add a Runcrate provider to Then run Codex with your key in
~/.codex/config.toml:RUNCRATE_API_KEY:model_context_window gives it the model’s window. Codex’s web search tool runs at OpenAI, so it is left out here: the model answers without it.
Endpoint
Basic usage
Streaming
Withstream: true the answer arrives as response.* events: response.created and response.in_progress, then each output item as response.output_item.added, its parts and deltas (response.output_text.delta, response.reasoning_summary_text.delta, response.function_call_arguments.delta) and response.output_item.done, then response.completed with the whole response and its usage. A response cut short by max_output_tokens ends with response.incomplete; one that fails, with response.failed.
Tools
Function tools takename, description and parameters. A call comes back as a function_call item; send it back in input with a function_call_output item carrying its call_id.
What is supported
A model’s reasoning comes back as a
reasoning item whose summary is the reasoning text.
Errors
Errors use OpenAI’s shape,{"error": {"message", "type", "code", "param"}}, with the same codes as chat completions, including the free allowance’s (free_allowance_used, free_tier_paused, free_prompt_too_large, github_link_required, free_tier_card_required, with its free_tier details beside them). Those five also carry free_tier.upgrade so a client or an agent can pay instead without reading the message: add_credit_url (the billing page), topup_api and topup_docs (an agent can top up by API once Top-ups are on for its key), min_amount_usd (20) and paid_price, what the free models cost once paid for, in words. The free per-minute limit (rate_limit_exceeded) has no upgrade. A free request that cannot be served right now gets a 529 with type: "overloaded_error", the code overloaded and the message Overloaded (no upgrade), a Retry-After of a few seconds, retry-after-ms and x-should-retry: true, so an SDK retries it on its own. A Retry-After header says when to retry a 429, 503 or 529.
A key that is refused on the free allowance more than 20 times in a minute gets the same refusal as a 429 with a Retry-After of at least 300 seconds (longer when the refusal’s own wait is longer) and x-should-retry: false, and the same code; stop the loop, or add credit, and the next request is served as usual.