Codex pricing: models and monthly cost
Compare Codex models by real token rates, monthly cost and setup. Prices and model IDs come from the live catalog.
What a working month costs
Computed on gpt-5.6-terra. The example workload is 20M input and 2M output tokens; official and Code By AI prices use the same tokens.
| Usage tier | Input / output tokens | List price | Code By AI | Saving |
|---|---|---|---|---|
| Light | 5M / 500K | $20.00 | $2.67 | 87% |
| Regular | 20M / 2M | $80.00 | $10.67 | 87% |
| Heavy | 80M / 8M | $320.00 | $42.67 | 87% |
Set up Codex
Set model_provider = "codebyai", point the provider's base_url at https://www.codebyai.net/api/agent, set wire_api = "responses", and use model ID gpt-5.6-terra.
model_provider = "codebyai" model = "gpt-5.6-terra" [model_providers.codebyai] name = "Code By AI" base_url = "https://www.codebyai.net/api/agent" wire_api = "responses" requires_openai_auth = true
Codex models and token rates
| Model | List price | You pay |
|---|---|---|
| gpt-6.1-terra | $1.00 / $5.00 | $0.13 / $0.67 |
| gpt-6-sol | $2.00 / $10.00 | $0.27 / $1.33 |
| gpt-6.1-sol | $2.00 / $10.00 | $0.27 / $1.33 |
| gpt-5.6-terraDefault | $2.50 / $15.00 | $0.33 / $2.00 |
| gpt-5.6-sol | $4.00 / $20.00 | $0.53 / $2.67 |
| gpt-6-astra | $10.00 / $50.00 | $1.33 / $6.67 |
per 1M tokens (input / output)
FAQ
- How much does gpt-5.6-terra cost per month?
- For the example month, gpt-5.6-terra costs $80.00 at list price and $10.67 through Code By AI.
- Can I use Codex with the same key?
- Yes. One Code By AI key works for Codex and the other channels. Use the protocol and model ID shown in the guide.
- Where do I set up Codex?
- Use the Codex setup guide linked on this page. It covers the exact config file and model IDs for Codex.