Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Note: This is a synchronous model that returns recognition results immediately. Returns 4 types of recognition results: object_seg (main subject), head_seg (face with hair), face_seg (face without hair), cloth_seg (clothing). Result images are valid for 30 days only. This model does NOT support: prompt, negative_prompt, n, aspect_ratio, resolution, image_fidelity, image_reference, human_fidelity, or callback_url parameters.

image
string
required

Image to recognize (URL or Base64 encoded, do not include 'data:' prefix for Base64). Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB. Minimum dimensions: 300x300px. Aspect ratio must be between 1:2.5 and 2.5:1

Minimum string length: 1
Example:

"https://example.com/portrait.jpg"

Response

Task submitted successfully (returns immediately due to synchronous processing)

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.