show_chart Cost Planner

AI Model Price Calculator

Quickly estimate your API usage cost.

route
Estimate before routing traffic

Compare official pricing, relay multipliers and token volume in one place.

PriceTokensRoute

calculateCost Estimate

data_objectToken Calculator

Paste text to estimate how many tokens it may consume. The text is processed locally.

This is a practical estimate. Exact token counts may vary by model tokenizer.

Estimated Tokens28
Characters98
Words16
CJK chars0

table_chartMainstream Model Price Reference (per 1M Tokens)

Model / MODELProvider / PROVIDERContextInput / INPUT ($)Output / OUTPUT ($)
GPT-4oOpenAI128K5.0015.00
GPT-4 TurboOpenAI128K10.0030.00
Claude 3.5 SonnetAnthropic200K3.0015.00
Claude 3 OpusAnthropic200K15.0075.00
Gemini 1.5 ProGoogle2M3.5010.50
DeepSeek ChatDeepSeek64K0.271.10
Qwen PlusAlibaba Cloud128K0.401.20

* Prices are for reference only. Actual billing follows the official API provider.

functions

How AI API cost is calculated

Most model APIs charge input and output tokens separately. Relay services may add a multiplier or custom unit price.

Input tokens+Output tokens×Relay multiplier
01input
Input tokens

Prompt, system instructions, conversation history and tool context are usually billed as input tokens.

02output
Output tokens

Model responses are usually billed as output tokens, often at a higher unit price than input tokens.

03percent
Relay multiplier

Relay sites may apply a markup or package conversion, so compare the final cost with official pricing.

FAQ

API price calculator FAQ

paymentsCost notes
01

Why are input and output prices different?

Model providers often charge generated output tokens at a higher rate because generation uses more inference compute.

02

How accurate is the token estimate?

The text tokenizer here is a practical estimate. Exact token counts can vary by model and provider tokenizer.

03

How should I compare relay pricing?

Compare the final cost after exchange rate, relay multiplier and actual supported model names, not just the advertised unit price.