API reference · Xiaohongshu

xiaohongshu/pgy/blogger-notes-rate

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-rate
01

Input Schema

4 parameters · 1 required · 3 optional

ParameterTypeRequiredDescription
user_idstringRequired博主用户ID/Blogger user ID
date_typeintegerOptional统计时间范围(约 1=近7天 2=近30天 3=近90天) · Min: 1 · Max: 12 · Default: 1
note_typeintegerOptional笔记类型 1=图文 2=视频 3=图文+视频(默认全部) · Options: 1, 2, 3 · Default: 3
123
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-rate",
  "user_id": "5c668b3e0000000012021605",
  "date_type": 1,
  "note_type": 3,
  "advertise_switch": 1,
  "prompt": "a beautiful sunset over mountains"
}'