Skip to main content
POST
/
wanx-style-repaint-v1
/
async
Wanx Style Repaint V1
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/image-to-image/alibaba/wanx-style-repaint-v1/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_url": "<string>",
  "style_index": 123
}
'
{
  "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
image_url
string<uri>
required

Input portrait image URL

style_index
integer
required

Preset style index (-1 for custom style with style_ref_url)

style_ref_url
string<uri>

Custom style reference image (required when style_index=-1)

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required