Qwen-Deep-Research API reference
Request and response parameters for calling the Qwen-Deep-Research model through the DashScope API.
Related documentation: Deep research (Qwen-Deep-Research)
ImportantQwen-Deep-Research is available only in the China (Beijing) region. You must use an API key from the China (Beijing) region.
NoteThe model currently supports only the Python DashScope SDK. The Java SDK and the OpenAI-compatible interface are not supported.
DashScope
Before you begin, get an API key and set it as an environment variable. To use the DashScope SDK, you must also install the SDK.
Request bodymodel Supported value: messages Conversation history, in chronological order. output_format Format and detail level of the research report. Valid values:
| |
Response objectstatus_code The HTTP status code for the request.
request_id The unique identifier for the request. code The error code. This field is empty on success.
message The error message. This field is empty on success. output The result of the call. Fields text This parameter is always finish_reason The reason the model stopped generating content. Possible values:
choices A list of output choices from the model. Fields finish_reason Possible values:
message The message object from the model. Fields Properties phase Current phase. Possible values:
role Must be content The output content from the model. extra Web search results and references gathered by the model. deep_research Retrieved web search and reference information is included only in the research Details of the research process. Fields researchGoal The research goal. query Search query used during research. id The search round number, in the range of [1, 15]. learningMap Content summarized from tool calls, associated with the tool usage. references Citations for the generated answer. This field appears only in the Answer phase. Fields icon The favicon URL for the referenced content. index_number The index of the referenced content. description A short description of the referenced content. title The title of the referenced web page. url The URL of the referenced content. webSites Content referenced during research. Included only in the Web Research phase. Fields icon The favicon URL for the referenced content. index_number The index of the referenced content. description A short description of the referenced content. title The web page title of the referenced content. url The URL of the referenced content. status The status of a specific phase during streaming:
fininshed Whether the stream is complete. Possible values:
fininshed_reason The reason the streaming output ended. Possible values:
usage The number of tokens used in this request. Fields input_tokens The number of input tokens. output_tokens The number of output tokens. | |