API reference · Douyin
douyin/web/generate-a-bogus
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
douyin/web/generate-a-bogus01
Input Schema
6 parameters · 3 required · 3 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Required | 请求的API URL,需要使用urlencode(url, safe='*')进行编码 | The requested API URL, needs to be encoded using urlencode(url, safe='*') |
data | string | Required | POST请求API时的载荷数据,需要使用urlencode(data, safe='*')进行编码 | The payload data when requesting the API with POST, needs to be encoded using urlencode(data, safe='*') |
user_agent | string | Required | 请求API时的User-Agent | User-Agent when requesting the API |
index_0 | integer | Optional | 加密明文列表的第一个值,无特殊要求,默认为0 · Default: 0 |
index_1 | integer | Optional | 加密明文列表的第一个值,无特殊要求,默认为1 · Default: 1 |
index_2 | integer | Optional | 加密明文列表的第一个值,无特殊要求,默认为14 · Default: 14 |
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": "douyin/web/generate-a-bogus",
"index_0": 0,
"index_1": 1,
"index_2": 14,
"prompt": "a beautiful sunset over mountains"
}'
