HiDream-O1-Image

HIDREAM_O1_IMAGE

HiDream-O1-Image from HiDream.ai: an 8B text-to-image model that paints directly in pixels, with no separate decoder, at about 4 megapixels, with adjustable guidance. It can learn your own subject or style from 5 to 200 photos.

Image Generationtext-to-imagehidreampixel-spacehigh-resolutionfine-tuningmitFine-tunable
HiDream-O1-Image: Image Generation model on Kainguru

About HiDream-O1-Image

Capabilities

  • Pixel-space generation — one transformer draws the image itself: no latent decoder and no separate text encoder
  • Native high resolution — draws at about 4 megapixels, then resizes to the size you ask for
  • Adjustable guidance — set how closely the image follows your prompt
  • Fine-tuning — teach it your own subject or style from 5 to 200 photos and a trigger word

Good to know

  • The model draws at one of its native sizes of about 4 megapixels, the one nearest the shape you ask for (such as 2048 x 2048 or 2560 x 1440), then the image is cropped to that shape and resized to the size you ask for, so a request takes about as long at any size.
  • 50 denoising steps by default, and while guidance is on each step runs the model twice.
  • Guidance 1 turns it off; around 5 suits most prompts.
  • Sizes from 512 to 1440 pixels a side, in multiples of 32.
  • There is no negative prompt; describe what the picture should contain. The prompt is used as written.
  • Prompts in English and Chinese work best; other languages are untested.
  • Fine-tuning trains at 2048 x 2048 pixels, each training image centre-cropped to a square and resized to that size, so photos smaller than that are enlarged.

Attribution

HiDream-O1-Image by HiDream.ai (HiDream-ai/HiDream-O1-Image, MIT), built on the Qwen3-VL architecture and tokenizer of Alibaba's Qwen team (Apache-2.0).

HiDream-O1-Image inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—What the image should show.
1–2000 characters
seedintegerNo—The same seed and inputs give the same image. Leave empty for a random seed.
0–2147483647
guidance_scalenumberNo5.0How closely the image follows the prompt. The lowest value turns guidance off, which is faster; high values can look overdone.
1–10
num_inference_stepsintegerNo50Denoising steps; more steps take longer.
1–50
heightintegerNo1024Image height in pixels, a multiple of 32.
512–1440
widthintegerNo1024Image width in pixels, a multiple of 32.
512–1440

Output. Returns PNG image: The generated image (PNG).

Run HiDream-O1-Image 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=HIDREAM_O1_IMAGE" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "example",
    "guidance_scale": 5.0,
    "height": 1024,
    "num_inference_steps": 50,
    "width": 1024
  },
  "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(
        "HIDREAM_O1_IMAGE",
        {
          "prompt": "example",
          "guidance_scale": 5.0,
          "height": 1024,
          "num_inference_steps": 50,
          "width": 1024
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune HiDream-O1-Image

You can fine-tune HiDream-O1-Image on your own data and run the tuned model through the same API. Dataset: 5 to 200 images of one subject or style (PNG, JPEG or WebP, up to 20 MB each and 2 GB in all).

The steps are in the docs.

HiDream-O1-Image 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

GLM-Image: Image Generation model on Kainguru
Image Generation

GLM-Image

GLM-Image from Z.ai: a 16B model that plans the picture with a language model, then draws it with a diffusion decoder…

Fine-tunable
PRX Pixel: Image Generation model on Kainguru
Image Generation

PRX Pixel

PRX Pixel from Photoroom: a 7B text-to-image model that paints directly in pixels (no latent decoder), with negative…

Fine-tunable
ERNIE-Image: Image Generation model on Kainguru
Image Generation

ERNIE-Image

ERNIE-Image from Baidu: an 8B text-to-image model strong on posters, dense text and multi-panel layouts in English and…

Fine-tunable
Kandinsky 2.2: Image Generation model on Kainguru
Image Generation

Kandinsky 2.2

Kandinsky 2.2: a fast text-to-image model for illustrations and photos, with negative prompts and adjustable guidance…

Fine-tunable
LongCat-Image: Image Generation model on Kainguru
Image Generation

LongCat-Image

LongCat-Image from Meituan: a 6B text-to-image model for photoreal scenes with legible Chinese and English text, with…

Fine-tunable
Qwen-Image-2512: Image Generation model on Kainguru
Image Generation

Qwen-Image-2512

Qwen-Image-2512 from Alibaba's Qwen team: a 20B text-to-image model with accurate English and Chinese text rendering…

Fine-tunable