# OpenAI Codexの料金：2026年にCLIが実際にかかるコスト

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.

*Updated June 23, 2026 · RunAPI Editorial*

## 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は無料**: CLI自体にサブスクリプション料金はありません。各コーディングセッション中に消費されたAPIトークンにのみ支払います。
- **OpenAIダイレクト — $1.50 / $6.00 / 1Mトークン**: codex-mini-latest入力はOpenAI API経由で$1.50/1Mトークン、出力は$6.00/1Mトークンかかります。
- **RunAPI — $0.75 / $3.00 / 1Mトークン**: RunAPIは同じモデルを50%オフで提供します。2つの環境変数を設定すると、CodexはRunAPIを自動的にルーティングします。
- **サブスクリプションロックインなし**: 使用した分だけ支払います。月額シート料なし。最低支出なし。コーディングを止めた瞬間に請求も止まります。

## トークンとしてカウントされるものは何ですか？

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&#39;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料金：OpenAI vs RunAPI

## 典型的な月にかかるコストはいくらですか？

## 

1. **Codex CLIをインストールする** — 
2. **RunAPIアカウントを作成する** — 
3. **環境変数を設定する** — 
4. **Codexを実行する** — 
5. **モデルを確認する** — 

## Codexの料金に関するよくある質問

### 



### 



### 



### 



### 



### 



### 



### 



