Text models

Claude API input and output pricing

Estimate a conversation from the actual context and generated tokens.

Count repeated context

Include the system prompt, prior messages, and tool results each time they are sent. Estimate output separately because its unit price can differ.

Compare the right billing source

Record provider list prices separately from ModelPort quotes. Check the actual usage and final charge using the response request ID.

Models in this guide

Related guides and tools

Sources