
Qwen-Image-Edit-2509
Edit a picture from a written instruction, changing objects, people, text or style while keeping the rest consistent.
Fine-tunableOMNIGEN_V1Edits a picture from a plain-language instruction with OmniGen v1 (3.8B, MIT): add, remove or change objects, people, colours and style, keeping the picture's proportions; it can learn your own kind of edit from 4 to 200 examples.

| Name | Type | Required | Default | Details |
|---|---|---|---|---|
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 |
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 |
guidance_scale | number | No | 2.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–5 |
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 |
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=OMNIGEN_V1" \
-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": 2.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(
"OMNIGEN_V1",
{
"image": "https://example.com/input.png",
"instruction": "example",
"guidance_scale": 2.5,
"num_inference_steps": 50
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune OmniGen v1 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.019 credits ($0.01019). 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 an instruction in English or Chinese with LongCat-Image-Edit (6B, Apache-2.0): local and global…
Fine-tunable
Colourises old black-and-white photos in two styles: artistic, with bolder colours, or stable, calmer and more…
Fine-tunable
Brightens dark and low-light photos and restores their colour, lifting the shadows without washing out the highlights…
Fine-tunable
Restores a photo by following a sentence in plain English, such as remove the noise, take the rain out, fix the blur…
Fine-tunable
Enlarges illustrations, anime and photos 2 or 4 times and can remove JPEG noise as it does. Three styles: art, photo…
Fine-tunable