HVI-CIDNet

HVI_CIDNET

Brightens dark and low-light photos and restores their colour, lifting the shadows without washing out the highlights. Gamma, brightness and saturation can be tuned per request.

Image Editinglow-lightimage-enhancementphoto-enhancementbrighteningmitFine-tunable
HVI-CIDNet: Image Editing model on Kainguru

About HVI-CIDNet

Capabilities

  • Dark photos made usable — shadows are lifted and colour is brought back without blown-out highlights
  • Tunable — bend the input with a gamma curve and scale the result's brightness and saturation
  • Same size out — the result has the photo's own width and height
  • Fine-tunable — train it on your own pairs of dark and well-lit pictures

Good to know

  • Photos are PNG, JPEG or WebP, at most 50 MB and 2.4 megapixels (for example 1536 x 1536 or 2400 x 980), at least 16 pixels a side. The whole photo is enhanced in one pass, so its brightness and colour stay even from edge to edge; resize a larger photo first.
  • The defaults (gamma 1, brightness 1, saturation 1) give the network's own result. A gamma below 1 lightens it further and above 1 darkens it; the best range is 0.5 to 2.5.
  • Fine-tuning takes one ZIP (at most 4 GB, no password) with 4 to 1000 pairs of a dark picture and the same picture well lit, both the same size and at least 256 pixels a side, and a manifest.jsonl holding one {"input": "...", "target": "..."} line per pair, paths relative to the manifest.
  • Training stops after the steps you ask for or after 9 hours, whichever comes first, and keeps what it has learned.

HVI-CIDNet inputs and output

NameTypeRequiredDefaultDetails
imagefileYes—The dark photo: PNG, JPEG or WebP, at most 50 MB and 2.4 megapixels (for example 1536 x 1536), at least 16 pixels a side. It is enhanced whole, so resize a larger photo first.
1–2048 characters · image/png, jpeg, webp
brightnessnumberNo1.0Scales the brightness of the result: higher is lighter.
0.1–2
gammanumberNo1.0Curve applied to the photo before enhancing it: below 1 makes the result lighter, above 1 darker. The best range is 0.5 to 2.5.
0.1–5
saturationnumberNo1.0Scales the colour saturation of the result: higher is more saturated, 0 is grey.
0–2

Output. Returns PNG image: The enhanced photo as a PNG of the same size.

Run HVI-CIDNet 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=HVI_CIDNET" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "brightness": 1.0,
    "gamma": 1.0,
    "saturation": 1.0
  },
  "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(
        "HVI_CIDNET",
        {
          "image": "https://example.com/input.png",
          "brightness": 1.0,
          "gamma": 1.0,
          "saturation": 1.0
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune HVI-CIDNet

You can fine-tune HVI-CIDNet on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 1000 pairs of a dark picture and the same picture well lit, the same size, and manifest.jsonl with one {"input", "target"} line per pair. More: Good to know, in the README.

The steps are in the docs.

HVI-CIDNet pricing

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

Licence and source

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
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
OmniGen v1: Image Editing model on Kainguru
Image Editing

OmniGen v1

Edits a picture from a plain-language instruction with OmniGen v1 (3.8B, MIT): add, remove or change objects, people…

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
Kandinsky 2 2 Img2img: Image Editing model on Kainguru
Image Editing

Kandinsky 2 2 Img2img

Kandinsky 2.2 restyles a photo from a text prompt and keeps its layout; the strength sets how far the result moves…

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