Claude vs GPT vs Gemini API pricing

A few commonly used models from each family, with their per-token prices on XHuoAPI, monthly costs at fixed volumes, and how to choose by price. All three use the same API key and endpoint; switching is a change to the model field. Claude models also accept the Anthropic format.

Prices synced · Standard · USD / 1M tokens

Per-token prices

Prices below are for the Standard tier (the default for new accounts), in USD per million tokens. "Lowest tier" is the cheapest tier the model is available in; Saver and Spot cost less and are less reliable. The pricing page explains the difference.

Model Input Cache read Output Lowest tier (in / out) Available tiers
Claude claude-sonnet-4-6 $2.40 $0.24 $12.00 $0.90 / $4.50 Spot Standard · Saver · Spot · Official
Claude claude-sonnet-5 $1.60 $0.16 $8.00 $0.60 / $3.00 Spot Standard · Saver · Spot · Official
Claude claude-opus-5 $4.00 $0.40 $20.00 $1.50 / $7.50 Spot Standard · Saver · Spot · Official
GPT gpt-4.1 $1.60 $0.40 $6.40 $0.60 / $2.40 Spot Standard · Saver · Spot · Official
GPT gpt-5.4 $2.00 $0.20 $12.00 $0.75 / $4.50 Spot Standard · Saver · Spot · Official Above 272K: $4.00 / $18.00
GPT gpt-6-sol $1.60 $0.16 $8.00 $0.60 / $3.00 Spot Standard · Saver · Spot · Official
Gemini gemini-2.5-flash $0.24 $0.024 $2.00 $0.090 / $0.75 Spot Standard · Saver · Spot · Official
Gemini gemini-2.5-pro $1.00 $0.10 $8.00 $0.38 / $3.00 Spot Standard · Saver · Spot · Official Above 200K: $2.00 / $12.00
Gemini gemini-3.1-pro-preview $1.60 $0.16 $9.60 $0.60 / $3.60 Spot Standard · Saver · Spot · Official Above 200K: $3.20 / $14.40

Monthly cost examples

Calculated at Standard tier prices, without cache-hit discounts. Real input/output ratios vary by app; use the calculator on the pricing page with your own volumes.

Model Small
10M in + 1M out
Medium
100M in + 20M out
Claude claude-sonnet-4-6 $36.00 $480
Claude claude-sonnet-5 $24.00 $320
Claude claude-opus-5 $60.00 $800
GPT gpt-4.1 $22.40 $288
GPT gpt-5.4 $32.00 $440
GPT gpt-6-sol $24.00 $320
Gemini gemini-2.5-flash $4.40 $64.00
Gemini gemini-2.5-pro $18.00 $260
Gemini gemini-3.1-pro-preview $25.60 $352

Choosing by price

Based only on the models and Standard prices on this page. Model quality is not compared here; check each vendor's documentation and your own tests for that.

Lowest input pricegemini-2.5-flash · $0.24
Lowest output pricegemini-2.5-flash · $2.00
Cheapest at small volumegemini-2.5-flash · $4.40
Cheapest at medium volumegemini-2.5-flash · $64.00
Also available in Saver / Spotclaude-sonnet-4-6 claude-sonnet-5 claude-opus-5 gpt-4.1 gpt-5.4 gpt-6-sol gemini-2.5-flash gemini-2.5-pro gemini-3.1-pro-preview
Standard / Official only—

Calling all three with one key

The endpoint is OpenAI Chat Completions compatible; the three requests below differ only in model.

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $XHUO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-opus-5", "messages": [{"role": "user", "content": "Hello"}]}'

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $XHUO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6-sol", "messages": [{"role": "user", "content": "Hello"}]}'

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $XHUO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3.1-pro-preview", "messages": [{"role": "user", "content": "Hello"}]}'

Notes