Skip to main content
POST
/
image-out-painting
/
async
Image Outpainting
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/image-to-image/alibaba/image-out-painting/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_url": "<string>"
}
'
{
  "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 image URL

angle
integer
default:0

Counter-clockwise rotation angle

Required range: 0 <= x <= 359
output_ratio
enum<string>

Output aspect ratio (highest priority)

Available options:
,
1:1,
3:4,
4:3,
9:16,
16:9
x_scale
number
default:1

Horizontal expansion scale

Required range: 1 <= x <= 3
y_scale
number
default:1

Vertical expansion scale

Required range: 1 <= x <= 3
top_offset
integer
default:0

Pixels to add at top

Required range: x >= 0
bottom_offset
integer
default:0

Pixels to add at bottom

Required range: x >= 0
left_offset
integer
default:0

Pixels to add at left

Required range: x >= 0
right_offset
integer
default:0

Pixels to add at right

Required range: x >= 0
best_quality
boolean
default:false

Enable best quality mode (slower)

limit_image_size
boolean
default:true

Limit output file size

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required