> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 千问 Qwen API：千问中国版网页聊天的回答与搜索结果

> 向阿里巴巴的中国网页聊天千问提问，获取回答、它读取的搜索结果和搜索词。

`QWEN` 向 qianwen.com 上的千问网页聊天（中国服务）提问，联网搜索开启，不使用账号，也不需要登录。

| | |
| - | - |
| taskType | `QWEN` |
| 读取 | `prompt`（回退到 `query`） |
| 积分 | 1.25 |
| 国家 | 可选，默认 `US`。同时决定出口国家和回答的语言区域；`CN` 从中国大陆提问。 |

## 请求

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskType": "QWEN", "payload": { "prompt": "Which electric car brands are most reliable? Answer in English.", "country": "US" } }'
```

## 响应

| 字段 | 类型 | 说明 |
| - | - | - |
| `text` | string | 回答。 |
| `markdown` | string | Markdown 格式的回答。无需任何标志即返回。 |
| `model` | string | 千问回答所用的模型（如已知）。 |
| `searchQueries` | string\[] | 千问执行的搜索。 |
| `sources` | array | 千问读取的搜索结果：`position`、`url`、`label`、`description`、`siteName`、`publishedAt`。 |
| `images`、`videos` | array | 随回答显示的媒体（如有）。 |
| `rawResponse` | array | 流事件。仅在设置 `include.rawResponse` 时返回。 |

`publishedAt` 是千问显示的日期，不是 ISO 时间戳。回答正文不带引用标记：`sources` 列出的是千问读取的内容，而不是它引用的内容。

例如：

```json theme={"theme":"css-variables"}
{
  "text": "Brands often rated most reliable include ...",
  "markdown": "Brands often rated most reliable include ...",
  "model": "qwen3.6-plus-2026-05-07",
  "searchQueries": ["most reliable electric car brands"],
  "sources": [{ "position": 1, "url": "https://www.example.com/ev-reliability", "label": "EV reliability rankings", "siteName": "Example Auto" }]
}
```

## Include 标志

| 标志 | 效果 |
| - | - |
| `rawResponse` | 添加 `rawResponse`。 |

`markdown` 无需标志。`searchQueries`、`ads` 和 `shopping` 不起作用。`analysis` 会以 `422 VALIDATION_ERROR` 拒绝，`citationAnalysis` 以 `400 VALIDATION_ERROR` 拒绝，`html` 以 `422 EVIDENCE_UNSUPPORTED` 拒绝。见 [Markdown 与原始响应](/zh/engines/response-options.md)。

## 回答语言

回答语言由千问自行决定。用英语、法语或西班牙语写的提示词也可能得到中文回答。如需指定回答语言，请像上面的示例那样在提示词中写明。

## 相关内容

* [千问 Qwen 产品页](https://querying.ai/zh/engines/qwen)
* [豆包 Doubao](/zh/engines/doubao.md)
* [引擎概览](/zh/engines/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.