Skip to main content
POST
AI Hair Color

Query Task

This is an asynchronous task API. The submission request returns only task_id.Use task_id to call Querying Async Task Results and retrieve the final result. Async task results remain available for 24 hours. Query every 5 seconds.
result_urls are temporary and remain valid for 24 hours. Download the files to your own storage before the URLs expire if you need long-term storage.

Submit Task

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required
  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
name
string

Hair Color Name (English only).

Maximum string length: 500
desc
string

Hair Color Description (English only).

Maximum string length: 1000

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
task_id
string
required

Task ID for querying Querying Async Task Results.