YepAPI
QwenText Generation/v1/ai/chat

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 typePrice
Input$0.74 / 1M tokens
Output$5.32 / 1M tokens
Context window262K tokens
What it costsPer jobPer 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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Qwen 3.5 397B specs

ProviderQwen
Model IDqwen/qwen3.5-397b-a17b
Endpoint/v1/ai/chat
TypeText Generation
Context window262K tokens
Max output66K tokens
ReasoningNo
OpenAI-compatibleYes — /v1/ai/chat/completions

How to get a Qwen 3.5 397B API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 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. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Largest Qwen model

Qwen 3.5 397B is the largest model in Alibaba's Qwen 3.5 family, offering the most capacity for complex reasoning and generation.

✓
397B parameters

With 397 billion total parameters and 17 billion active per token, it combines frontier-scale capacity with mixture-of-experts efficiency.

✓
Frontier reasoning

Delivers frontier-class reasoning across math, coding, and multi-step problem solving, the top tier of the Qwen lineup.

✓
MoE efficient

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.

ModelProviderPriceContext
Qwen 3.5 397BQwen$0.74 in / $5.32 out per 1M262K
Qwen3.7 FlashQwen$0.04 in / $0.19 out per 1M1M
Qwen 3.5 FlashQwen$0.10 in / $0.38 out per 1M1M
Qwen 3.5 9BQwen$0.25 in / $0.37 out per 1M262K
Qwen3.8 FlashQwen$0.22 in / $0.69 out per 1M1M
Qwen3.8 Omni FlashQwen$0.22 in / $0.69 out per 1M1M
Nemotron 3 SuperNVIDIA$0 in / $0 out per 1M262K
Solar Mini 4Upstage$0.07 in / $0.30 out per 1M524K

Why use Qwen 3.5 397B through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

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.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.

Ready to use Qwen 3.5 397B?

Pay per call, no subscriptions.

Explore more models