Skip to main content

Editing

Instruction-based image editing via natural-language prompts. Change scenes, swap objects, and adjust composition without masks.

POST /edit/image/v1, edit input_image according to prompt.

curl -X POST https://api.imagepipeline.io/edit/image/v1 \
-H "X-API-Key: $IMAGEPIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input_image": "https://.../photo.webp",
"prompt": "change the jacket to navy blue and add soft rim lighting",
"faster_inference": true
}'

input_image accepts a single URL string, or an array of URLs (for example a model image plus a product image to composite).

FieldTypeDefaultNotes
promptstring,Required. The natural-language edit instruction.
input_imagestring | string[],Image(s) to edit. A single URL, or an array of URLs.
modestring,Processing mode. Use anime to convert a photo to an illustration.
faster_inferencebooleantrueUse the Lightning LoRA distillation for speed.
refine_strengthnumber,Z-Image Turbo refinement pass after editing (0.0 to 1.0).
num_inference_stepsintegermodelDiffusion steps (1 to 100). Higher = better, slower.
guidance_scalenumbermodelClassifier-free guidance (0.0 to 20.0). 0 disables it.
cfg_norm_strengthnumber,CFG normalization strength (0.0 to 1.0).
tone_correctionnumber,Post-edit tonal correction strength (0.0 to 1.0).
product_saturationnumber,Saturation multiplier applied to the product image (image 2).
has_textboolean,Whether the image contains visible text, logos, or labels.
has_productboolean,Whether the image contains a physical product as the subject.
seedinteger-1-1 randomizes; set a value for reproducibility.
palettestring[],Brand colours as hex codes, e.g. ["#FF5733"].
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Receive a webhook on completion.
server_idstring,Enterprise: pin to a dedicated pod.

Response — poll GET …/status/{job_id} until status is completed:

{
"job_id": "job_7c1a9e44",
"status": "completed",
"result_url": "https://cdn.imagepipeline.io/o/7c1a9e44.webp",
"processing_time_seconds": 30.2,
"balance_remaining_usd": 187.52
}

Returns a job_id; poll GET /edit/image/v1/status/{job_id} or use a webhook.