Qwen Models & API

Compare the Qwen models available on TokenHub, including Qwen3.8 Max, Qwen3.6, Qwen 2.5, and Qwen Coder. Review pricing, context, capabilities, and model IDs, then call Qwen, Tongyi Qianwen, and Qianwen through one OpenAI-compatible API workflow.

Qwen Models & API Pricing

Compare current Qwen API pricing, input and output token costs, context windows, endpoints, and model IDs. The catalog may include Qwen3.8 Max, Qwen3.6, Qwen 2.5, and Qwen Coder; availability follows the live TokenHub model list.

Compare input, output, and cache-read prices for the available Qwen models. Open a model page to confirm the current billing unit and model ID.

Model NameInput/ M tokensOutput/ M tokensCache Read/ M tokens

Alibaba

Qwen3.5 35B-A3Bqwen3.5-35b-a3b
$0.0571$0.4571-

Alibaba

Qwen3.5 Flashqwen3.5-flash
$0.0286$0.2857-

Alibaba

Qwen3.5 Plusqwen3.5-plus
$0.1143$0.6857-

Alibaba

Qwen3.6 35B-A3Bqwen3.6-35b-a3b
$0.2571$1.5429-

Alibaba

Qwen3.6 Flashqwen3.6-flash
$0.1714$1.0286-

Alibaba

Qwen3.6 Max Previewqwen3.6-max-preview
$1.2857$7.7143-

Alibaba

Qwen3.6 Plusqwen3.6-plus
$0.2857$1.7143-

Alibaba

Qwen3.7 Maxqwen3.7-max
$1.7143$5.1429$0.3429

Alibaba

Qwen3.7 Plusqwen3.7-plus
$0.2857$1.1429$0.0571

Alibaba

Qwen3.8 Maxqwen3.8-max
$2$6$0.25

Compare context windows, maximum output, reasoning, tool calling, endpoints, and release dates across Qwen3.8 Max, Qwen3.6, Qwen 2.5, and Qwen Coder.

Model NameModalitiesContextMax outputReasoningTool callingEndpointReleased

Alibaba

Qwen3.5 35B-A3Bqwen3.5-35b-a3b
262.1K
65.5K
OpenAI / Anthropic / gemini
Feb 23, 2026

Alibaba

Qwen3.5 Flashqwen3.5-flash
262.1K
65.5K
OpenAI / Anthropic / gemini
Feb 23, 2026

Alibaba

Qwen3.5 Plusqwen3.5-plus
1M
65.5K
OpenAI / Anthropic / gemini
Feb 16, 2026

Alibaba

Qwen3.6 35B-A3Bqwen3.6-35b-a3b
262.1K
65.5K
gemini / OpenAI / Anthropic
Apr 17, 2026

Alibaba

Qwen3.6 Flashqwen3.6-flash
1M
65.5K
OpenAI / Anthropic / gemini
Apr 27, 2026

Alibaba

Qwen3.6 Max Previewqwen3.6-max-preview
262.1K
65.5K
gemini / OpenAI / Anthropic
Apr 20, 2026

Alibaba

Qwen3.6 Plusqwen3.6-plus
1M
65.5K
OpenAI / Anthropic / gemini
Apr 2, 2026

Alibaba

Qwen3.7 Maxqwen3.7-max
1M
65.5K
OpenAI / Anthropic / gemini
May 21, 2026

Alibaba

Qwen3.7 Plusqwen3.7-plus
1M
64K
OpenAI / Anthropic / gemini
Jun 2, 2026

Alibaba

Qwen3.8 Maxqwen3.8-max
1M
128K
OpenAI / Responses / Anthropic
Aug 3, 2026
Catalog data

Pricing, model availability, context windows, and endpoint support reflect the current TokenHub catalog. Confirm the model detail page before a production release because specifications and availability can change.

Last updated: 2026-08-25

Get Started With the Qwen API

Create a TokenHub API key, copy a published Qwen model ID, and call it with OpenAI Chat Completions, Responses, or Claude Messages. Existing OpenAI SDK projects can usually switch by changing the API key, Base URL, and model ID.

  1. 01Create a TokenHub API key
  2. 02Choose an available Qwen model
  3. 03Choose an API protocol
  4. 04Copy the published Qwen model ID
  5. 05Send your first request

Choose an API protocol

import OpenAI from "openai"

const client = new OpenAI({
  apiKey: process.env.TOKENHUB_API_KEY,
  baseURL: "https://us-api.tokenhub.com/v1",
})

const result = await client.chat.completions.create({
  "model": "qwen3.5-flash",
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
})
console.log(result.choices[0]?.message?.content)
import json
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("TOKENHUB_API_KEY"),
    base_url="https://us-api.tokenhub.com/v1",
)

