Chat Completions
/v1/chat/completionsOpenAI-compatible messages interface for direct conversations and multimodal input.
- Standard chat and streaming reasoning content
- PDF understanding
- Image and video input
The Qwen family covers general and multimodal workloads. This page highlights qwen3.8-max, with up to 983,616 input tokens, 131,072 output tokens, required reasoning, caching, and built-in tools through the Responses API.
Guides, comparisons and pricing analysis from the 光谱汇深 blog.
OpenAI-compatible messages interface for direct conversations and multimodal input.
What's on your mind?
Ask 光谱汇深
Choose the endpoint for your workload, then review token, cache, and built-in tool charges in one place.
Choose the right endpoint
Route each workload by capability: conversations and PDF input use Chat Completions; built-in tools use Responses.
/v1/chat/completionsOpenAI-compatible messages interface for direct conversations and multimodal input.
/v1/responsesUnified input and output interface required for Qwen3.8-Max built-in tools.
Chat Completions defaults to streaming when stream is omitted. Set stream: false explicitly when your client expects one complete JSON response.
PDF understanding is supported only by Chat Completions. The Responses API silently ignores PDF input without returning an error.
web_extractor must be declared together with web_search. Unsupported tool names may be silently accepted but will never run.
Declaring a tool does not incur a charge. Billing uses only actual calls reported in usage.x_tools, independently of token charges.
Token prices are per 1 million tokens. Built-in tools are billed by their own usage unit.
~¥1.3714
Input tokens that do not hit a cache.
List price: 17.1429 Credits−20%
~¥0.1714
Matching prompt prefixes are cached automatically; hit tokens are rounded in blocks and may not cover the entire input.
List price: 2.1429 Credits−20%
~¥0.1143
A reusable ephemeral cache you mark yourself, with a lower hit price than implicit caching.
List price: 1.4286 Credits−20%
~¥1.7143
Charged when an explicit cache is created; cached content must contain at least 1,024 tokens and is retained for 5 minutes.
List price: 21.4286 Credits−20%
~¥4.1143
Reasoning cannot be disabled and its tokens are billed as output. A missing output_thinking rate means the single output rate applies, not that reasoning is free.
List price: 51.4286 Credits−20%
Public prices use the default group. Your final charge follows your account group and may be lower than the displayed price.
web_search~¥0.4571
web_extractor0 Credits · ~¥0
code_interpreter0 Credits · ~¥0
web_search_image~¥2.7429
image_search~¥5.4857
| Built-in tools | Your price | List price |
|---|---|---|
Web searchweb_search | 4.5714Creditsper 1,000 calls ~¥0.4571 | 5.7143 Credits |
Web extractionweb_extractor | Free 0 Credits · ~¥0 | — |
Code Interpretercode_interpreter | Free 0 Credits · ~¥0 | — |
Web image search by textweb_search_image | 27.4286Creditsper 1,000 calls ~¥2.7429 | 34.2857 Credits |
Reverse image searchimage_search | 54.8571Creditsper 1,000 calls ~¥5.4857 | 68.5714 Credits |
Build with qwen3.8-max for long-context reasoning. Use Chat Completions for conversations and PDFs, or the Responses API for web, extraction, code, and image-search tools.
50K+
Active Users
99.9%
Uptime
2x
Faster
70%
Cost Savings
Endpoint behavior, context limits, reasoning, caching, and tools you should know before integrating
Choose the endpoint that matches each long-context, document, or tool-assisted workflow
Choose the model and endpoint deliberately before sending your first request
Create an 光谱汇深 account and add balance for API usage.
Generate an API key for authenticated Qwen requests.
Set the model to qwen3.8-max. Use Chat Completions for chat or PDF, Responses for built-in tools, and set stream explicitly for Chat requests.
What developers say about our Qwen API
“Qwen-Max is our go-to for Chinese content generation. The language quality is unmatched.”
Wei Zhang
Content Lead
“Qwen-Coder handles our code review pipeline beautifully. Great balance of speed and accuracy.”
Alex Chen
Engineering Manager
“The Qwen-VL model reads Chinese documents and forms with impressive accuracy. Saved us months of development.”
Sarah Li
Product Manager
“Qwen-Turbo is incredibly cost-effective for our high-volume chat application.”
Mike Wang
Backend Developer
“Qwen3 is a huge leap forward. The thinking variants handle complex queries our previous models couldn't.”
Emily Zhou
AI Researcher
“Best Chinese-English translation API we've found. Qwen-MT understands context and idioms remarkably well.”
David Liu
Localization Manager
Integration details for qwen3.8-max and the Qwen model family
It is a Qwen family page, with qwen3.8-max as the featured model. Other Qwen models may have different limits, endpoints, and capabilities.
Use Chat Completions for regular conversations and PDF inputs. Use the Responses API for built-in tools such as web search, web extraction, code interpretation, and image search.
The interface supports OpenAI SDK integration, but you should not assume every default is identical. For Chat Completions, pass stream explicitly because its default behavior differs.
Reasoning is required for qwen3.8-max and cannot be disabled. Reasoning tokens count toward output-token usage and billing.
qwen3.8-max accepts up to 983,616 input tokens and supports up to 131,072 output tokens.
The pricing section loads current model pricing dynamically, including applicable input, output, cache, and tool charges. The model supports implicit and explicit caching.
Yes. The Qwen API is billed per million tokens. The pricing table on this page lists every specification and shows the Gold member price, 20% off. Platinum and Diamond members save even more, up to 28%. You only pay for successful requests.
Sign up for 光谱汇深, open the API Keys page in your dashboard and create a key. The same key calls the Alibaba Qwen API and every other model on the platform, with pay-as-you-go billing and no subscription.
Call the OpenAI-compatible Chat Completions endpoint with your 光谱汇深 API key and the model set to qwen3.8-max. For built-in tools such as web search, use the Responses API instead. Full parameters and code examples are in the 光谱汇深 docs (docs.callhub.cn).
You can submit a support ticket from the dashboard or email us at support@apimart.ai. Our team will get back to you as soon as possible.
Explore more models in the same category.
Kimi K3
Kimi-K3 is a next-generation large language model launched by Moonshot AI. It features ultra-long context, multimodal understanding, and strong coding capabilities, making it suitable for complex reasoning, software development, knowledge analysis, and agent automation tasks.
Mimo V2.5 Pro
Xiaomi has launched a high-performance large language model that enhances reasoning, coding, and multitasking capabilities, making it suitable for complex analysis, programming, and agent-based scenarios.
Qwen 3.7 Max
Launched by Alibaba Cloud Tongyi Qianwen, this flagship large language model features enhanced capabilities in reasoning, coding, and handling complex tasks, making it suitable for enterprise-level applications, chatbots, and high-difficulty task scenarios.
Kimi K2.6
A general-purpose large language model launched by Moonshot AI, featuring strong reasoning, coding, and agent capabilities, making it suitable for handling complex tasks.