Text models

Budget DeepSeek V4.1 Flash calls

Estimate a batch from real input and output lengths.

Measure the text you actually send

Count prompts, prior messages, and tool results. If your provider offers a cache tier, track its eligibility and share separately.

Estimate each request size separately

Measure small, medium, and large requests, then weight their costs by volume. Replace estimated output lengths with the observed billing records.

Models in this guide

Related guides and tools

Sources