Qwen-Image-2512

QWEN_IMAGE_2512

Qwen-Image-2512 from Alibaba's Qwen team: a 20B text-to-image model with accurate English and Chinese text rendering, negative prompts and adjustable guidance, and it can learn your own subject or style from 5 to 200 photos.

Image Generationtext-to-imageqwen-imagetext-renderingnegative-promptfine-tuningapache-2.0Fine-tunable
Qwen-Image-2512: Image Generation model on Kainguru

About Qwen-Image-2512

Capabilities

  • Text in images — paragraphs, signs, slides and posters with accurate English and Chinese text
  • Prompt following — complex scenes with many objects, counts and spatial relations
  • Negative prompts — name what the image should avoid, and set how closely it follows your prompt
  • Fine-tuning — teach it your own subject or style from 5 to 200 photos and a trigger word

Good to know

  • A 20B model served from 8-bit weights; an image takes several minutes. 50 denoising steps by default, and while guidance is on each step runs the model twice.
  • Guidance 1 turns it off; around 4 suits most prompts.
  • Sizes from 512 to 1440 pixels a side, in multiples of 16; the model's native size is about 1328 pixels.
  • Prompts in English and Chinese work best; other languages are untested.
  • Only the first 512 tokens of a prompt are read (about 650 Chinese characters); the rest is ignored.
  • Fine-tuning trains at 1024 x 1024 pixels at ranks up to 32; each training image is centre-cropped to a square.
  • At least 2 denoising steps.

Attribution

Qwen-Image-2512 by Alibaba's Qwen team (Qwen/Qwen-Image-2512, Apache-2.0) with the Qwen2.5-VL-7B-Instruct text encoder (Apache-2.0). Its image model is served from the 8-bit (Q8_0) build published by Unsloth (unsloth/Qwen-Image-2512-GGUF, Apache-2.0).

Qwen-Image-2512 inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—What the image should show.
1–2000 characters
negative_prompttextNo—What the image should avoid, e.g. blurry, low quality. It takes effect while guidance is on.
Max 2000 characters
guidance_scalenumberNo4.0How closely the image follows the prompt and avoids the negative prompt. The lowest value turns guidance off and takes half the time; high values can look overdone.
1–10
num_inference_stepsintegerNo50Denoising steps; more steps take longer.
2–50
heightintegerNo1024Image height in pixels, a multiple of 16.
512–1440
widthintegerNo1024Image width in pixels, a multiple of 16.
512–1440
seedintegerNo—The same seed and inputs give the same image. Leave empty for a random seed.
0–2147483647

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

Run Qwen-Image-2512 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=QWEN_IMAGE_2512" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "example",
    "guidance_scale": 4.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(
        "QWEN_IMAGE_2512",
        {
          "prompt": "example",
          "guidance_scale": 4.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 Qwen-Image-2512

You can fine-tune Qwen-Image-2512 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.

Qwen-Image-2512 pricing

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

Licence and source

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
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
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
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
Z-Image: Image Generation model on Kainguru
Image Generation

Z-Image

Z-Image from Alibaba's Tongyi Lab: the full 6B text-to-image model, with negative prompts and adjustable guidance for…

Fine-tunable
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