identity

open weights
DeepInfra Inc. logo

Qwen/Qwen3.5-397B-A17B:flexDeepInfra Inc.

in /1M$0.36input tokens
out /1M$2.40output tokens
context262Ktokens
trainingnoon your prompts
api
chat
hosting
US
model lab
Alibaba (Qwen)
weights
open
added
February 2026
model id
deepinfra/Qwen/Qwen3.5-397B-A17B:flex

capabilities 5/8

visionreasoningtoolscachingweb searchjson schemacomputer useimage gen

3 providers serve qwen3.5-397b-a17b. This page is one of them. Compare all endpoints

pricing

no markup
input
$0.36
output
$2.40
cache write
-
cache read
$0.18

worked cost

Estimated cost for three request volumes
volumecost
100K in + 10K out$0.0600
1M in + 100K out$0.60
10M in + 1M out$6.00

Requesty charges what the upstream provider charges, with no markup and no per-request fee. Prompt caching and smart routing cut the effective cost further on repeated context. Gateway pricing

provider price, passed throughper 1M tokens

measured

through Sep 12

no measured traffic for this endpoint yet. pricing above is the provider's own

benchmarks

artificial analysis
Benchmark scores, each normalised to 100
evalScore as a share of 100/100
GPQA Diamond86.1
τ²-Bench83.9
Terminal-Bench Hard35.6
Intelligence Index21.4
Humanity's Last Exam19.8
5 evalsmean49.4

Scores from Artificial Analysis and public leaderboards, normalised to 100. Bar colour is the band, not the rank: green 80 and up, blue 55 and up, amber 30 and up. Benchmarks measure narrow skills, so test on your own workload before committing. Released 2026-02-16.

policy

data terms
retention
none
trains on prompts
no
hosted in
US

Terms are the provider's, not Requesty's: routing a request here puts it under them. DeepInfra Privacy Policy

Need every request to stay in one jurisdiction? EU hosting routes only through EU-hosted providers.

quickstart

openai compatible
deepinfra/Qwen/Qwen3.5-397B-A17B:flex

this id pins the deepinfra inc. deployment, with no routing and no failover. the managed id on the canonical page routes across all 3 providers instead

main.py
from openai import OpenAI client = OpenAI(    api_key="YOUR_REQUESTY_API_KEY",    base_url="https://router.requesty.ai/v1",) response = client.chat.completions.create(    model="deepinfra/Qwen/Qwen3.5-397B-A17B:flex",    messages=[        {"role": "user", "content": "Explain quantum computing in one paragraph."},    ],) print(response.choices[0].message.content)

Change the base url to https://router.requesty.ai/v1, use your Requesty key, set the model to the id above. Existing OpenAI SDK code needs no other edit, and the same key reaches every other model in the catalog. Browse all models

notes

reference

Qwen3.5-397B-A17B is Alibaba's most capable Qwen3.5 model, a Mixture-of-Experts architecture with 397B total parameters and 17B activated per token. It features a 262K token context window (extensible to 1M with YaRN), thinking/reasoning mode, tool calling with MCP integration, and support for 201 languages. Sets state-of-the-art results on reasoning, coding, math, and multimodal benchmarks.

questions 6

How much does Qwen/Qwen3.5-397B-A17B:flex cost?
Qwen/Qwen3.5-397B-A17B:flex is priced at $0.36 per million input tokens and $2.40 per million output tokens when accessed via Requesty. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Requesty charges exactly what the upstream provider charges, we don't add markup.
What is the context window of Qwen/Qwen3.5-397B-A17B:flex?
Qwen/Qwen3.5-397B-A17B:flex has a context window of 262K tokens. That is roughly 350 words of input you can fit in a single prompt.
How does Qwen/Qwen3.5-397B-A17B:flex perform on benchmarks?
Qwen/Qwen3.5-397B-A17B:flex scores 86.1% on GPQA Diamond, 83.9% on τ²-Bench, 35.6% on Terminal-Bench Hard. The benchmarks pane shows every published result, each normalised to 100.
What can Qwen/Qwen3.5-397B-A17B:flex do?
Qwen/Qwen3.5-397B-A17B:flex supports vision input, tool calling, extended reasoning, prompt caching, structured outputs (JSON schema). You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use Qwen/Qwen3.5-397B-A17B:flex with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "deepinfra/Qwen/Qwen3.5-397B-A17B:flex". The quickstart pane shows Python, JavaScript and cURL snippets.
Can I run Qwen/Qwen3.5-397B-A17B:flex through Requesty?
Yes. Qwen/Qwen3.5-397B-A17B:flex runs through Requesty's OpenAI-compatible API, served from DeepInfra Inc.. You do not host the model yourself: point base_url at Requesty, set the model to "deepinfra/Qwen/Qwen3.5-397B-A17B:flex", and requests are routed to the upstream provider with automatic failover. The same key gives you 600+ other models too.

more from deepinfra inc. 8

Other DeepInfra Inc. endpoints
endpointctxin /M
glm-5.3-flash1.0M$0.15
glm-5.31.0M$1.20
deepseek-v4-pro-08131.0M$1.30
qwen3.8262K$2.00
deepseek-v4-flash-07311.0M$0.09
deepseek-v4-flash-0731:flex1.0M$0.07
glm-5.2262K$0.75
glm-5.2:flex1M$0.60

call qwen/qwen3.5-397b-a17b:flex through one endpoint

One key for this endpoint and 600+ other models. No markup on provider prices, automatic failover when a provider degrades, and prompt caching built in. Methodology

Qwen/Qwen3.5-397B-A17B:flexdeepinfra inc.in $0.36 /1Mout $2.40 /1Mctx 262Khosted US3 providers serve this model