> ## 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: 바이두 중국 AI 채팅의 답변과 출처

> 바이두의 중국 AI 채팅 Wenxin(文心)에 질문하고 답변, 읽은 페이지, 검색어를 받습니다.

`BAIDU_WENXIN`은 바이두 Wenxin 채팅(文心, wenxin.baidu.com)에 게스트로 묻습니다. 답하기 전에 웹을 검색하며, 계정이나 로그인은 쓰지 않습니다.

| | |
| - | - |
| taskType | `BAIDU_WENXIN` |
| 읽는 필드 | `prompt` (없으면 `query`) |
| 크레딧 | 1.25 |
| 국가 | **무시됩니다.** 모든 태스크를 중국 본토에서 묻습니다. |

## 요청

Wenxin은 중국 본토에서만 게스트에게 답하므로 모든 태스크는 중국 본토 출구에서 나가며, `country`는 이를 바꾸지 않습니다. 생략해도 됩니다.

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

## 응답

| 필드 | 타입 | 설명 |
| - | - | - |
| `text` | string | 답변. |
| `markdown` | string | Markdown 답변. 플래그 없이 반환됩니다. |
| `searchQueries` | string\[] | Wenxin이 답하기 전에 실행한 검색. |
| `sources` | array | Wenxin이 읽은 페이지: `position`, `url`, `label`, `source`(사이트 이름). |
| `rawResponse` | object | 답변과 함께 나온 카드(장소, 상품, 이미지)를 `components`로. `include.rawResponse`일 때만. |

답변 본문에는 인용 표시가 없습니다. `sources`는 Wenxin이 인용한 것이 아니라 읽은 것입니다. 답변 하나가 보통 30개 안팎의 페이지를 읽습니다.

예시:

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

## include 플래그

| 플래그 | 효과 |
| - | - |
| `rawResponse` | `rawResponse`를 추가합니다. |

`markdown`과 `searchQueries`는 플래그가 필요 없습니다. `ads`, `shopping`은 효과가 없습니다. `analysis`는 `422 VALIDATION_ERROR`로, `citationAnalysis`는 `400 VALIDATION_ERROR`로, `html`은 `422 EVIDENCE_UNSUPPORTED`로 거절됩니다. [Markdown과 원본 응답](https://docs.querying.ai/ko/engines/response-options.md)을 참고하세요.

## 관련 문서

* [Baidu Wenxin 제품 페이지](https://querying.ai/ko/engines/baidu-wenxin)
* [Doubao](https://docs.querying.ai/ko/engines/doubao.md)
* [엔진 개요](https://docs.querying.ai/ko/engines/overview.md)


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