OmniGen v1

OMNIGEN_V1

Edits 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.

Image Editingimage-editinginstruction-editingomnigenmitFine-tunable
OmniGen v1: Image Editing model on Kainguru

About OmniGen v1

Capabilities

  • Plain instructions — say what to change: remove the hat, make the sky stormy, turn it into a watercolour
  • Same shape — the result keeps the picture's proportions (long side up to 1024 pixels), and the edit aims to leave what the instruction does not mention as it was
  • Small footprint — one 3.8B model does the understanding and the drawing; no separate text encoder
  • Fine-tuning — teach it your own kind of edit from 4 to 200 before-and-after examples

Good to know

  • Pictures are PNG, JPEG or WebP, at most 50 MB and 16.8 megapixels, the long side at most 8 times the short side; a picture longer than 1024 pixels on a side is edited at 1024 pixels.
  • An edit can change details the instruction does not mention; if it does, try another seed or a more specific instruction.
  • 50 denoising steps by default; guidance runs the model three times per step (instruction, picture, neither), so an edit takes a few times longer than a plain generation.
  • Guidance 1 to 5; 2.5 suits most instructions. Picture guidance is fixed at 1.6.
  • English instructions of at most 512 tokens; other languages are untested.
  • Fine-tuning takes one ZIP (at most 2 GB, no password) with 4 to 200 examples of a picture, the picture after the edit (the same size) and the instruction, and a manifest.jsonl holding one {"input": "...", "target": "...", "instruction": "..."} line each. Training works at 512 x 512 pixels (centre crops) and stops after the steps you ask for or after 9 hours, whichever comes first, keeping what it has learned.

OmniGen v1 inputs and output

NameTypeRequiredDefaultDetails
instructiontextYes—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
imagefileYes—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_scalenumberNo2.5How 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_stepsintegerNo50Denoising steps; more steps take longer.
1–50
seedintegerNo—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).

Run OmniGen v1 with the API

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
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"
Python
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)

Fine-tune OmniGen v1

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.

OmniGen v1 pricing

Price per image: 1.019 credits ($0.01019). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Qwen-Image-Edit-2509: Image Editing model on Kainguru
Image Editing

Qwen-Image-Edit-2509

Edit a picture from a written instruction, changing objects, people, text or style while keeping the rest consistent.

Fine-tunable
LongCat Image Edit: Image Editing model on Kainguru
Image Editing

LongCat Image Edit

Edits a picture from an instruction in English or Chinese with LongCat-Image-Edit (6B, Apache-2.0): local and global…

Fine-tunable
DeOldify: Image Editing model on Kainguru
Image Editing

DeOldify

Colourises old black-and-white photos in two styles: artistic, with bolder colours, or stable, calmer and more…

Fine-tunable
HVI-CIDNet: Image Editing model on Kainguru
Image Editing

HVI-CIDNet

Brightens dark and low-light photos and restores their colour, lifting the shadows without washing out the highlights…

Fine-tunable
InstructIR: Image Editing model on Kainguru
Image Editing

InstructIR

Restores a photo by following a sentence in plain English, such as remove the noise, take the rain out, fix the blur…

Fine-tunable
waifu2x: Image Editing model on Kainguru
Image Editing

waifu2x

Enlarges illustrations, anime and photos 2 or 4 times and can remove JPEG noise as it does. Three styles: art, photo…

Fine-tunable