OpenAI Codex-prijzen: Wat de CLI werkelijk kost in 2026
OpenAI Codex CLI is a free, open-source tool — but it sends every prompt to the OpenAI API, which charges per token. One image compression task burned 7,675 tokens: between 3 and 11 cents. The default model, codex-mini-latest, costs $1.50 per million input tokens and $6.00 per million output tokens. Pointing Codex at RunAPI instead cuts those rates by 50%, with no other changes to your workflow.
Hoeveel kost OpenAI Codex?
The Codex CLI itself is free to download and run. The cost comes from API calls: every prompt, file read, and code generation goes to the OpenAI API. The default model is codex-mini-latest, priced at $1.50/1M input tokens and $6.00/1M output tokens through OpenAI directly. A moderate coding session — roughly 8M input and 2M output tokens per month — runs about $24 with OpenAI. The same usage through RunAPI costs $12. RunAPI is OpenAI-compatible, so you change two environment variables and nothing else. Tip: run /compact during long sessions to free up context and stop burning tokens on conversation history.
De CLI zelf heeft geen abonnementskosten. Je betaalt alleen voor de API-tokens die tijdens elke codeersessie worden verbruikt.
codex-mini-latest invoer kost $1,50/1M tokens, uitvoer kost $6,00/1M tokens via de OpenAI API.
RunAPI levert hetzelfde model voor 50% korting. Stel twee omgevingsvariabelen in en Codex routeert automatisch via RunAPI.
Betaal alleen voor wat je gebruikt. Geen maandelijkse abonnementskosten. Geen minimale besteding. Facturen stoppen zodra je stopt met coderen.
Wat telt als token?
Every message Codex sends to the API includes your prompt, the full context of files it has read, any tool results, and conversation history. That combined input is tokenized (roughly 750 words per 1,000 tokens). The model's response — edited code, explanations, next steps — counts as output tokens. Both directions are billed separately. Codex caches nothing between sessions, so a fresh session re-reads the same files and bills that context again. One real example from a developer testing image compression — a single 5 MB file task burned 7,675 tokens, or roughly 3 to 11 cents. Not very cheap for one file, but most coding sessions stay well under a dollar each.
codex-mini-latest prijzen: OpenAI vs RunAPI
Prijzen in USD per miljoen tokens. RunAPI-tarieven zijn 50% van de lijstprijzen van OpenAI.
Wat kost een typische maand?
Gebaseerd op codex-mini-latest voor $1,50/$6,00 (OpenAI) en $0,75/$3,00 (RunAPI) per 1M tokens.
Codex CLI gebruiken met RunAPI
Codex CLI installeren
Een RunAPI-account aanmaken
Stel je omgevingsvariabelen in
Codex uitvoeren
Het model verifiëren
Veelgestelde vragen over Codex-prijzen
Meer ontdekken
OpenAI API-prijzen
Volledig OpenAI-modelaanbod — GPT-5.4, o3 en meer met 50% korting.
Claude Code-prijzen
Kostenvergelijking Claude Code: API-facturering vs. Max-abonnement.
Claude Code vs. Cursor
Functie- en kostenvergelijking van de twee toonaangevende AI-codeertools.
RunAPI CLI
Start elk model vanuit je terminal met één opdracht.
Stel twee omgevingsvariabelen in en elke Codex-sessie draait via RunAPI met 50% korting op OpenAI-tarieven. Geen abonnement, geen minimale besteding — je betaalt alleen voor gebruikte tokens.