AI City Remix$11,500 prize pool. Pick a city, let AI tell its story, Oct 22 – 28.Join now
API reference · 1688

1688/search/by-image

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/api/1688/search/by-image
Model ID1688/search/by-image
01

Input Schema

12 parameters · 1 required · 11 optional

ParameterTypeRequiredDescription
imgUrlstringRequiredImage URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
moqintegerOptionalMinimum order quantity filter.
pageintegerOptionalPage number, starting at 1. · Default: 1
sortstringOptionalProduct sort order. · Options: default, sales, price_up, price_down · Default: "default"
defaultsalesprice_upprice_down
pageSizeintegerOptionalNumber of items requested per page. The returned count may differ. · Default: 20
priceEndstringOptionalMaximum price filter in CNY.
isFactorybooleanOptionalFilter by factory status.
newArrivalbooleanOptionalFilter for new products.
priceStartstringOptionalMinimum price filter in CNY.
freeShippingbooleanOptionalFilter for free shipping.
verifiedSupplierbooleanOptionalFilter for verified sellers.
supportDropshippingbooleanOptionalFilter for support for dropshipping.
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/api/1688/search/by-image", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "page": 1,
    "sort": "default",
    "imgUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01Z5b6Ax1Bs2nVv6E3n_!!2216226597326-0-cib.jpg",
    "pageSize": 20
  }),
});

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