API reference · Xiaohongshu
xiaohongshu/app-v2/topic-feed
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
xiaohongshu/app-v2/topic-feed01
Input Schema
8 parameters · 1 required · 7 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Required | 话题页面ID/Topic page ID |
sort | string | Optional | 排序方式/Sort: trend(最热), time(最新) · Default: "trend" |
source | string | Optional | 来源/Source · Default: "normal" |
session_id | string | Optional | 会话ID,翻页时保持一致/Session ID, keep consistent for pagination · Default: "" |
cursor_score | string | Optional | 分页游标分数,翻页时传入/Pagination cursor score for next page · Default: "" |
last_note_ct | string | Optional | 上一页最后一条笔记创建时间,翻页时传入/Last note create time from previous page · Default: "" |
last_note_id | string | Optional | 上一页最后一条笔记ID,翻页时传入/Last note ID from previous page · Default: "" |
first_load_time | string | Optional | 首次加载时间戳,翻页时保持一致/First load timestamp, keep consistent for pagination · Default: "" |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
03
Code Examples
Ready-to-run snippets
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "xiaohongshu/app-v2/topic-feed",
"sort": "trend",
"source": "normal",
"session_id": "",
"cursor_score": "",
"last_note_ct": "",
"last_note_id": "",
"first_load_time": "",
"prompt": "a beautiful sunset over mountains"
}'
