API reference · Xiaohongshu
xiaohongshu/pgy/blogger-notes
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/pgy/blogger-notes01
Input Schema
6 parameters · 1 required · 5 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | Required | 博主用户ID/Blogger user ID |
note_type | integer | Optional | 笔记类型 0=全部 1=图文 2=视频 4=图文+视频 · Options: 0, 1, 2, 4 · Default: 0 0124 |
page_size | integer | Optional | 每页数量(1-100)/Page size (1-100) · Min: 1 · Max: 100 · Default: 20 |
order_type | integer | Optional | 排序 1=阅读最多 2=互动最多 3=发布时间(最新) · Options: 1, 2, 3 · Default: 1 123 |
page_number | integer | Optional | 页码,从 1 开始/Page number, start from 1 · Min: 1 · Max: 1000 · Default: 1 |
advertise_switch | integer | Optional | 流量类型 1=全部(含商业合作) 0=仅自然流量 · Options: 0, 1 · Default: 1 01 |
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/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"
}'
