Skip to main content
POST
/
aitryon
/
async
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/image-to-image/alibaba/aitryon/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "person_image_url": "https://example.com/model.jpg"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "qwen-mt-image",
    "duration": 150
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
person_image_url
string<uri>
required

Model person image URL (public accessible HTTP/HTTPS link)

Example:

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

top_garment_url
string<uri>

Top garment/dress image URL (provide at least one of top_garment_url or bottom_garment_url)

Example:

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

bottom_garment_url
string<uri>

Bottom garment image URL (provide at least one of top_garment_url or bottom_garment_url)

Example:

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

resolution
enum<integer>
default:-1

Output image resolution

Available options:
-1,
1024,
1280
Example:

-1

restore_face
boolean
default:true

Restore model's original face

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required