API reference · Xiaohongshu

xiaohongshu/pgy/blogger-notes

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/pgy/blogger-notes
01

Input Schema

6 parameters · 1 required · 5 optional

ParameterTypeRequiredDescription
user_idstringRequired博主用户ID/Blogger user ID
note_typeintegerOptional笔记类型 0=全部 1=图文 2=视频 4=图文+视频 · Options: 0, 1, 2, 4 · Default: 0
0124
page_sizeintegerOptional每页数量(1-100)/Page size (1-100) · Min: 1 · Max: 100 · Default: 20
order_typeintegerOptional排序 1=阅读最多 2=互动最多 3=发布时间(最新) · Options: 1, 2, 3 · Default: 1
123
page_numberintegerOptional页码,从 1 开始/Page number, start from 1 · Min: 1 · Max: 1000 · Default: 1
advertise_switchintegerOptional流量类型 1=全部(含商业合作) 0=仅自然流量 · Options: 0, 1 · Default: 1
01
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/pgy/blogger-notes",
  "user_id": "5c668b3e0000000012021605",
  "note_type": 0,
  "page_size": 20,
  "order_type": 1,
  "page_number": 1,
  "advertise_switch": 1,
  "prompt": "a beautiful sunset over mountains"
}'