Qwen3.5 397B A17B

qwen/qwen3.5-397b-a17b
ZDR
VisionToolsJSONReasoning
by Qwen · 2026-02-16

Qwen3.5 397B-A17B — open-weight MoE multimodal (text/image/video), 397B total / 17B active params, 32k context (vision mode).

Max output65K
Inputtext + image + video
Outputtext
p50 TTFT6.66 s
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Context window262Ktokens
INPUT$0.17/ 1M tokens
OUTPUT$1.03/ 1M tokens
p50 TTFT6.66 s7d
p95 TTFT10.00 s7d

Pricing

TierInput / 1M tokensOutput / 1M tokens
Up to 128K$0.172$1.032
Over 128K$0.430$2.58
Tier selected by input token count of each request

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $0.688

1.6M input × $0.17/M + 400K output × $1.03/M

Estimate based on list price

Tiered pricing — this estimate uses base-tier rates.

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0003$0.344
Summarize a long doc30K / 1K$0.0062$6.19
Code review8K / 2K$0.0034$3.44

Token & cost estimator

Input tokens: 20Cost per request: $0.000519

Estimate only — actual token counts depend on the provider's tokenizer.

Compare monthly costs across models in the LLM cost calculator

Code samples

Use an OpenAI-compatible SDK or send an HTTP request. Get API key

API key
export ORCAROUTER_API_KEY=…
Base URL
https://api.orcarouter.ai/v1
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key=os.environ["ORCAROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen/qwen3.5-397b-a17b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "qwen/qwen3.5-397b-a17b",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 10,
    "total_tokens": 19
  }
}
  • choices[0].message.content — the model's answer.
  • finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.
  • usage — the input and output tokens this call is billed for.

An HTTP 200 with finish_reason "stop" means the call succeeded.

Supported parameters

ParameterWhat it does
max_tokensUpper limit on the number of tokens the model generates.
temperatureSampling randomness: lower is more focused, higher is more varied.
toolsFunctions the model may call, described as JSON Schema.
response_formatForce JSON output, optionally matching a JSON Schema.
top_pNucleus sampling: only consider tokens within this cumulative probability.

Full API reference

Use cases and examples

  • Long context — 262K-token context window: whole codebases, long reports or chat histories in one request.
  • Multimodal input — Takes text + image + video in one request.
  • Agents and tool use — Calls the functions you define, for agents and tool workflows.
  • Structured extraction — Returns JSON that follows your schema, for pulling fields out of text.
  • Reasoning — Works through a problem before answering: math, science and multi-step tasks.

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
6.66 s
#140 fastest of 151 models
Output speedHow many tokens per second the model streams once it starts answering.
1082 tok/s
#9 fastest of 149 models
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
≥ 10 s
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
0.63%

Benchmarks

OrcaRouter leaderboard
48.2
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 51% of models compared
#68 of 138
18.4
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 29% of models compared
#108 of 153
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
89.3#51 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
29.0#69 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
78.8#6 of 104
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
77.3#70 of 136
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
44.8#80 of 141
tau_bankingτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
13.4#61 of 80
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
40.9#38 of 99
terminalbench_v2_1Terminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
51.3#57 of 80
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
95.6#12 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

1,438
LMArena TextLMArena Text: an Elo rating from blind votes by people comparing two models' answers side by side.
#86 on LMArena
1,262
LMArena VisionLMArena Vision: an Elo rating from blind human votes on answers to prompts that include images.
#54 on LMArena
Source: lmarena.ai

Compare models

Qwen3.5 397B A17BQwen3.8 MaxQwen3.8 Max (0902)qwen/qwen3-max-preview
Input $/M$0.17$2.00$2.00$0.86
Output $/M$1.03$6.00$6.00$3.44
Context262K1.0M1.0M262K
Quality8/109/109/108/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does Qwen: Qwen3.5 397B A17B cost on OrcaRouter?
Qwen: Qwen3.5 397B A17B is priced at $0.17 per 1M input tokens and $1.03 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is Qwen: Qwen3.5 397B A17B's context window?
Qwen: Qwen3.5 397B A17B supports a context window of 262K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call Qwen: Qwen3.5 397B A17B via the OpenAI SDK?
Set OpenAI base_url to https://api.orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="qwen/qwen3.5-397b-a17b" in the chat.completions.create call.
Does OrcaRouter rate-limit Qwen: Qwen3.5 397B A17B?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.

Embed this badge

Qwen: Qwen3.5 397B A17B•$0.17/M in•6656ms p50•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/qwen/qwen3.5-397b-a17b" target="_blank"> <img src="https://www.orcarouter.ai/embed/qwen/qwen3.5-397b-a17b.svg" alt="Qwen: Qwen3.5 397B A17B on OrcaRouter" /> </a>
Markdown [![Qwen: Qwen3.5 397B A17B](https://www.orcarouter.ai/embed/qwen/qwen3.5-397b-a17b.svg)](https://www.orcarouter.ai/models/qwen/qwen3.5-397b-a17b)

Model card as data

GET /api/public/models/qwen/qwen3.5-397b-a17bOpen
Machine-readable:/llms.txt/llms-full.txt