Modeltext-to-image
MiniMaxAI

MiniMaxAI/MiniMax-H3-Image

MiniMax-H3-Image Online API Use MiniMax-H3-Image directly via API. - Global: platform.minimax.io(https://platform.minimax.io/docs/guides/image-generation) | CN: platform.minimax.cn(https://platform.minimax.cn/docs/guides/image-generation) API docs:...

2.5kthích
972.3ktải xuống
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: base_model:finetune:MiniMaxAI/MiniMax-H3

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: base_model:finetune:MiniMaxAI/MiniMax-H3

#1 Repository Của Ngày

2
TINIX TRENDING·Chủ đề: base_model:MiniMaxAI/MiniMax-H3

#2 Repository Của Tuần

MiniMax H3 image, Open Weights

Hailuo AI API MiniMax Website GitHub Hugging Face
ModelScope MiniMax AI WeChat Discord LICENSE

MiniMax-H3-Image

Online API

Use MiniMax-H3-Image directly via API.

API docs:

Online App

Use MiniMax-H3-Image directly via App.

Introduction

MiniMax-H3-Image is a state-of-the-art open-source model for image generation and editing from the MiniMax H3 family. It combines intelligent understanding of creative intent with the ability to build visual worlds: with precise instruction following, it develops a creative concept into concrete characters, scenes and atmosphere. Generation and editing are unified in one checkpoint, which generates images from text (text-to-image) and edits one or more reference images (image editing), giving creators and developers a flexible and controllable way to create images.

It generates images of about 16 megapixels at every aspect ratio, from 4096x4096 (1:1) to 6272x2688 (21:9), directly and without an upscaler (see Sizes). The checkpoint is distilled to 6 sampling steps (6 NFEs) with no classifier-free guidance. Its diffusion transformer (DiT) has the H3 architecture without the audio layers, and it uses the MiniMax-H3 text encoder unchanged.

Fifteen MiniMax-H3-Image text-to-image results in landscape and portrait formats: a 3D fantasy battle, a blue-green landscape painting, a tree frog, an indigo-dyed rabbit, a 3D white-haired girl, a portrait among flowers, a sci-fi city, dumplings, a highland cow, a mirror portrait, a 3D otter and sheep, a pixel art cat, a jewel beetle, giant cherries and a fisheye selfie

Highlights

MiniMax-H3-Image brings together three core strengths: speed, image quality, and instruction following.

  1. 16-megapixel images at a practical computational cost. Compared with the 1–4 MP outputs common today, 16 MP (4096 × 4096) images offer far more detail but typically require substantially more computation. MiniMax-H3-Image keeps that computational cost manageable, making 16 MP generation practical for everyday creation.
  2. Rich detail. Remarkable realism. MiniMax-H3-Image goes beyond the familiar “AI look” to produce images with intricate detail and lifelike realism, opening up more possibilities for creative and professional use. It brings generated imagery closer to the richness and nuance of the real visual world.
  3. Stronger instruction following. Greater creative control. Great image generation goes beyond beautiful pictures—it helps creators bring their ideas to life. MiniMax-H3-Image delivers the strongest instruction following among open-source models and supports up to 16 reference images, giving creators more control over the final result.

Model Zoo

ModelRolePrecisionSizeHugging Face
MiniMax-H3-ImageText-to-image and image editingBF16 (DiT)68.65 GBMiniMaxAI/MiniMax-H3-Image
MiniMax-H3-Image-PE (optional)Prompt expander for text-to-imageNVFP417.9 GBMiniMaxAI/MiniMax-H3-Image-PE

Model Architecture

MiniMax-H3-Image follows the H3-Base design with the audio branch removed. The text prompt and the reference images are encoded by the H3 text encoder; the reference images are also encoded by the image VAE. All tokens form one packed sequence for a single-stream transformer, which predicts the latent of the target image. The VAE decodes that latent into the image.

  • Text encoder: the full Qwen3-VL text encoder of MiniMax-H3, unchanged. The DiT reads the hidden states of its 50th layer.
  • Image VAE: a CNN encoder and a 2D ViT decoder (24 layers), with 16x spatial downsampling and 24 latent channels. The DiT patchifies the latent with a 2x2 patch, so each transformer token covers 32x32 pixels.
  • Diffusion transformer: 33.1B parameters, a dense single-stream transformer with 50 layers (hidden size 5376, 56 attention heads, FFN size 14336) and 3D multimodal RoPE, the same as the H3-Omni-Transformer. The weights are BF16; the embedding, timestep and output layers are FP32.

Quick Start

Download

ComponentContentSize
transformer/DiT: BF16, with the embedding, timestep and output layers in FP32.66.28 GB
pdd_fused_heads.safetensors, pdd_config.jsonThe per-step output heads that replace the transformer's output layer, and the sampling schedule.12 MB
vae/Image VAE, FP32.2.34 GB
tokenizer/, processor/Qwen3-VL tokenizer and processor, identical to MiniMax-H3.23 MB
Text encoderNot in this repository. model_index.json loads it from MiniMaxAI/MiniMax-H3, folder text_encoder/. If you already have MiniMax-H3, it is not downloaded again.66.7 GB
MiniMax-H3-Image/
├── model_index.json
├── pdd_config.json
├── pdd_fused_heads.safetensors
├── processor/
├── tokenizer/
├── transformer/
└── vae/

Download this repository and the MiniMax-H3 text encoder into the Hugging Face cache:

hf download MiniMaxAI/MiniMax-H3-Image
hf download MiniMaxAI/MiniMax-H3 --include "text_encoder/*"
# optional prompt expander
hf download MiniMaxAI/MiniMax-H3-Image-PE

Local Deployment

We recommend the following inference frameworks to serve the model:

vLLM-Omni Deployment

See the vLLM-Omni recipe for per-hardware deployment configurations and measured latency. Both NVIDIA and AMD accelerators are supported, including NVIDIA H200, RTX PRO 6000 Blackwell, AMD Instinct MI350X and more.

Start the server on one GPU:

vllm serve MiniMaxAI/MiniMax-H3-Image --omni --host 0.0.0.0 --port 8000

For lower latency, split each request over several GPUs with sequence parallelism (Ulysses), for example on 4 GPUs:

vllm serve MiniMaxAI/MiniMax-H3-Image --omni --host 0.0.0.0 --port 8000 \
  --num-gpus 4 --usp 4 --text-encoder-tp-size 4

SGLang Deployment

Here we use SGLang as a deployment example. See the MiniMax-H3-Image deployment guide for additional deployment configurations.

Start the server on one GPU:

sglang serve --model-path MiniMaxAI/MiniMax-H3-Image --host 0.0.0.0 --port 30000 --warmup-mode off

To use a local copy of the MiniMax-H3 text_encoder/ folder instead of the Hugging Face cache, add --text-encoder-path <path to text_encoder>.

For lower latency, split each request over several GPUs with sequence parallelism (Ulysses), for example on 4 GPUs:

sglang serve --model-path MiniMaxAI/MiniMax-H3-Image --host 0.0.0.0 --port 30000 --warmup-mode off \
  --num-gpus 4 --ulysses-degree 4

Request parameters

Text-to-image requests are JSON sent to /v1/images/generations. Image editing requests send the reference images as multipart form data to /v1/images/edits; their order defines <Picture 1>, <Picture 2>, and so on in the prompt. Both return the PNG in data[0].b64_json. Runnable examples are in Full Workflow.

FieldText-to-imageImage editingNotes
promptRequiredRequiredUsed as given, truncated to 4096 tokens. See Full Workflow
sizeRequiredRequiredWIDTHxHEIGHT. The returned image has exactly this size; see Sizes
image—One or more filesIn upload order they are <Picture 1>, <Picture 2>, ... in the prompt
seedRecommendedRecommendedInteger
generator_devicecpu recommendedcpu recommendedSame seed, same initial noise on every machine
response_formatb64_jsonb64_json
min_generation_areaOptionalOptionalMinimum generated area in pixels, 1024-16777216, default 4194304 (2048x2048). A smaller size is generated at the same aspect ratio on a larger canvas and resized back with LANCZOS; pass 1024 to turn this off. All sizes in the table below are above the default
num_inference_stepsOmit or 6Omit or 6Other values return HTTP 400
guidance_scaleOmit or 1Omit or 1Other values return HTTP 400
negative_promptNot supportedNot supportedRejected

Sizes

The effective working range of MiniMax-H3-Image is about 4 MP to 20 MP, and it generally gives the best results at around 16 MP. Common 16 MP sizes are listed below:

Aspect ratioSize (width x height)
1:14096x4096
4:3 / 3:44736x3552 / 3552x4736
3:2 / 2:35024x3360 / 3360x5024
16:9 / 9:165472x3072 / 3072x5472
21:96272x2688

Full Workflow

MiniMax-H3-Image expects a detailed English description of the whole image. The MiniMax API turns a short prompt in any language into such a description with H3-Image-Context-IR before generation. We also provide MiniMax-H3-Image-PE, which can be deployed locally.

This section reproduces the quality of images generated directly by the MiniMax API with a locally deployed SGLang server. The scripts are in examples/ and use only the Python standard library; run them in that folder:

hf download MiniMaxAI/MiniMax-H3-Image --include "examples/*" --local-dir .
cd examples

Before running examples, set your MiniMax API endpoint and key to use the H3-Image-Context-IR API and the reference scripts. The scripts read them from the environment:

# MiniMax API endpoint (choose one)
# CN
export MINIMAX_API_BASE="https://api.minimax.cn"
# Global
# export MINIMAX_API_BASE="https://api.minimax.io"

# API key obtained from the MiniMax platform
export MINIMAX_API_KEY="<api-key>"

API docs:

case-T2I

instruction.t2i.txt.

StageRequestResult
Prompt EnhancementH3-Image-Context-IR (MiniMax API)python3 context_ir.py t2i (script)revised_prompt.txt, revised_size.txt; our run: revised_prompt.t2i.txt, revised_size.t2i.txt (4736x3552)
local alternative: MiniMax-H3-Image-PEscripts/expand_prompt.py in the PE repositorySave expanded_caption as revised_prompt.txt and the size for aspect_ratio as revised_size.txt
MiniMax-H3-Image generation: local SGLangpython3 t2i.py --prompt revised_prompt.txt --size $(cat revised_size.txt) (script)t2i.png
E2E API Reference: text-to-image by directly calling the MiniMax APIpython3 api_generate.py t2i (script)api_t2i.png

Left: t2i.png from local SGLang with the enhanced prompt. Right: api_t2i.png from the MiniMax API. Both show an overhead farm-to-table feast with bread, vegetables and cheeses on a weathered wooden table

t2i.png from local SGLang (left) and api_t2i.png from the MiniMax API (right), 4736x3552 (4:3 picked by H3-Image-Context-IR)

case-Edit

instruction.edit.txt with the reference image reference1.png as <Picture 1>.

StageRequestResult
Prompt Enhancement: H3-Image-Context-IR (MiniMax API)python3 context_ir.py edit (script)revised_prompt.txt, revised_size.txt; our run: revised_prompt.edit.txt, revised_size.edit.txt (4096x4096)
MiniMax-H3-Image generation: local SGLangpython3 edit.py --prompt revised_prompt.txt --size $(cat revised_size.txt) (script)edit.png
E2E API Reference: image editing by directly calling the MiniMax APIpython3 api_generate.py edit (script)api_edit.png

Left: reference1.png, the reference image of two podcast hosts with the man wearing headphones. Middle: edit.png from local SGLang with the enhanced prompt. Right: api_edit.png from the MiniMax API. In both results the headphones are gone and the hosts bump fists above the MONEY TALKS sign

Reference image reference1.png (left), edit.png from local SGLang (middle) and api_edit.png from the MiniMax API (right), 4096x4096 (1:1 picked by H3-Image-Context-IR)

Showcase

Text-to-image and image editing results, shown downscaled.

Three photorealistic photographs: a woman hanging white sheets on a rooftop at dusk under a full moon, a close-up profile of a curly-haired young man holding a cup, and flamingos wading in shallow water

Photorealistic photography

Three surreal editorial photographs: a barber trimming a cloud seated in a barber chair, a person slicing the moon on a lawn at night, and a model stepping out of a giant pear

Surreal editorial photography

Four environment concepts: ruins of an ancient open-air theater in a forest titled ENVIRONMENT CONCEPT: THE ANCIENT THEATER, a dragon rider on a red rock cliff, an abandoned railway station with an ARRIVALS sign, and shipwrecks frozen in an icy sea

Environment concepts

Characters, creatures and props: a soldier in a worn helmet and armor, a red-finned dragon-like creature in a forest, a weathered astronaut helmet on Mars, and a three-view character sheet of a figure in winter clothing

Characters, creatures and props

Four paintings and illustrations: mandarin ducks in a lotus pond in an oil painting style, a Jiangnan garden in light watercolor, tarot card XVIII THE MOON with a rabbit, and a Chinese gongbi painting of a pelican looking into a mirror with four calligraphy characters

Painting and illustration styles

Two logic puzzle boards: a Chinese candidate-selection puzzle with five conditions and the derived answer, and an English board titled CONFIDENTIAL FILE MISSING with six suspects, true/false stamps and a verification table

Text rendering with reasoning: logic puzzles in Chinese and English, solved correctly on the board

Left: untextured grey 3D render of a lunar base with habitat modules, a rover and an astronaut. Right: the same scene as a photorealistic film still on the lunar surface

Image editing, one reference: an untextured 3D render (left) turned into a film still of a lunar research base (right)

Left: illustrated game map with a river, a waterfall, bridges, a castle, a village, a mine and a harbor, and a red arrow on the southern lake. Right: first-person 3D game view from the lake towards the waterfall, the suspension bridge, the mine and the distant castle, with the map as a minimap in the top-left corner

Image editing, one reference: a game map (left) turned into a first-person 3D game view from the red arrow's position, with the map as a minimap (right)

Top: ten reference images, an empty sunlit room and nine pieces of furniture. Bottom: the empty room furnished with all nine pieces as a living room

Image editing, ten references: an empty room and nine pieces of furniture (top) composed into one living room (bottom)

License

Contact Us

Contact us at model@minimax.io.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modeltext-to-image
black-forest-labs/FLUX.1-dev

!FLUX.1 dev Grid(./devgrid.jpg) FLUX.1 dev is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. For more information, please read our blog post(https://blackforestlabs.ai/announcing-black-forest-la...

♥0
395.9k
Jun 27, 2025
Modeltext-to-image
black-forest-labs/FLUX.1-schnell

!FLUX.1 schnell Grid(./schnellgrid.jpeg) FLUX.1 schnell is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. For more information, please read our blog post(https://blackforestlabs.ai/announcing-bl...

♥0
285.0k
Aug 16, 2024
Modeltext-to-image
Qwen/Qwen-Image-2.1

🤖 ModelScope&nbsp;&nbsp;| &nbsp;&nbsp;🤗 HuggingFace&nbsp;&nbsp;| &nbsp;&nbsp;📑 Blog&nbsp;&nbsp;| &nbsp;&nbsp;🖥️ Demo&nbsp;&nbsp;| &nbsp;&nbsp;🫨 Discord&nbsp;&nbsp;| &nbsp;&nbsp;💬 WeChat Introduction We are excited to open-source Qwen-Image-2.1...

♥0
287.8k
Sep 30, 2026
Modeltext-to-image
stabilityai/stable-diffusion-xl-base-1.0

SD-XL 1.0-base Model Card !row01(01.png) Model !pipeline(pipeline.png) SDXL(https://arxiv.org/abs/2307.01952) consists of an ensemble of experts(https://arxiv.org/abs/2211.01324) pipeline for latent diffusion: In a first step, the base model is used...

♥0
4.8M
Oct 30, 2023
Modeltext-to-image
CompVis/stable-diffusion-v1-4

Stable Diffusion v1-4 Model Card Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input. For more information about how Stable Diffusion functions, please have a look at 🤗's Stab...

♥0
450.2k
Aug 23, 2023
Modeltext-to-image
abenzerps/Qwen-Image-2.1-GGUF

!IMPORTANT Notice: A fully uncensored version is currently in development and will be added to this repository soon. Qwen-Image-2.1 GGUF GGUF quantizations of Qwen/Qwen-Image-2.1(https://huggingface.co/Qwen/Qwen-Image-2.1) for local image generation...

♥0
258.3k
Nov 15, 2026
Modeltext-to-image
abenzerps/Qwen-Image-2.1-Turbo-Quantized

Qwen-Image-2.1 Turbo Quantized GGUF, Safetensors, and MLX quantized formats of Qwen/Qwen-Image-2.1-Turbo(https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo) for local image generation using the official turbo base weights. Benchmark !Qwen-Image-2.1 be...

♥0
258.3k
Nov 15, 2026
Modeltext-to-image
abenzerps/Qwen-Image-2.1-Uncensored-Quantized

!🤗 Model Requests(https://img.shields.io/badge/%F0%9F%A4%97ModelRequests-SubmitHere-f59e0b?style=for-the-badge&labelColor=1f2937)(https://abenzerps.com/request-a-model/) Qwen-Image-2.1 Uncensored Quantized GGUF, Safetensors, and MLX quantized format...

♥0
258.3k
Nov 15, 2026
Modeltext-to-image
abenzerps/Qwen-Image-2.1-Uncensored-GGUF

!IMPORTANT The uncensored GGUFs are now available! If you encounter any issues or would like to share your generated images, feel free to post them in the Community section. Qwen-Image-2.1 Uncensored GGUF GGUF quantizations of Qwen/Qwen-Image-2.1(ht...

♥0
258.3k
Nov 15, 2026