API reference · Douyin

douyin/search/vision-search

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 IDdouyin/search/vision-search
01

Input Schema

8 parameters · 1 required · 7 optional

ParameterTypeRequiredDescription
image_uristringRequired图片URI,从抖音其他接口返回中获取(如视频详情、搜索结果、用户主页等接口的图片uri字段)/ Image URI obtained from other Douyin API responses (e.g., video details, search results, user profile - look for image uri fields)
cursorintegerOptional偏移游标,用于翻页,从上一次请求返回的响应中获取 / Offset cursor for pagination, obtained from the last response · Default: 0
aweme_idstringOptional原视频ID,仅当search_source=visual_normal_search时使用 / Original video ID, only used when search_source=visual_normal_search · Default: ""
detectionstringOptional检测区域坐标,格式为 x1,y1,x2,y2 / Detection area coordinates in format x1,y1,x2,y2 · Default: "0.1,0.1,0.9,0.9"
search_idstringOptional搜索ID,用于翻页,从上一次请求返回的响应中获取 / Search ID for pagination, obtained from the last response · Default: ""
user_querystringOptional搜索关键词,仅当search_source=visual_normal_search时使用 / Search keyword, only used when search_source=visual_normal_search · Default: ""
search_sourcestringOptional搜索来源:graphic_detail=图片详情页搜索, visual_normal_search=带关键词追加搜索 / Search source: graphic_detail=Image detail page search, visual_normal_search=Search with keyword append · Default: "graphic_detail"
detection_indexintegerOptional检测索引 / Detection index · Default: 0
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": "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"
}'