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-3.5-flash $1.20 $0.12 $7.20 $0.45 / $2.70 Spot Standard · Saver · Spot · Official
Gemini gemini-3.8-flash $0.60 $0.060 $3.00 — Standard · Official
Gemini gemini-4-argon $1.60 $0.16 $8.00 $0.60 / $3.00 Spot Standard · Saver · Spot · Official

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-3.5-flash $19.20 $264
Gemini gemini-3.8-flash $9.00 $120
Gemini gemini-4-argon $24.00 $320

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-3.8-flash · $0.60
Lowest output pricegemini-3.8-flash · $3.00
Cheapest at small volumegemini-3.8-flash · $9.00
Cheapest at medium volumegemini-3.8-flash · $120
Also available in Saver / Spotclaude-sonnet-4-6 claude-sonnet-5 claude-opus-5 gpt-4.1 gpt-5.4 gpt-6-sol gemini-3.5-flash gemini-4-argon
Standard / Official onlygemini-3.8-flash

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-4-argon", "messages": [{"role": "user", "content": "Hello"}]}'

Notes