Model Pricing API
qwen3.8-max
Model Pricing API
- GET /api/pricing/model for display rates
- Read only data.pricing; effective_rates is what users pay
- Tool prices must be multiplied by price_factor
- Contract is generic for TokenPricingV2 models
GET
Model Pricing API
Examples use
Model behavior and billing rules: qwen3.8-max guide.
Read only
The response may include several overlapping price blocks — frontends should only use
Use
Tool prices:
Asymmetry in the current API:
Respect
Multi-tier: only
qwen3.8-max, but the data.pricing shape is shared by all TokenPricingV2 models.
This endpoint does not require authentication. Do not send
Authorization.Request parameters
string
required
Model ID, e.g.
qwen3.8-max. Required; omitting it returns 400 Missing model parameter.Read only data.pricing
The response may include several overlapping price blocks — frontends should only use data.pricing:
token_price may omit fields like explicit_cached_input, so estimates run high. New billing dimensions are added only under pricing.
rates vs effective_rates
effective_rates for UI prices — do not multiply yourself. Use rates only when showing list price alongside.
group is often default: public pricing pages quote default. A user’s real charge uses their group and may be lower than the displayed price.rates / effective_rates use usd_per_million_tokens (USD per 1M tokens).
Tool prices: extras.tools is list price only
Asymmetry in the current API:
unit — do not hardcode “per 1k calls”:
Three-state field semantics
Examples:
- Missing
output_thinking→ single output rate; do not render “thinking is free”. Forqwen3.8-max, thinking cannot be disabled and there is one output price. - Missing
extras.google_web_search→ Vertex-only; Bailian-style search is underextras.tools.web_search. - Tool with
price: 0→ explicit free (e.g. promo); show free.
Multi-tier: only tier_count
Tier rule: pick one tier from total input tokens of the request, then price the whole request at that tier (not progressive). Values in
tiers are list prices — multiply by price_factor.
limits (not prices)
supports_cache_*: capability flags; iffalse, do not present cache rates as available even if present inrates.max_output_tokens: pre-charge style cap whenmax_tokensis omitted — not a price.