> ## 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.

# Baidu Wenxin API – Antworten und Quellen aus Baidus KI-Chat in China

> Stelle Baidu Wenxin (文心), Baidus KI-Chat in China, eine Frage und erhalte die Antwort, die gelesenen Seiten und die Suchanfragen.

`BAIDU_WENXIN` fragt Baidus Wenxin-Chat (文心, wenxin.baidu.com) als Gast. Er durchsucht vor der Antwort das Web, ohne Konto oder Anmeldung.

| | |
| - | - |
| taskType | `BAIDU_WENXIN` |
| Liest | `prompt` (sonst `query`) |
| Credits | 1,25 |
| Land | **Wird ignoriert.** Jede Aufgabe fragt aus Festlandchina. |

## Anfrage

Wenxin antwortet Gästen nur aus Festlandchina, daher läuft jede Aufgabe über einen Ausgang in Festlandchina, und `country` ändert das nicht. Du kannst es weglassen.

```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": "BAIDU_WENXIN", "payload": { "prompt": "上海有哪些适合周末去的博物馆" } }'
```

## Antwort

| Feld | Typ | Beschreibung |
| - | - | - |
| `text` | string | Die Antwort. |
| `markdown` | string | Die Antwort als Markdown. Wird ohne Flag geliefert. |
| `searchQueries` | string\[] | Die Suchen, die Wenxin vor der Antwort ausgeführt hat. |
| `sources` | array | Die Seiten, die Wenxin gelesen hat: `position`, `url`, `label`, `source` (der Name der Website). |
| `rawResponse` | object | Die Karten zur Antwort (Orte, Produkte, Bilder) als `components`. Nur mit `include.rawResponse`. |

Der Antworttext enthält keine Zitatmarken: `sources` listet, was Wenxin gelesen hat, nicht was es zitiert hat. Eine typische Antwort liest etwa 30 Seiten.

Zum Beispiel:

```json theme={"theme":"css-variables"}
{
  "text": "上海适合周末去的博物馆有上海博物馆东馆 ...",
  "markdown": "上海适合周末去的博物馆有**上海博物馆东馆** ...",
  "searchQueries": ["上海 周末 博物馆 推荐"],
  "sources": [{ "position": 1, "url": "https://www.example.com/shanghai-museums", "label": "上海博物馆推荐", "source": "example.com" }]
}
```

## Include-Flags

| Flag | Wirkung |
| - | - |
| `rawResponse` | Fügt `rawResponse` hinzu. |

`markdown` und `searchQueries` brauchen kein Flag. `ads` und `shopping` haben keine Wirkung. `analysis` wird mit `422 VALIDATION_ERROR` abgelehnt, `citationAnalysis` mit `400 VALIDATION_ERROR` und `html` mit `422 EVIDENCE_UNSUPPORTED`. Siehe [Markdown und Rohantworten](https://docs.querying.ai/de/engines/response-options.md).

## Verwandt

* [Produktseite Baidu Wenxin](https://querying.ai/de/engines/baidu-wenxin)
* [Doubao](https://docs.querying.ai/de/engines/doubao.md)
* [Engine-Übersicht](https://docs.querying.ai/de/engines/overview.md)


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