Models / Qwen / Qwen3.5 397B A17B
Qwen

Qwen3.5 397B A17B

BYOKOpen weightsReleased 15 Feb 2026

An open-weights multimodal model from Alibaba with a large context window and tool calling. Most of its benchmark results sit below the registry median.

Read the full description ↓

Spec sheet

Family
Qwen
Released
15 Feb 20269 months ago
Weights
Open
Context window
262k tokens
Largest response
66k tokens
Accepts
text, image, video
Supports
tools, reasoning, structured output
Knowledge cutoff
–
Intelligence index
49#87
Input price
$0.6 / 1M
Output price
$3.6 / 1M
Blended price (3:1)
$1.35 / 1M
Index points per $
36.3#55
Speed
41.5 tokens/sec#147
Popularity
#111 of 194by usage
Providers
4
Weights on
Qwen/Qwen3.5-397B-A17B

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Doublewordgateway/doubleword:Qwen/Qwen3.5-397B-A17B $0.6–$3.6$1.35
OpenRouterBYOKopenrouter:qwen/qwen3.5-397b-a17b $0.39$0.3$2.34$0.88
NovitaBYOK–$0.6–$3.6$1.35
OVHcloudBYOKovhcloud:Qwen3.5-397B-A17B $0.71–$4.25$1.59

The cheapest provider is highlighted. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/doubleword:Qwen/Qwen3.5-397B-A17B', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Qwen3.5 397B A17B a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Qwen3.5 397B A17BvsGLM 4.6
Intelligence index
205590$0.1$1$10GLM 4.6: 49.5 at $1 blendedQwen3.5 397B A17B: 49 at $1.35 blended
GPQA Diamond
5075100$0.1$1$10Qwen3.5 397B A17B: 86.4% at $1.35 blended
OTIS Mock AIME
4070100$0.1$1$10Qwen3.5 397B A17B: 88.9% at $1.35 blended
FrontierMath
1055100$0.1$1$10Qwen3.5 397B A17B: 31.2% at $1.35 blended
Terminal-Bench
04590$0.1$1$10GLM 4.6: 24.5% at $1 blended
SciCode
204570$0.1$1$10GLM 4.6: 38.4% at $1 blended
WebDev Arena
122015251830$0.1$1$10GLM 4.6: 1340.6 at $1 blended
APEX-Agents
04590$0.1$1$10Qwen3.5 397B A17B: 24.9% at $1.35 blended
LMArena text
128014101540$0.1$1$10GLM 4.6: 1440.2 at $1 blendedQwen3.5 397B A17B: 1437.6 at $1.35 blended
Epoch Capabilities Index
120150180$0.1$1$10Qwen3.5 397B A17B: 148 at $1.35 blended

Score against blended price per 1M tokens (log scale). Qwen3.5 397B A17B   GLM 4.6   other models

Intelligence indexOur composite of the benchmarks below, 0-100
Qwen3.5 397B A17B49
GLM 4.649.5
GPQA DiamondGraduate-level science questions, multiple choice
Qwen3.5 397B A17B86.4%
GLM 4.6–
OTIS Mock AIMECompetition mathematics problems with exact answers
Qwen3.5 397B A17B88.9%
GLM 4.6–
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Qwen3.5 397B A17B31.2%
GLM 4.6–
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
Qwen3.5 397B A17B–
GLM 4.624.5%
SciCodeScientific programming problems written by researchers
Qwen3.5 397B A17B–
GLM 4.638.4%
WebDev ArenaRating from human votes on web apps the models built
Qwen3.5 397B A17B–
GLM 4.61340.6
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Qwen3.5 397B A17B24.9%
GLM 4.6–
LMArena textRating from blind human votes between pairs of chat responses
Qwen3.5 397B A17B1437.6
GLM 4.61440.2
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Qwen3.5 397B A17B148
GLM 4.6–
Input pricePer 1M tokens, lower is better
Qwen3.5 397B A17B$0.6
GLM 4.6$0.6
Output pricePer 1M tokens, lower is better
Qwen3.5 397B A17B$3.6
GLM 4.6$2.2
EfficiencyIndex points per blended $
Qwen3.5 397B A17B36
GLM 4.650
SpeedOutput tokens per second
Qwen3.5 397B A17B41.5 t/s
GLM 4.644.5 t/s
Context windowTokens
Qwen3.5 397B A17B262k
GLM 4.6205k
Model stringFor Pydantic AI
Qwen3.5 397B A17Bgateway/doubleword:Qwen/Qwen3.5-397B-A17B
GLM 4.6zai:GLM-4.6

About Qwen3.5 397B A17B

Description written by an LLM from the data on this page

An open-weights multimodal model from Alibaba with a large context window and tool calling. Most of its benchmark results sit below the registry median.

Qwen3.5 397B A17B is Alibaba's open-weights model. It accepts text, image and video input and supports tool calling, structured output and a reasoning mode. The context window is 262k tokens and responses can reach 65k. Input costs $0.6 per million tokens and output $3.6, a blended $1.35 that sits above the registry median of $1.01. It is offered by Doubleword, OpenRouter, Novita and OVHcloud.

Benchmark results are mostly below the registry median. Its intelligence index is 49.0, 90th of 114, against a median of 59.5. It scores 86.4% on GPQA Diamond, 63rd of 94, and 31.2% on FrontierMath, 70th of 80. On APEX-Agents, which tests long professional tasks, it passes 24.9%, 57th of 60. Its LMArena text rating matches the median. The knowledge cutoff is not listed.

Strengths

  • Accepts text, image and video input, with tool calling and structured output
  • 262k context window and responses up to 65k tokens
  • Open weights, served by four providers and built into the Pydantic AI Gateway

Weaknesses

  • Intelligence index of 49.0, 90th of 114, well below the 59.5 median
  • APEX-Agents pass rate of 24.9%, 57th of 60 on long professional tasks
  • Blended price of $1.35 per million tokens, above the $1.01 median

Best for

Multimodal chat and tool-using agents where open weights and a long context matter more than top benchmark scores.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs