Understand your usage before choosing a service
Cost = input tokens / 1,000,000 × input rate + output tokens / 1,000,000 × output rate. Rates come from public sources. Check caching and long-context pricing separately.Enable JavaScript to choose a model and calculate in real time.
Explore API prices ↗