Qwen 3.5 397B API
Access Qwen 3.5 397B through one API key. Alibaba's largest MoE model.
Alibaba's largest MoE model. 397B total parameters with 17B active, offering frontier-class reasoning.
Takes 30 seconds.
Qwen 3.5 397B API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Token type | Price |
|---|---|
| Input | $0.74 / 1M tokens |
| Output | $5.32 / 1M tokens |
| Context window | 262K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0034 | $3.40 |
| RAG answer8K input + 800 output tokens | $0.01 | $10.18 |
| Agent step with tools30K input + 2K output tokens | $0.033 | $32.84 |
| Long document summary100K input + 2K output tokens | $0.085 | $84.64 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Qwen 3.5 397B respond in real time.
Maximum tokens in the response.
Real-time tokens
Qwen 3.5 397B specs
| Provider | Qwen |
|---|---|
| Model ID | qwen/qwen3.5-397b-a17b |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 262K tokens |
| Max output | 66K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Qwen 3.5 397B API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Qwen 3.5 397B
Send a request to /v1/ai/chat with the x-api-key header and model "qwen/qwen3.5-397b-a17b".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Qwen 3.5 397B is the largest model in Alibaba's Qwen 3.5 family, offering the most capacity for complex reasoning and generation.
With 397 billion total parameters and 17 billion active per token, it combines frontier-scale capacity with mixture-of-experts efficiency.
Delivers frontier-class reasoning across math, coding, and multi-step problem solving, the top tier of the Qwen lineup.
Its mixture-of-experts design activates only 17B of 397B parameters per token, keeping inference far cheaper than a dense model of equivalent capacity.
Quick start
Copy this snippet and start making calls with Qwen 3.5 397B.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "qwen/qwen3.5-397b-a17b",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Qwen 3.5 397B vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Qwen 3.5 397B | Qwen | $0.74 in / $5.32 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
| Qwen 3.5 Flash | Qwen | $0.10 in / $0.38 out per 1M | 1M |
| Qwen 3.5 9B | Qwen | $0.25 in / $0.37 out per 1M | 262K |
| Qwen3.8 Flash | Qwen | $0.22 in / $0.69 out per 1M | 1M |
| Qwen3.8 Omni Flash | Qwen | $0.22 in / $0.69 out per 1M | 1M |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Solar Mini 4 | Upstage | $0.07 in / $0.30 out per 1M | 524K |
Why use Qwen 3.5 397B through YepAPI?
Qwen 3.5 397B API: Alibaba's largest MoE model for frontier reasoning
Qwen 3.5 397B is Alibaba's largest mixture-of-experts model, with 397 billion total parameters and 17 billion active per token. It delivers frontier-class reasoning across math, code, and complex problem solving while keeping inference efficient.
Through YepAPI you call Qwen 3.5 397B with one API key on the chat endpoint at $0.74 per 1M input and $5.32 per 1M output tokens, with a 262K context window and 65K output.
What is Qwen 3.5 397B?
Qwen 3.5 397B is the flagship of Alibaba's Qwen 3.5 family — its largest model. It uses a mixture-of-experts architecture with 397 billion total parameters but only about 17 billion active per token, so it reaches frontier-scale capability while running far more efficiently than a dense model of similar size. It excels at demanding reasoning: advanced mathematics, complex code generation, and multi-step problem solving. With a 262K-token context window and up to 65,536 tokens of output, it handles large inputs and long, detailed responses, making it the choice when you need the strongest reasoning the Qwen lineup offers.
Build with Qwen 3.5 397B via YepAPI
Send chat completion requests to Qwen 3.5 397B over a single YepAPI key on the /v1/ai/chat endpoint — no Alibaba Cloud setup needed. Pass your messages, optionally stream the output, and let the MoE routing run server-side. Because one key reaches the whole catalog, you can route your hardest reasoning and coding tasks to Qwen 3.5 397B and fall back to cheaper models for routine work, all without re-authenticating. It drops cleanly into agentic systems, coding assistants, and analysis pipelines.
Qwen 3.5 397B API pricing — $0.74/1M input, $5.32/1M output
Qwen 3.5 397B costs $0.74 per 1M input tokens and $5.32 per 1M output tokens on YepAPI. Thanks to MoE sparsity, you get frontier-class reasoning at a price well below dense models of comparable capability, so reserving it for your toughest prompts is economical. You pay only for tokens used, with no minimums, and one balance covers it alongside every other model on the platform.
Qwen 3.5 397B for complex reasoning and code
Qwen 3.5 397B is the model to deploy on hard problems: intricate algorithm design, advanced math, large refactors, and multi-step agentic reasoning where smaller models fall short. Its 262K context lets it hold substantial code or documents while it reasons, and its 65K output supports long, detailed solutions. When correctness on difficult tasks matters most, its frontier-class capability earns the higher per-token cost.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Alibaba's largest MoE model. 397B total parameters with 17B active, offering frontier-class reasoning.
Qwen 3.5 397B costs $0.74 per 1M input tokens and $5.32 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0034.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Qwen 3.5 397B and every other model — no separate Qwen account or waitlist.
Use "qwen/qwen3.5-397b-a17b" as the model on /v1/ai/chat. The short alias "qwen-3.5-397b" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "qwen/qwen3.5-397b-a17b". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Qwen 3.5 397B supports a 262K token context window with up to 66K output tokens per request.
Explore more models
Qwen3.8 27B
QwenAccess Qwen3.8 27B through one API key. Qwen Open-Weight Vision-Language 27B.
Qwen 3.6 Plus
QwenAccess Qwen 3.6 Plus through one API key. Powerful reasoning with 1M context at a great price.
Qwen3.8 Omni Flash
QwenAccess Qwen3.8 Omni Flash through one API key. Qwen Omni-Modal Audio & Video Agent.
MiniMax M2.7
MiniMaxAccess MiniMax M2.7 through one API key. Bilingual flagship model with massive output.
DeepSeek V4 Pro
DeepSeekAccess DeepSeek V4 Pro through one API key. Frontier reasoning at a fraction of flagship pricing.
MiMo-V2.6-Pro-UltraSpeed
XiaomiAccess MiMo-V2.6-Pro-UltraSpeed through one API key. Xiaomi Flagship at 10× Speed.
More Text Generation models
- GPT-5.3 Codex API · OpenAI
- Command A+ API · Cohere
- Gemini 3.1 Flash Lite API · Google
- GLM 5 Turbo API · Z.ai
- GPT-4o API · OpenAI
- GPT-6 Luna Pro API · OpenAI
- GPT-6 Astra API · OpenAI
- Gemma 4 31B API · Google
- Seed 2.0 Lite API · ByteDance
- Gemini 3.6 Flash API · Google
- Gemini 2.5 Flash Lite API · Google
- Claude Fable 5.1 API · Anthropic