
Qwen-Image-Edit-2509
Edit a picture from a written instruction, changing objects, people, text or style while keeping the rest consistent.
Fine-tunableLONGCAT_IMAGE_EDITEdits a picture from an instruction in English or Chinese with LongCat-Image-Edit (6B, Apache-2.0): local and global changes, text and style edits, aiming to keep the rest of the picture; it can learn your own kind of edit from 4 to 200 examples.

| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | The picture to edit: PNG, JPEG or WebP, at most 50 MB and 16.8 megapixels, at least 16 pixels a side, its long side at most 8 times its short side. 1–2048 characters · image/png, jpeg, webp |
instruction | text | Yes | — | What to change, in plain words, at most 512 tokens, e.g. "replace the red car with a blue bicycle" or "make it a snowy evening". 1–1000 characters |
guidance_scale | number | No | 4.5 | How closely the result follows the instruction; high values can look overdone. How guidance affects the time per step is in Good to know. 1–10 |
num_inference_steps | integer | No | 50 | Denoising steps; more steps take longer. 1–50 |
seed | integer | No | — | The same seed and inputs give the same result. Leave empty for a random seed. 0–2147483647 |
negative_prompt | text | No | — | What the result should avoid, e.g. blurry, text, extra limbs, at most 512 tokens. It takes effect while guidance is above 1. Max 1000 characters |
Output. Returns PNG image: The edited picture (PNG).
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=LONGCAT_IMAGE_EDIT" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image": "https://example.com/input.png",
"instruction": "example",
"guidance_scale": 4.5,
"num_inference_steps": 50
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"LONGCAT_IMAGE_EDIT",
{
"image": "https://example.com/input.png",
"instruction": "example",
"guidance_scale": 4.5,
"num_inference_steps": 50
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune LongCat Image Edit on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 2 GB, no password) with 4 to 200 examples of a picture, the same picture after the edit (same size) and the instruction, and manifest.jsonl with one {"input", "target", "instruction"} line each.
The steps are in the docs.
Price per image: 1.529 credits ($0.01529). The price is shown again before every run; all prices are on the pricing page.

Edit a picture from a written instruction, changing objects, people, text or style while keeping the rest consistent.
Fine-tunable
Edits a picture from a plain-language instruction with OmniGen v1 (3.8B, MIT): add, remove or change objects, people…
Fine-tunable
Kandinsky 2.2 restyles a photo from a text prompt and keeps its layout; the strength sets how far the result moves…

Kandinsky 2.2 inpainting: paints the masked part of a photo from a text prompt and leaves the rest untouched.

Colourises black-and-white and faded photos: it keeps each photo's own light and shade and adds natural colours.
Fine-tunable
Removes objects, text, watermarks and blemishes from a photo: paint what to remove white on a black mask, and it fills…
Fine-tunable