Cheaper tokens for Codex & the OpenAI SDK

Updated 2026-11-08 · Use-case guide

Whether you use the Codex CLI, the OpenAI SDK, or any OpenAI-compatible framework, you're paying list price per token unless you change one setting.

The one-line change

Set OPENAI_BASE_URL to the endpoint Token Supply gives you and OPENAI_API_KEY to your new key. Everything else in your code stays identical.

Good fits

What to verify

Codex and OpenAI are trademarks of OpenAI. Mentioned as a compatible use case only — no affiliation or partnership implied.

Pay less for Codex usage

Compare Token Supply rates to the public rate card.

Check today's discount →

Discounts are "up to" figures and vary by model and volume.

Affiliate disclosure: this is an independent review and deals site. We may earn a commission when you buy through our links, at no extra cost to you. We are not affiliated with, endorsed by, or partnered with OpenAI, Anthropic, Google, or any AI model provider. All pricing and discount figures are "up to" figures and may change — always confirm on the vendor's page.