How much does an AI coding agent cost?

Estimated monthly cost of running a coding agent such as Cursor, Claude Code or Codex CLI on your own API key.

Estimated monthly cost — Coding agent

Calculated live from current TokenRex prices.

ModelInput / 1MOutput / 1MPer month
GPT-6 Sol$2.00$10.00$240.00
GPT-6 Astra$10.00$50.00$1.2k
Claude Opus 5.5$4.00$20.00$480.00
Claude Sonnet 5$2.00$10.00$240.00
Gemini 4 Argon$2.00$10.00$240.00

The workload we priced

3,000 requests a month, each with about 30,000 input tokens and 2,000 output tokens. One token is roughly three quarters of an English word.

What drives the bill

Coding agents send large amounts of file context, so input price dominates.

Repeated repository context is the best candidate for prompt caching.

Get API keyCost calculatorDocs

Questions

Are these exact monthly bills?
They are estimates from live TokenRex prices and the token counts shown. Real bills depend on your actual prompt and reply lengths, which every API response reports in its usage field.
How do I lower the cost?
Shorten system prompts, cap reply length, cache repeated input where the model supports it, and send simple requests to a smaller model.
Which currency am I billed in?
Wallet top-ups and billing are in Indian rupees. Prices display in US dollars by default, and signed-in users can choose another display currency.

Related