API reference · Xiaohongshu

xiaohongshu/app-v2/topic-feed

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDxiaohongshu/app-v2/topic-feed
01

Input Schema

8 parameters · 1 required · 7 optional

ParameterTypeRequiredDescription
page_idstringRequired话题页面ID/Topic page ID
sortstringOptional排序方式/Sort: trend(最热), time(最新) · Default: "trend"
sourcestringOptional来源/Source · Default: "normal"
session_idstringOptional会话ID,翻页时保持一致/Session ID, keep consistent for pagination · Default: ""
cursor_scorestringOptional分页游标分数,翻页时传入/Pagination cursor score for next page · Default: ""
last_note_ctstringOptional上一页最后一条笔记创建时间,翻页时传入/Last note create time from previous page · Default: ""
last_note_idstringOptional上一页最后一条笔记ID,翻页时传入/Last note ID from previous page · Default: ""
first_load_timestringOptional首次加载时间戳,翻页时保持一致/First load timestamp, keep consistent for pagination · Default: ""
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-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"
}'