PRZEWODNIK PO CENACH

Cennik OpenAI Codex: Rzeczywiste koszty CLI w 2026 roku

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.

Zaktualizowano June 23, 2026 RunAPI Editorial
W skrócie

Ile kosztuje 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.

Codex CLI jest bezpłatny

Sam CLI nie ma opłaty subskrypcyjnej. Płacisz tylko za tokeny API zużyte podczas każdej sesji kodowania.

Bezpośrednio przez OpenAI — $1.50 / $6.00 za 1M tokenów

Wejście codex-mini-latest kosztuje $1.50/1M tokenów, wyjście $6.00/1M tokenów przez API OpenAI.

RunAPI — $0.75 / $3.00 za 1M tokenów

RunAPI dostarcza ten sam model z rabatem 50%. Ustaw dwie zmienne środowiskowe, a Codex automatycznie kieruje ruch przez RunAPI.

Brak uzależnienia od subskrypcji

Płać tylko za to, czego używasz. Brak miesięcznej opłaty za miejsce. Brak minimalnych wydatków. Rachunki zatrzymują się w momencie, gdy przestajesz kodować.

Jak działa rozliczenie

Co jest liczone jako 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.

Porównanie cen

Cennik codex-mini-latest: OpenAI vs RunAPI

Ceny w USD za milion tokenów. Stawki RunAPI to 50% cen katalogowych OpenAI.

Miesięczne scenariusze kosztowe

Ile kosztuje typowy miesiąc?

Na podstawie codex-mini-latest przy $1.50/$6.00 (OpenAI) i $0.75/$3.00 (RunAPI) za 1M tokenów.

Przewodnik instalacji

Jak używać Codex CLI z RunAPI

1

Zainstaluj Codex CLI

2

Utwórz konto RunAPI

3

Ustaw zmienne środowiskowe

4

Uruchom Codex

5

Zweryfikuj model

FAQ

Najczęstsze pytania dotyczące cennika Codex

POWIĄZANE

Odkryj więcej

Ustaw dwie zmienne środowiskowe, a każda sesja Codex będzie działać przez RunAPI ze zniżką 50% w stosunku do stawek OpenAI. Brak subskrypcji, brak minimalnych wydatków — płacisz tylko za użyte tokeny.