Ground model responses in real-time web data
The training data for large language models has a knowledge cutoff date, preventing them from answering real-time questions. Enabling web search lets a model retrieve real-time data from the internet and accurately answer time-sensitive questions, such as stock prices, weather forecasts, and breaking news.
Get an API key and set it as an environment variable.
The Qwen3.8 series, Qwen3.7-Flash, Qwen3.7-Plus, the Qwen3.6 series, and the Qwen3.5 series (including qwen3.5-plus, qwen3.5-flash, the qwen3.5-omni series, and Qwen open-source models) accept multimodal input (images, video) and are multimodal models.
Search strategy support varies by series: the qwen3.5-omni series supports only the
The following models support web search. Models with multimodal input (the Qwen3.8 series, Qwen3.7-Flash/Plus, the Qwen3.6 series, the Qwen3.5 series, and Qwen open-source models) must be called through the multimodal API. See Web search with multimodal models.
Qwen
Qwen-Max, Qwen-Plus, and Qwen-Flash models released after July 2025 automatically support web search.
Third-party models
Use the
When you set
Use these fields to render inline citations or a references list in your application. The model's response text may reference sources by index (e.g., "according to source [1]").
After a web search runs, the search sources are returned in the response. They appear in the element whose
Billing involves two aspects:
If a call fails, see Error messages.
Enable web search
- OpenAI compatible
- Responses API
- DashScope
- Anthropic-compatible
Set
enable_search: true and optionally pass search_options to choose a strategy.The OpenAI compatible Chat Completions endpoint does not return search sources. Use the Responses API or DashScope if you need citations.
Web search with multimodal models
The Qwen3.8 series, Qwen3.7-Flash, Qwen3.7-Plus, the Qwen3.6 series, and the Qwen3.5 series (including qwen3.5-plus, qwen3.5-flash, the qwen3.5-omni series, and Qwen open-source models) accept multimodal input (images, video) and are multimodal models.
Search strategy support varies by series: the qwen3.5-omni series supports only the agent strategy; the Qwen3.8 series does not support the agent strategy (use the default turbo or max); other models support the turbo, max, and agent strategies. Call these models through the multimodal API (the multimodal-generation endpoint): use MultiModalConversation in both Python and Java, not Generation (the text-generation endpoint), which is for text-only models. For the basics of calling multimodal models, see the Visual reasoning and Image and video understanding topics.
- Calling the multimodal models above with
Generation(thetext-generationendpoint) returns400 url error, please check url. UseMultiModalConversation(themultimodal-generationendpoint) instead. - In the Java SDK,
MultiModalConversationParamprovidesenableSearch(true)to enable web search, but does not provide asearchOptions()method. Inject the search strategy and other options through the genericparameter("search_options", ...)method. In Python,MultiModalConversation.callacceptssearch_optionsdirectly. - Web search on multimodal models requires streaming calls (use
streamCallin Java, or setstream=Truein Python); otherwise the request returns aNon-streaming mode does not support Web Searcherror.
Supported models
The following models support web search. Models with multimodal input (the Qwen3.8 series, Qwen3.7-Flash/Plus, the Qwen3.6 series, the Qwen3.5 series, and Qwen open-source models) must be called through the multimodal API. See Web search with multimodal models.
Qwen
| Model series | Available models |
|---|---|
| Qwen3.8 series | qwen3.8-max, qwen3.8-max-0902, qwen3.8-flash, qwen3.8-2.4t-a95b, qwen3.8-27b (the agent strategy is not supported) |
| Qwen3.7 series | qwen3.7-max, qwen3.7-max-preview, qwen3.7-max-2026-05-17 and later snapshots, qwen3.7-plus, qwen3.7-plus-2026-05-26 and later snapshots, qwen3.7-flash, qwen3.7-flash-2026-07-15 and later snapshots |
| Qwen3.6 series | qwen3.6-max-preview, qwen3.6-plus, qwen3.6-plus-2026-04-02 and later snapshots, qwen3.6-flash, qwen3.6-flash-2026-04-16 and later snapshots, qwen3.6-27b, qwen3.6-35b-a3b |
| Qwen3.5 series | qwen3.5-plus, qwen3.5-plus-2026-02-15 and later snapshots, qwen3.5-flash, qwen3.5-flash-2026-02-23 and later snapshots, qwen3.5-27b, qwen3.5-35b-a3b, qwen3.5-122b-a10b, qwen3.5-397b-a17b |
| Qwen3-Max | qwen3-max, qwen3-max-2025-09-23 and later snapshots |
| Qwen-Max | qwen-max and later snapshots |
| Qwen-Plus | qwen-plus, qwen-plus-latest, qwen-plus-2025-07-14 and later snapshots |
| Qwen-Flash | qwen-flash, qwen-flash-2025-07-28 and later snapshots |
| Qwen-Turbo | qwen-turbo |
| QwQ | qwq-plus (supports only the default search strategy; search_strategy cannot be set) |
| Qwen-Omni | qwen3.5-omni-plus, qwen3.5-omni-plus-2026-03-15, qwen3.5-omni-flash, qwen3.5-omni-flash-2026-03-15 (the search strategy must be set to agent) |
| Qwen-Omni-Realtime | qwen3.5-omni-plus-realtime, qwen3.5-omni-plus-realtime-2026-03-15, qwen3.5-omni-flash-realtime, qwen3.5-omni-flash-realtime-2026-03-15 (the search strategy must be set to agent) |
| Role-playing | qwen-plus-character, qwen-flash-character (the agent strategy is not supported) |
| Provider | Available models |
|---|---|
| DeepSeek | deepseek-v4-pro, deepseek-v4-pro-0813, deepseek-v4-flash, deepseek-v4-flash-0731, deepseek-v3.2 (the deepseek-v4 series also supports the Responses API) |
| GLM | glm-5.2 (supported only by the Responses API) |
| Kimi | kimi-k3 (supported only by the Responses API) |
Search strategies
Use the search_strategy field in search_options to balance cost, quality, and response speed:
-
turbo(default) -- Balances response speed and search quality. Suitable for most scenarios. -
max-- Uses a more comprehensive search strategy and may call multiple search engines for more thorough results, but the response time may be longer. -
agent-- Calls the web search tool and the model multiple times for multi-round information retrieval and integration. Suitable for complex queries and English scenarios. Applies to the Qwen3-Max series (qwen3-max, qwen3-max-2025-09-23 and later snapshots), the Qwen3.5 series (including open-source models and the Omni series), the Qwen3.6 series, and the Qwen3.7 series. Streaming calls are required when calling through the text endpoint. The Qwen3.8 series does not support theagentstrategy. When enabled, onlyenable_source: true(returning search sources) is supported; other web search features are unavailable. Each invocation is billed additionally, see Billing. -
agent_max-- Supports reading full web pages with the web extractor tool on top of theagentstrategy. Only available on qwen3-max and qwen3-max-2026-01-23 in thinking mode. When enabled, onlyenable_source: trueis supported; other web search features are unavailable. Each invocation is billed additionally, see Billing.
turbo strategy for everyday queries. For research or report generation that requires high accuracy and multi-source cross-validation, choose max or agent. agent is recommended for English scenarios.
Read search results
When you set enable_source: true (DashScope only), the response includes a search_info.search_results array. Each entry contains:
| Field | Description |
|---|---|
index | Citation number referenced in the response text |
title | Page title of the source |
url | URL of the source |
Get search sources
After a web search runs, the search sources are returned in the response. They appear in the element whose type is web_search_call within the output array, and its action.sources field is the list of source links. You can extract them from the response in the example above as follows:
The Responses API does not support theenable_source,enable_citation, orcitation_formatparameters, and does not insert[1]citation markers into the response content. To use citation markers, use the DashScope API.
Billing
Billing involves two aspects:
- Model call fees: The web content from the web search is added to the prompt, which increases the number of input tokens for the model. You are charged based on the standard pricing of the model. For more information about pricing, see Pricing.
-
Search call fees (per 1,000 calls):
When using the Responses API, the web search tool is billed at the same rate as the
agentstrategy.The prices listed below are list prices. For current promotions and discounted pricing, visit the Model Marketplace.Strategy ( search_strategy)What it does Fee agent(default)Model searches the web as needed $10.00 agent_maxSearches + reads full pages via web extractor $10.00 for search; web extractor is free for a limited time