---
title: Qwen: Qwen3.5 397B A17B API | Text Generation | ModelsLab
description: Multimodal LLM with 397B total / 17B active params in Hybrid MoE architecture, 256K context, native text/image/video support, 8.6-19x faster decoding.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-397b-a17b/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-397b-a17b/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T09:44:37.227850Z
---

Qwen: Qwen3.5 397B A17B
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-397b-a17b/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-397b-a17b.md)

qwen-qwen3.5-397b-a17b alibaba\_cloud Closed Source Model $2.100000 / call

Qwen: Qwen3.5 397B A17B
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Qwen: Qwen3.5 397B A17B

alibaba\_cloud qwen-qwen3.5-397b-a17b

Copy model ID

PricingInput $0.60 / 1M tokens

Output $3.60 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-3.5-turbo-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-3.5 Turbo Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-3.5-turbo-instruct)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-lite-preview)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemini 3.1 Flash Lite Preview

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-lite-preview)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.6-35b-a3b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3.6 35B A3B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.6-35b-a3b)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.6-27b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3.6 27B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.6-27b)

[DD](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-v4-pro)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [DeepSeek: DeepSeek V4 Pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-v4-pro)

[Q3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-3B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen2.5 3B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-3B-Instruct)

[Q2](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-14B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen 2.5 14B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-14B-Instruct)

[II](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/inflection-inflection-3-pi)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Inflection: Inflection 3 Pi

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/inflection-inflection-3-pi)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-120b-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: gpt-oss-120b (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-120b-free)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.0-flash-lite-001)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemini 2.0 Flash Lite

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.0-flash-lite-001)

[G2](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-2-27b-it)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Gemma-2 Instruct (27B)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-2-27b-it)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-next-80b-a3b-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 Next 80B A3B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-next-80b-a3b-instruct)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b-2507)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 235B A22B Instruct 2507

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b-2507)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.1-codex-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5.1-Codex-Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.1-codex-mini)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4.1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4.1)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.3-70b-instruct-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama 3.3 70B Instruct (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.3-70b-instruct-free)

[RF](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/rekaai-reka-flash-3)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Reka Flash 3

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/rekaai-reka-flash-3)

[LG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-guard-3-8b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Llama Guard 3 8B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-guard-3-8b)

About Qwen: Qwen3.5 397B A17B
---

The Qwen3.5 series 397B-A17B native vision-language model is built on a hybrid architecture that integrates a linear attention mechanism with a sparse mixture-of-experts model, achieving higher inference efficiency. It delivers state-of-the-art performance comparable to leading-edge models across a wide range of tasks, including language understanding, logical reasoning, code generation, agent-based tasks, image understanding, video understanding, and graphical user interface (GUI) interactions.

### Technical Specifications

Model IDqwen-qwen3.5-397b-a17bCategoryLLM ModelsTaskText GenerationPrice$2.100000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Qwen: Qwen3.5 397B A17B into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "qwen-qwen3.5-397b-a17b",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-397b-a17b/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Qwen: Qwen3.5 397B A17B API costs $2.100000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Qwen: Qwen3.5 397B A17B](https://modelslab-frontend-v2-927501783998.us-east4.run.app/qwen-qwen35-397b-a17b) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Alibaba Cloud](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

Qwen: Qwen3.5 397B A17B FAQ
---

### What is Qwen: Qwen3.5 397B A17B?

The Qwen3.5 series 397B-A17B native vision-language model is built on a hybrid architecture that integrates a linear attention mechanism with a sparse mixture-of-experts model, achieving higher inference efficiency. It delivers state-of-the-art performance comparable to leading-edge models across a

### How do I use the Qwen: Qwen3.5 397B A17B API?

You can integrate Qwen: Qwen3.5 397B A17B into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "qwen-qwen3.5-397b-a17b" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Qwen: Qwen3.5 397B A17B cost?

Qwen: Qwen3.5 397B A17B costs $2.100000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Qwen: Qwen3.5 397B A17B model ID?

The model ID for Qwen: Qwen3.5 397B A17B is "qwen-qwen3.5-397b-a17b". Use this ID in your API requests to specify this model.

### Does Qwen: Qwen3.5 397B A17B have a free tier?

Yes, ModelsLab offers a free tier that lets you try Qwen: Qwen3.5 397B A17B and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-13*