Integration tutorial

Connect Codex

Point the built-in OpenAI provider at DiscountedTokens using the Responses API.

01
Buy or create a key

Use guest checkout or create an account key.

02
Set the base URL

https://discountedtokens.com/v1

03
Send a small test

Verify the route before moving production traffic.

~/.codex/config.toml

model = "gpt-5.6-sol" openai_base_url = "https://discountedtokens.com/v1"

Run and verify

export OPENAI_API_KEY="YOUR_DISCOUNTEDTOKENS_KEY" codex

Troubleshooting

Get an API key → All tutorials

Successful API requests are billed at the displayed token rates, metered to a fraction of a cent. Charges accumulate and are deducted from your prepaid balance in whole US cents, so a small request is not rounded up to a minimum charge.