- KI-Bilderweiterung: Task ausführen.
Informationen zur Statusabfrage finden Sie im Polling-Leitfaden. Die API nimmt 3 Kernparameter: Eingangsbild, Drehpunkt und Ausgabebild.
Die KI-Bilderweiterungs-API arbeitet mit 3 Kernparametern: Eingangsbild, Drehpunkt und Ausgabebild. Das Ausgabebild muss immer größer sein als das Eingangsbild.
Breite des Ausgabebilds. Wertebereich: [1 - 4096]
Höhe des Ausgabebilds. Wertebereich: [1 - 4096]
Position des Quellbilds links im Ausgabebild; die Indizes sind von oben nach unten und von links nach rechts geordnet. Wertebereich: [0 - 4096]
Position des Quellbilds oben im Ausgabebild; die Indizes sind von oben nach unten und von links nach rechts geordnet. Wertebereich: [0 - 4096]
Breite des Quellbilds; input_x + input_width muss <= output_width sein. Wertebereich: [1 - 4096]
Höhe des Quellbilds; input_y + input_height muss <= output_height sein. Wertebereich: [1 - 4096]
Quellbild von x aus zuschneiden; die Indizes sind von oben nach unten und von links nach rechts geordnet. Wertebereich: [0 - 4096]
Quellbild von y aus zuschneiden; die Indizes sind von oben nach unten und von links nach rechts geordnet. Wertebereich: [0 - 4096]
Quellbild mit Breite crop_input_width zuschneiden. Wertebereich: [1 - 4096]
Quellbild mit Höhe crop_input_height zuschneiden. Wertebereich: [1 - 4096]
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/task/out-paint
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" } }