API reference · Douyin

douyin/xingtu-v2/search-anchor

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/xingtu-v2/search-anchor
01

Input Schema

29 parameters · 1 required · 28 optional

ParameterTypeRequiredDescription
keywordstringRequiredSearch keyword: nickname, Douyin ID, Xingtu ID or live content word
tagunionOptionalCreator category IDs, comma-separated
pageintegerOptionalPage number, default 1 · Default: 1
genderunionOptionalCreator gender, 1=male, 2=female
cpe_maxunionOptionalMaximum expected CPE
cpe_minunionOptionalMinimum expected CPE
cpm_maxunionOptionalMaximum expected CPM
cpm_minunionOptionalMinimum expected CPM
fans_maxunionOptionalMaximum followers
fans_minunionOptionalMinimum followers
price_maxunionOptionalMaximum creator price
price_minunionOptionalMinimum creator price
sort_typeintegerOptionalSort type, 1=asc, 2=desc, default 2 · Default: 2
price_typeunionOptionalPrice tier by video length
sort_fieldstringOptionalSort field, default `score` (comprehensive sort) · Default: "score"
extra_filterunionOptionalExtra profile filters (JSON array) for audience/fans profile, region, etc.
persona_tagsunionOptionalPersona IDs. Comma=match any, semicolon=group AND
task_categoryintegerOptionalCooperation target · Default: 6
author_list_idunionOptionalFeatured creator list ID
marketing_targetintegerOptionalMarketing target · Default: 3
expected_play_maxunionOptionalMaximum expected plays
expected_play_minunionOptionalMinimum expected plays
first_industry_idunionOptionalIndustry ID
interact_rate_maxunionOptionalMaximum interaction rate, 0-1 decimal
interact_rate_minunionOptionalMinimum interaction rate, 0-1 decimal
play_over_rate_maxunionOptionalMaximum play-completion rate, 0-1 decimal
play_over_rate_minunionOptionalMinimum play-completion rate, 0-1 decimal
burst_text_rate_maxunionOptionalMaximum viral-post rate, 0-1 decimal
burst_text_rate_minunionOptionalMinimum viral-post rate, 0-1 decimal
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

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/run", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "douyin/xingtu-v2/search-anchor",
    "page": 1,
    "sort_type": 2,
    "sort_field": "score",
    "task_category": 6,
    "marketing_target": 3
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());