# Zhihu AI Search Stream API

> Returns streaming AI search results from Zhihu based on a query prompt. Supports conversational multi-turn sessions and chat modes.

Source: https://www.sandbase.ai/model/zhihu/web/ai-search-stream
API reference: https://www.sandbase.ai/model/zhihu/web/ai-search-stream/docs

## Facts

- Provider: Zhihu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/zhihu/web/ai-search-stream`
- Price: $0.0075 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, zhihu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/zhihu/web/ai-search-stream` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `message_content` | string | yes |  |
| `chat_mode` | string | no |  |
| `session_id` | string | no |  |

## FAQ

### How do I use the Zhihu AI Search Stream API?

Send a POST request to https://api.sandbase.ai/v1/api/zhihu/web/ai-search-stream with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Zhihu AI Search Stream API cost?

$0.0075 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Zhihu AI Search Stream API accept?

Required: message_content (string). Optional: chat_mode (string) and session_id (string). The Parameters table and the Playground on this page list every field.

### What does the Zhihu AI Search Stream API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Zhihu developer account or API key?

No. Zhihu AI Search Stream runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Zhihu API access separately.

## README

### Zhihu AI Search Stream API

Query Zhihu AI search stream by passing `message_content`. Optionally supply `session_id` for multi-turn conversations and specify `chat_mode`.

#### Use cases

- Retrieve AI-synthesized answers from Zhihu content.
- Maintain multi-turn AI search dialogs using session identifiers.
- Stream Zhihu search output in fast or alternative chat modes.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/ai-search-stream" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message_content": "<message_content>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `message_content` | string | Yes | Search Content |
| `chat_mode` | string | No | Chat mode, default FAST |
| `session_id` | string | No | Session ID for multi-turn |

#### Notes

- `message_content` is required to provide the search text.
- `session_id` enables multi-turn conversation tracking.
- `chat_mode` defaults to FAST if omitted.

#### Related APIs

- [Zhihu Answer Details](/model/zhihu/web/answer-detail): Retrieves detailed information for a specific Zhihu answer using its numeric ID, including answer text, timestamps, and share links.
- [Zhihu Article Search](/model/zhihu/web/article-search-v3): Search Zhihu articles and answers by keyword and get titles, excerpts, authors, vote and comment counts, with sorting, content type and time filters plus offse…
- [Zhihu Column Article Detail](/model/zhihu/web/column-article-detail): Returns detailed information and metadata for a specific Zhihu column article, including author profile details, using a provided article ID.
