Please refer to the polling guide for checking task status. The API takes 3 key parameters: input image, pivot point, and output image.
The AI Image Extender API takes 3 key parameters to work, an input image, a pivot point and an output image. The size of output image should always be larger than the size of input image.
Source image left position in output image, where The indices are ordered from top to bottom, and from left to right. value range: [0 - 4096]
Source image top position in output image, where The indices are ordered from top to bottom, and from left to right. value range: [0 - 4096]
Source image width, input_x + input_width must <= output_width. value range: [1 - 4096]
Source image height, input_y + input_height must <= output_height. value range: [1 - 4096]
Crop source image from x, where The indices are ordered from top to bottom, and from left to right. value range: [0 - 4096]
Crop source image from y, where The indices are ordered from top to bottom, and from left to right. value range: [0 - 4096]
Crop source image with width crop_input_width. value range: [1 - 4096]
Crop source image with height crop_input_height. value range: [1 - 4096]
- Run task with src file url
- Run task with src file ID
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/out-paint \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"src_file_url": "https://example.com/selfie.jpg",
"output_width": 960,
"output_height": 1280,
"input_x": 240,
"input_y": 320,
"input_width": 480,
"input_height": 640,
"crop_input_x": 0,
"crop_input_y": 0,
"crop_input_width": 480,
"crop_input_height": 640
}'{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }