API reference · Douyin
douyin/search/vision-search
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/search/vision-search01
Input Schema
8 parameters · 1 required · 7 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image_uri | string | Required | 图片URI,从抖音其他接口返回中获取(如视频详情、搜索结果、用户主页等接口的图片uri字段)/ Image URI obtained from other Douyin API responses (e.g., video details, search results, user profile - look for image uri fields) |
cursor | integer | Optional | 偏移游标,用于翻页,从上一次请求返回的响应中获取 / Offset cursor for pagination, obtained from the last response · Default: 0 |
aweme_id | string | Optional | 原视频ID,仅当search_source=visual_normal_search时使用 / Original video ID, only used when search_source=visual_normal_search · Default: "" |
detection | string | Optional | 检测区域坐标,格式为 x1,y1,x2,y2 / Detection area coordinates in format x1,y1,x2,y2 · Default: "0.1,0.1,0.9,0.9" |
search_id | string | Optional | 搜索ID,用于翻页,从上一次请求返回的响应中获取 / Search ID for pagination, obtained from the last response · Default: "" |
user_query | string | Optional | 搜索关键词,仅当search_source=visual_normal_search时使用 / Search keyword, only used when search_source=visual_normal_search · Default: "" |
search_source | string | Optional | 搜索来源:graphic_detail=图片详情页搜索, visual_normal_search=带关键词追加搜索 / Search source: graphic_detail=Image detail page search, visual_normal_search=Search with keyword append · Default: "graphic_detail" |
detection_index | integer | Optional | 检测索引 / Detection index · Default: 0 |
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/search/vision-search",
"cursor": 0,
"aweme_id": "",
"detection": "0.1,0.1,0.9,0.9",
"search_id": "",
"user_query": "",
"search_source": "graphic_detail",
"detection_index": 0,
"prompt": "a beautiful sunset over mountains"
}'
