---
title: "Answer"
description: "Ask Baidu Wenxin (文心助手) a question and get its answer, with the pages it read."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/answers/llms.txt)

```http
POST /v1/baidu-wenxin/answer
```

Send the inputs as a JSON body. Baidu Wenxin usually searches the web before it answers: allow up to 150 seconds.

## Request

```bash tab="cURL"
curl -X POST "https://gateway.apinoa.com/v1/baidu-wenxin/answer" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt": "推荐几款适合跑步的缓震跑鞋，预算1000元左右", "country": "CN"}'
```

```js tab="JavaScript"
const res = await fetch("https://gateway.apinoa.com/v1/baidu-wenxin/answer", {
  method: "POST",
  headers: { "x-api-key": process.env.APINOA_API_KEY, "content-type": "application/json" },
  body: JSON.stringify({ prompt: "推荐几款适合跑步的缓震跑鞋，预算1000元左右", country: "CN" }),
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.post(
    "https://gateway.apinoa.com/v1/baidu-wenxin/answer",
    json={"prompt": "推荐几款适合跑步的缓震跑鞋，预算1000元左右", "country": "CN"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
    timeout=150,
)
body = res.json()
```

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `prompt` | string | yes | The question, as a person would type it. |
| `country` | string |  | The market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries. |
| `include` | enum list |  | `page`: also return the answer as a self-contained HTML page, in `page`. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`Answer`](/docs/api-reference/answers/response-schema#answer) in `data`. A real response, shortened: arrays keep their first entries and long text is cut.

```json
{
  "success": true,
  "data": {
    "engine": "baidu-wenxin",
    "outcome": "answered",
    "prompt": "推荐几款适合跑步的缓震跑鞋，预算1000元左右",
    "askedAt": "2026-11-21T06:04:23.073Z",
    "country": "CN",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "1000元左右预算可以选到不少口碑过硬的专业缓震跑鞋，覆盖不同体重、跑步场景的需求，下面给你分场景推荐几款高适配度的型号。"
      },
      {
        "type": "heading",
        "level": 3,
        "markdown": "🛡️ 极致缓震保护款"
      },
      {
        "type": "list",
        "ordered": false,
        "items": [
          {
            "markdown": "**ASICS亚瑟士GEL-NIMBUS 27**：搭载GEL缓震胶+FF BLAST PLUS ECO泡棉，实验室减震表现顶尖，脚感扎实带弹性，能大幅缓解长距离后膝盖和脚踝的不适。日常售价约1200元，大促或选前代26代可控制在千元内，适合追求关节防护的长距离跑者。",
            "depth": 0
          }
        ]
      }
    ],
    "text": "1000元左右预算可以选到不少口碑过硬的专业缓震跑鞋，覆盖不同体重、跑步场景的需求，下面给你分场景推荐几款高适配度的型号。\n\n🛡️ 极致缓震保护款\n\nASICS亚瑟士GEL-NIMBUS 27：搭载GEL缓震胶+FF BLAST PLUS ECO泡棉，实验室减震表现顶尖，脚感扎实…",
    "markdown": "1000元左右预算可以选到不少口碑过硬的专业缓震跑鞋，覆盖不同体重、跑步场景的需求，下面给你分场景推荐几款高适配度的型号。\n\n### 🛡️ 极致缓震保护款\n\n- **ASICS亚瑟士GEL-NIMBUS 27**：搭载GEL缓震胶+FF BLAST PLUS ECO泡棉，实验室减…",
    "citations": [],
    "sources": [
      {
        "url": "https://www.zhihu.com/question/1982050152819733558/answer/2042598629920198950",
        "title": "预算1000 元，跑半马应该选哪些缓震系跑鞋？ - 知乎",
        "site": "知乎",
        "favicon": "https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=493147230,3096476255&fm=195&app=88&f=JPEG?w=200&h=200",
        "snippet": "预算 1000 元，跑半马应该选哪些缓震系跑鞋？预算 1000 元，跑半马应该选哪些缓震系跑鞋？近期计划挑战人生第一次半程马拉松，目前每周有规律地进行 10-15 公里的跑步训练。目前穿着入门款跑鞋，在跑长距离后，膝盖和脚踝常感不适，意识到可能需…小熊说关节和运动​医疗卫生行业 …",
        "cited": false
      },
      {
        "url": "https://zhuanlan.zhihu.com/p/2079290734616764806",
        "title": "千元内跑鞋哪个品牌好？推荐前十名性价比高，回弹耐磨不输高端款 - 知乎",
        "site": "知乎",
        "favicon": "https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=493147230,3096476255&fm=195&app=88&f=JPEG?w=200&h=200",
        "snippet": "千元内跑鞋哪个品牌好？推荐前十名性价比高，回弹耐磨不输高端款2026年国内运动鞋消费市场持续升温，运动鞋（也被叫作慢跑鞋、户外鞋）覆盖了绝大多数人的运动穿搭需求。其核心价值在于适配自身运动习惯、保护足部关节，下面先解答跑步爱好者日常都会纠结的选鞋问题：优先看跑鞋结构设计，还是前后…",
        "cited": false
      },
      {
        "url": "http://zhuanlan.zhihu.com/p/2085662106544759471",
        "title": "2026日常路跑训练缓震跑鞋怎么选？5款高人气缓震跑鞋测评，按预算、脚型与穿搭需求对号入座 - 知乎",
        "site": "知乎",
        "favicon": "https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=493147230,3096476255&fm=195&app=88&f=JPEG?w=200&h=200",
        "snippet": "“日常路跑训练”听起来简单，选鞋却最容易踩坑：有人一味追专业，买了硬核竞速鞋，结果日常穿着厚重老气、走路板脚；有人图舒服穿休闲运动鞋出门，缓震和防滑都不够，跑几公里膝盖就开始抗议。真正的痛点是——多数人需要的是一双能“跑步训练 + 日常通勤”两栖的缓震跑鞋，既要跑起来轻弹不震脚，…",
        "cited": false
      }
    ],
    "mentions": [
      {
        "name": "ASICS亚瑟士GEL-NIMBUS 27",
        "kind": "other",
        "category": "search",
        "at": 76
      }
    ],
    "cards": [
      {
        "type": "image",
        "title": "谁懂!asics gel",
        "url": "http://m.dewu.com/note/trend/details?id=324119560&exposureSource=baidu",
        "image": "http://image-cdn.poizon.com/app/2025/community/2547474330_byte872520byte_64e791dba6028291356a93c52769553f_iOS_w810h1080.jpg",
        "thumbnail": "https://img2.baidu.com/it/u=4031330814,448462681&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667",
        "width": 500,
        "height": 667,
        "site": "m.dewu.com",
        "sponsored": false,
        "ext": {
          "caption": "谁懂!asics gel - nimbus 27 这清新配色踩屎感绝了",
          "aiEdited": true
        }
      }
    ],
    "suggestions": [
      {
        "text": "不同体重对应的跑鞋适配清单"
      },
      {
        "text": "哪款缓震跑鞋性价比最高"
      },
      {
        "text": "给我推荐几款适合跑步的缓震跑鞋"
      }
    ],
    "ext": {
      "searches": [
        "1000元左右适合跑步的缓震跑鞋推荐",
        "2026年1000元左右缓震跑鞋新品"
      ],
      "followUp": "需要我帮你整理不同体重对应的跑鞋适配清单吗？帮你快速锁定最贴合脚感的那一款。",
      "model": "SEARCH_LIGHTNING",
      "usage": {
        "inputTokens": 26520,
        "outputTokens": 796
      }
    }
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | A parameter is missing, unknown or out of range, or the engine does not take it. The message names it. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 502 | `UPSTREAM_ERROR` | The engine answered with something unusable. Retry with backoff. |
| 502 | `UPSTREAM_TIMEOUT` | The engine did not answer in time. Retry. |
| 503 | `SERVICE_UNAVAILABLE` | A temporary failure. Retry with backoff. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1.5 credits per call. [Plans and credits](https://apinoa.com/en/pricing).

## Notes

- Baidu Wenxin answers in the language of the prompt, mostly Chinese. `language` is not taken: write the prompt in the language you want.
- Each question is asked on its own: there is no `conversation` input, and no `photos` input. A suggestion's `text` can be sent as the next `prompt`.
- Baidu Wenxin decides by itself whether to search the web. `sources` lists every page it read; its answer carries no citation marks, so `citations` is empty and no source is `cited`. `ext.searches` holds the searches it ran.
- Names it links to a search are in `mentions`. What it shows beside the text is in `cards`, in the order the page shows them: images, videos, products (prices in CNY, with the store), hotels as places, flights and weather as `other` cards with `ext.kind`.
- Baidu Wenxin is asked from `CN`, `US`, `KR` or `JP`. The answer follows the prompt, not the country.
- An answer usually takes 10 to 60 seconds.
