Start with cost per accepted task
Token prices are unit rates, not the cost of a useful outcome. The number that matters operationally is total spend divided by accepted tasks, with failed requests, retries, tool charges, and reviewer time visible. A model with a lower input rate can cost more if it produces long output or needs repeated repair. A premium model can cost less per accepted result if it finishes reliably with fewer tokens—but that must be measured on your workload.
Use a transparent token formula
For a basic text request, estimated model cost equals uncached input tokens times the input rate, plus cached input tokens times the cached-input rate, plus output tokens times the output rate. Divide each token count by one million when prices are quoted per million. Add cache-write charges, tool-call charges, storage, and any platform fees separately.
Using the reviewed GPT-6 Astra Standard rates, 20,000 uncached input tokens and 4,000 output tokens estimate to $0.40: $0.20 input plus $0.20 output. Ten identical successful tasks estimate to $4 before other charges. If only eight are accepted, the model spend per accepted task becomes $0.50 even before reviewer time.
Caching, batch, fast mode, and long context change the arithmetic
At the review date, the Astra model page lists cached input at one tenth of its uncached input rate, cache writes at 1.25 times uncached input, Batch and Flex at half of Standard, and Fast mode at twice the applicable rate. It also lists higher full-request rates when input exceeds 272,000 tokens. These modifiers apply under specific product conditions; do not subtract a cache discount until your logs confirm a cache hit.
Build a three-limit budget
Use a per-request ceiling to catch runaway context, a per-task ceiling to include retries, and a monthly ceiling to protect the account. Alert before the hard limit. For batchable, non-urgent work, compare discounted asynchronous modes with the operational cost of delayed results. For urgent work, measure whether faster service reduces downstream labor enough to justify the premium.
Verify before continuing
Did you count output at its own rate? Are cache writes and confirmed hits separated? Does the request cross a long-context pricing threshold? Are tool calls and failed retries included? Is the denominator accepted tasks rather than requests? Does the budget include reviewer minutes and a stop limit?
- Did you count output at its own rate?
- Are cache writes and confirmed hits separated?
- Does the request cross a long-context pricing threshold?
- Are tool calls and failed retries included?
- Is the denominator accepted tasks rather than requests?
- Does the budget include reviewer minutes and a stop limit?
QUESTIONS THIS ANSWERS
Questions this answers
- How do I calculate the real cost of an AI API request?
- When do caching and batch processing reduce AI API costs?
Found something wrong? Report an error or read the corrections policy.
3 SOURCESEvidence ledger
Sources
- 01GPT-6 Astra model reference ↗
OpenAI · accessed 9 Sept 2026
- 02Compare models ↗
OpenAI · accessed 9 Sept 2026
- 03GPT-6 Astra model guidance ↗
OpenAI · accessed 9 Sept 2026
