Find a model

Browse the full catalog →

Qwen4 Max

Open-weights chat model from Alibaba Cloud Model Studio. One API key reaches all 3 providers, with automatic failover.

Input / 1M$1.49
Output / 1M$4.47
Context1M
Providers 3 providers, one key

No card required. Start with 1 million free tokens.

Overview

About Qwen4 Max

Qwen4 Max is an open-weights chat model published by Alibaba Cloud Model Studio, with a 1,000,000-token context window. It scores 128 on AI IQ, ranked #24. Through TrustedRouter it runs on 3 providers, with options in the US and EU, from $1.49 per million input tokens.

Model ID
qwen/qwen4-max
Publisher
Alibaba Cloud Model Studio
Modes
chat
Billing
Credits
Quickstart

Set it up with your agent

Paste this into Claude Code, Cursor or any coding agent.

Use Qwen4 Max through TrustedRouter in this project.

1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
   https://api.trustedrouter.com/v1 and read the key from
   TRUSTEDROUTER_API_KEY.
3. Set the model to qwen/qwen4-max.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.trustedrouter.com/v1",
    api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
    model="qwen/qwen4-max",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen4-max",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
3 providers

Providers

Your key goes to the cheapest healthy provider and fails over on its own. Open a row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.

Qwen4 Max providers and prices per 1M tokens
Provider Input Cached Output Cost per 1M in + out Details
Alibaba Cloud Model Studio logo Alibaba Cloud Model Studio $1.49 $0.0749 $4.47 $5.96

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Alibaba Cloud Model Studio model availability and pricing are linked for users who need to review API data handling and regional deployment scope.

Provider policy source

Location

Operator country: CN

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.490715/1M · Cached input $0.074905/1M · Output $4.4732/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Alibaba Cloud Model Studio provider page

DeepInfra logo DeepInfra $1.49 $0.0749 $4.47 $5.96

Retention

Verification: no verified privacy claim.

Tracked as no-store, not strict ZDR. DeepInfra documents memory-only handling and no training for ordinary inference, but reserves the right to log a small portion of requests for debugging or security. Google- and Anthropic-backed routes also inherit those vendors' terms.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Palo Alto, California, United States.

Company location source (reviewed 2026-09-27).

Inference: US infrastructure plus announced Canadian capacity; model-specific residency unconfirmed.

DeepInfra describes US infrastructure and announced its first international data center in Toronto on July 8, 2026. This is a provider footprint, not an exhaustive or model-specific placement list. DeepSeek V4.1 Flash placement has not been confirmed; do not declare this route US-only.

Region pinning through TR: Not supported by the current TrustedRouter integration.

Reviewed 2026-09-27.

DeepInfra infrastructure statement

DeepInfra Toronto announcement

Full location evidence

Weight format

Unknown

Price and speed

Input $1.490715/1M · Cached input $0.074905/1M · Output $4.4732/1M

TTFT: 2.36 s

Speed: insufficient data

Last sample:

DeepInfra provider page

Novita AI logo Novita AI $1.49 $0.0749 $4.47 $5.96

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Novita's privacy policy says personal information is not used for model training; customer-content processing is governed by customer agreements.

Provider policy source

Location

Operator country: US

Headquarters / registered office: San Francisco, California, United States.

Company location source (reviewed 2026-09-27).

Inference: Shared inference API; processing countries unconfirmed, no fixed-region commitment.

No exhaustive inference-country list verified for the shared model API. Novita publishes worldwide GPU rental regions, but that separate product does not establish shared serverless model placement.

Region pinning through TR: Not supported by the current TrustedRouter integration.

Reviewed 2026-10-28.

GPU rental regions (different product)

Native model catalog

Full location evidence

Weight format

Unknown

Price and speed

Input $1.490715/1M · Cached input $0.074905/1M · Output $4.4732/1M

TTFT: insufficient data

Speed: insufficient data

Novita AI provider page

Append :nitro to the model ID, or send "provider": {"sort": "throughput"}, to route to the fastest provider instead.

FAQ

Questions

What model ID should I use for Qwen4 Max?

Use qwen/qwen4-max as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.

Do you log my prompts or outputs?

No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.

Which providers serve Qwen4 Max?

TrustedRouter currently lists Novita AI, DeepInfra, and Alibaba Cloud Model Studio for Qwen4 Max. Provider availability and routing eligibility can change as catalog and health data update.

How much does Qwen4 Max cost through TrustedRouter?

The current lowest Credits input price is $1.490715/1M and the lowest Credits output price is $4.4732/1M. Prices are per one million tokens and come from the current route catalog.

How do I require zero data retention for Qwen4 Max?

Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.

Compare

Qwen4 Max vs other models

Start building with Qwen4 Max.

No card required. Start with 1 million free tokens.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.