request = json.loads("{\"model\":\"qwen3.5-flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}")
result = client.chat.completions.create(**request)
print(result.choices[0].message.content)
curl 'https://us-api.tokenhub.com/v1/chat/completions' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.5-flash",
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
}'
const response = await fetch("https://us-api.tokenhub.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "qwen3.5-flash",
    "messages": [
      {
        "role": "user",
        "content": "Explain why low latency matters for an AI product in one sentence."
      }
    ]
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/chat/completions",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"qwen3.5-flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}"),
)
response.raise_for_status()
print(response.json())
import OpenAI from "openai"

const client = new OpenAI({
  apiKey: process.env.TOKENHUB_API_KEY,
  baseURL: "https://us-api.tokenhub.com/v1",
})

const result = await client.responses.create({
  "model": "qwen3.5-flash",
  "input": "Explain why low latency matters for an AI product in one sentence."
})
console.log(result.output_text)
import json
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("TOKENHUB_API_KEY"),
    base_url="https://us-api.tokenhub.com/v1",
)

request = json.loads("{\"model\":\"qwen3.5-flash\",\"input\":\"Explain why low latency matters for an AI product in one sentence.\"}")
result = client.responses.create(**request)
print(result.output_text)
curl 'https://us-api.tokenhub.com/v1/responses' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.5-flash",
  "input": "Explain why low latency matters for an AI product in one sentence."
}'
const response = await fetch("https://us-api.tokenhub.com/v1/responses", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "qwen3.5-flash",
    "input": "Explain why low latency matters for an AI product in one sentence."
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/responses",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"qwen3.5-flash\",\"input\":\"Explain why low latency matters for an AI product in one sentence.\"}"),
)
response.raise_for_status()
print(response.json())
curl 'https://us-api.tokenhub.com/v1/messages' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.5-flash",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
}'
const response = await fetch("https://us-api.tokenhub.com/v1/messages", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "qwen3.5-flash",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "Explain why low latency matters for an AI product in one sentence."
      }
    ]
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/messages",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"qwen3.5-flash\",\"max_tokens\":1024,\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}"),
)
response.raise_for_status()
print(response.json())

Which Qwen Model Should You Choose?

Use this Qwen model selection guide for coding, Qwen CLI workflows, general chat, long context, and multimodal generation. Compare price, context, reasoning, tool calling, and endpoint support before shipping.

API workloadStart withWhen it fitsVerify before launch
High-volume Qwen API callsQwen3.5 FlashFast iteration, chat, extraction, summarization, and batch workloads using Qwen.Qwen API pricing, throughput, and output-token cost
Qwen reasoning and codingQwen3.5 35B-A3BMulti-step analysis, code generation, debugging, and agent tasks where answer quality matters.Reasoning support, tool calling, latency, and total request cost
General Qwen applicationsQwen3.5 35B-A3BEveryday assistants, content generation, information extraction, and product features.Task accuracy, endpoint support, and production price
Long-context Qwen workloadsQwen3.5 PlusDocuments, codebases, research, and conversations where input length is the constraint.Context window, input-token price, maximum output, and streaming
Quality-first Qwen workloadsQwen3.6 Max PreviewProduction outputs where capability matters more than the lowest unit cost.Task quality, latency, and the price difference versus a faster model

Qwen API FAQ

What are Qwen, Tongyi Qianwen, and Qianwen?

Qwen, Tongyi Qianwen, and Qianwen are names and search terms associated with this model family. TokenHub uses the published provider and model IDs shown in the live catalog.

Which Qwen models are available on TokenHub?

The live list above shows current availability. Relevant model searches include Qwen3.8 Max, Qwen3.6, Qwen 2.5, and Qwen Coder, but only models displayed in the TokenHub catalog can be called through this page.

How do I get a Qwen API key?

Qwen API and Qwen API key searches lead to the same TokenHub workflow: create an API key, select a published Qwen model ID, and use the TokenHub Base URL in your application.

How is Qwen API pricing calculated?

Pricing depends on the selected model and billing type. Compare input, output, cache, or per-request prices in the table and confirm the model detail page before production use.

Can I use the OpenAI SDK with Qwen?

Yes. Use the TokenHub Base URL, API key, and published Qwen model ID with the OpenAI Python or Node.js SDK. Endpoint support is shown for each model.

Which Qwen model should I use?

Choose based on the workload: coding, Qwen CLI workflows, general chat, long context, and multimodal generation. Compare actual price, context, reasoning, tool calling, and output limits in the live catalog.

Does this page include every Qwen modality?

Qwen Image and Qwen Image Edit models are listed separately when available in the TokenHub catalog.

Start Building With Qwen

Choose a Qwen model, copy its model ID, create a TokenHub API key, and send your first request through one compatible API workflow.