API cost calculator
Plan a text-model budget using verified prices and your own token estimates.
Compare up to three models in US dollars, Chinese yuan or Japanese yen. Calculations happen in your browser without an account, API key or model request.
Your estimate
Choose a model, adjust your usage and calculate.
API usage is separate from chat subscriptions and Coding Plans.
How the estimate works
Cost = (input tokens × input price + billed output tokens × output price) ÷ 1,000,000 × calls per day × days.
Example: 3,000 input tokens and 1,000 billed output tokens per call, 100 calls per day and 30 days. Change each model's token counts to match its tokenizer and your actual workload.
Token quantities can differ between models. Estimates are not invoices or quality rankings. Taxes, discounts and unsupported billing features are excluded; confirm the provider's current terms.
Your usage and custom prices stay in this browser. A shared link includes those numeric conditions. Anonymous tool-usage totals do not include the entered quantities or prices.
Model pricing and sources2 models · 2 rates
Alibaba
qwen4-35b-a3b1 rate
US (Virginia) · GlobalModel Studio · US · VirginiaInput / 1M tokens0.057 USDOutput / 1M tokens0.339 USD
Use the international USD price list for this endpoint.
Standard synchronous, non-thinking text requests. The estimate uses uncached input and billed text output. Cached input, cache writes, batch, tools and media are outside this estimate.
qwen4-max1 rate
US Virginia endpoint · Global deploymentModel Studio · US Virginia · GlobalInput / 1M tokens1.413 USDOutput / 1M tokens4.24 USD
Available to eligible API accounts in supported markets.
Standard synchronous text generation with uncached input and text output. Pricing for cache, batch, priority processing, media and tools is separate.
