Glossary

How is inference cost per token calculated?

Inference cost per token is the provider’s price per million tokens, split by direction: input tokens (your prompt) and output tokens (the response), with output typically 2 to 6 times dearer. A request’s cost is input tokens times the input rate plus output tokens times the output rate.

A worked example at catalog list prices: a request with 1,200 input and 350 output tokens on Gemini 3.5 Flash ($1.50 in, $9 out per million) costs 0.0012 × $1.50 + 0.00035 × $9, about $0.0049. A million such requests is about $4,950 a month.

Three modifiers move the real number: cached input bills at a published discount, batch traffic can run on cheaper models, and routing sends each request shape to the model priced for it.

Try it: LLM price comparison

Related terms

Allocate is the cloud inference platform for companies that want to train and run their own models.