Model reference · open weights
MiniMax-H3-Image-PE is an open-weight language model from MiniMax. MiniMax-H3-Image-PE (NVFP4) weighs 17.9 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the MiniMaxAI/MiniMax-H3-Image-PE model card, 2026-11-11
What it is
| Released by | MiniMax |
|---|---|
| Released | 2026-11-08 |
| Parameters | 27.4B |
| VRAM | 17.9 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | ||||
| RTX 3090 24 GB FP4 without its speed-up here | 3 | 1 | 44K | 23.4 GB |
| RTX 4090 24 GB FP4 without its speed-up here | 3 | 1 | 43K | 23.4 GB |
| RTX 5090 32 GB | 12 | 4 | 157K | 31.0 GB |
| L40S 48 GB FP4 without its speed-up here | 28 | 9 | all 256K | 44.0 GB |
| A100 80 GB FP4 without its speed-up here | 68 | 23 | all 256K | 78.2 GB |
| H100 80 GB FP4 without its speed-up here | 62 | 21 | all 256K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 80 | 27 | all 256K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 96 | 33 | all 256K | 107 GB |
| H200 141 GB FP4 without its speed-up here | 132 | 45 | all 256K | 138 GB |
| B200 180 GB | 177 | 60 | all 256K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel · FP4 without its speed-up here | 1 | 9K | 11.6 GB a card | |
| 2× RTX 4060 Ti 16 GB tensor parallel · FP4 without its speed-up here | 10 | 3 | 122K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel · FP4 without its speed-up here | 28 | 9 | all 256K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel · FP4 without its speed-up here | 28 | 9 | all 256K | 23.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 21.0 GB | 22.6 GB |
| 5 | 24.3 GB | 32.4 GB |
| 8 | 26.9 GB | 39.8 GB |
| 16 | 33.6 GB | 59.4 GB |
| 32 | 47.1 GB | 98.7 GB |
| 64 | 74.2 GB | 177 GB |
One card, with vLLM's small-card settings.
From the model card
Use MiniMax-H3-Image directly via API.
API docs:
MiniMax-H3-Image-PE provides prompt expansion (PE) for MiniMax-H3-Image. It turns a short request into a detailed description of the intended image, together with an aspect-ratio recommendation for image generation.
This repository covers two workflows:
| Workflow | Input | Released assets |
|---|---|---|
| Text-to-image (T2I) PE | A text instruction | MiniMax-H3-Image-PE weights (fine-tuned from Qwen3.8-27B, FP4), task and system prompts, and a client example |
| Image editing PE | An editing instruction and reference images | A task prompt and message-assembly example for a vision-language model of your choice. Image editing PE is still under development; this release provides its prompt only. |
The examples below explain how to use MiniMax-H3-Image-PE and the image editing task prompt.
Run the examples from a local copy of this repository so the relative prompt and script paths resolve correctly.
We recommend SGLang with sglang>=0.5.23 and xgrammar>=0.2.7.
sglang serve \
--model-path MiniMaxAI/MiniMax-H3-Image-PE \
--served-model-name MiniMax-H3-Image-PE \
--model-type llm \
--reasoning-parser qwen3 \
--grammar-backend xgrammar \
--constrained-json-disable-any-whitespace \
--host 0.0.0.0 \
--port 30000
SGLang reads the FP4 configuration from the checkpoint. XGrammar constrains the answer to the JSON schema, and the reasoning parser separates reasoning from the final answer.
Load the task prompt and insert your instruction with .format(user_query):
from pathlib import Path
task_prompt = Path("prompt/t2i/task_prompt.txt").read_text(encoding="utf-8")
user_query = "An orange tabby cat sleeping on a sunlit windowsill."
user_prompt = task_prompt.format(user_query)
Send it with the system prompt and request parameters:
import json
from urllib.request import Request, urlopen
system_prompt = Path("prompt/t2i/system_prompt.txt").read_text(encoding="utf-8").strip()
params = json.loads(Path("prompt/t2i/request_params.json").read_text(encoding="utf-8"))
payload = {
**params,
"model": "MiniMax-H3-Image-PE",
"messages": [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt},
],
"stream": False,
}
request = Request(
"http://0.0.0.0:30000/v1/chat/completions",
data=json.dumps(payload).encode("utf-8"),
headers={"Content-Type": "application/json"},
)
with urlopen(request, timeout=1200) as response:
result = json.load(response)
pe_result = json.loads(result["choices"][0]["message"]["content"])
print(pe_result)
The included client performs the same request and checks the response:
python3 scripts/expand_prompt.py \
--url http://0.0.0.0:30000 \
--model MiniMax-H3-Image-PE \
"An orange tabby cat sleeping on a sunlit windowsill."
The examples load the defaults from
prompt/t2i/request_params.json:
| Parameter | Value |
|---|---|
temperature / top_p / top_k | 1.0 / 0.95 / 20 |
min_p | 0.0 |
presence_penalty / repetition_penalty | 0.0 / 1.0 |
max_tokens | 4096, including thinking and the final answer |
reasoning_effort | xhigh |
enable_thinking / preserve_thinking | true / true |
response_format | JSON schema for expanded_caption and aspect_ratio |
With --reasoning-parser qwen3, message.content contains the JSON answer.
Reasoning is returned separately in message.reasoning_content. Example output:
{
"expanded_caption": "A warm photograph shows an orange tabby cat sleeping on a sunlit windowsill, with soft afternoon light falling across its fur.",
"aspect_ratio": "3:2"
}
When your aspect-ratio selection is auto, use the aspect_ratio returned by the
model for image generation. If you select an explicit ratio, use your selected
ratio instead of the model's recommendation at the image-generation stage.
Use the task prompt with a vision-language model that supports interleaved text and images. The example below describes message assembly without selecting a model or making an API call.
Provide the following inputs:
| Input | Description |
|---|---|
user_query | The editing instruction. Refer to images in their supplied order. |
references | At least one prepared image, in order, with its original display aspect ratio as a reduced W:H string. Use None when the source ratio is unknown. |
aspect_ratio | The target ratio: adaptive to let the model choose, or an explicit positive-integer W:H string. |
Load prompt/edit/task_prompt.txt unchanged as the
first content part. Follow it with the image count, each image's label and source
ratio immediately before that image, and your editing instruction and target ratio
in the final text part. This produces one
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.