Pricing is the same whether requests stream or not. Failed requests (5xx, 429) are not billed.
How billing works
- Input tokens are counted from the rendered prompt after applying the model’s chat template.
- Output tokens include generated text. For reasoning models,
reasoning_contenttokens count toward output. - Cache read tokens are cached input tokens reported by the backend. They appear in pricing only for models with non-zero cache-read rates.