Model reference · open weights

MiniMax-H3-Image-PE

LLMs MiniMaxAI Text gen 1 build Its own licence terms 0 dl/mo

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.

  • MiniMax-H3-Image-PE is a 27.4B parameter text-generation model by MiniMax that expands short prompts into detailed image descriptions and aspect ratio recommendations.
  • It supports a context length of 262144 tokens and operates in English.
  • The model is released under the MiniMax-H3-Image Community License Agreement.

Summary of the MiniMaxAI/MiniMax-H3-Image-PE model card, 2026-11-11

What it is

Released byMiniMax
Released2026-11-08
Parameters27.4B
VRAM17.9 GB for the weights

What it runs on

Memory and cards for MiniMax-H3-Image-PE (NVFP4)

17.9 GBweights, file size
66 MBcache per 1K tokens
308 MBfixed state per request
2.2 GBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB
FP4 without its speed-up here
3144K23.4 GB
RTX 4090 24 GB
FP4 without its speed-up here
3143K23.4 GB
RTX 5090 32 GB124157K31.0 GB
L40S 48 GB
FP4 without its speed-up here
289all 256K44.0 GB
A100 80 GB
FP4 without its speed-up here
6823all 256K78.2 GB
H100 80 GB
FP4 without its speed-up here
6221all 256K78.1 GB
RTX PRO 6000 Blackwell 96 GB8027all 256K93.8 GB
DGX Spark (GB10) 128 GB unified9633all 256K107 GB
H200 141 GB
FP4 without its speed-up here
13245all 256K138 GB
B200 180 GB17760all 256K176 GB
2× RTX 3060 12 GB
tensor parallel · FP4 without its speed-up here
19K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel · FP4 without its speed-up here
103122K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel · FP4 without its speed-up here
289all 256K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel · FP4 without its speed-up here
289all 256K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
121.0 GB22.6 GB
524.3 GB32.4 GB
826.9 GB39.8 GB
1633.6 GB59.4 GB
3247.1 GB98.7 GB
6474.2 GB177 GB

One card, with vLLM's small-card settings.

From the model card

What MiniMax says about MiniMax-H3-Image-PE

Read the model card

Online API

Use MiniMax-H3-Image directly via API.

API docs:

Introduction

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:

WorkflowInputReleased assets
Text-to-image (T2I) PEA text instructionMiniMax-H3-Image-PE weights (fine-tuned from Qwen3.8-27B, FP4), task and system prompts, and a client example
Image editing PEAn editing instruction and reference imagesA 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.

How to use T2I PE

Run the examples from a local copy of this repository so the relative prompt and script paths resolve correctly.

Serve MiniMax-H3-Image-PE

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.

Expand a prompt

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."

Request parameters

The examples load the defaults from prompt/t2i/request_params.json:

ParameterValue
temperature / top_p / top_k1.0 / 0.95 / 20
min_p0.0
presence_penalty / repetition_penalty0.0 / 1.0
max_tokens4096, including thinking and the final answer
reasoning_effortxhigh
enable_thinking / preserve_thinkingtrue / true
response_formatJSON schema for expanded_caption and aspect_ratio

Output

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.

How to use Image editing PE

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.

Inputs

Provide the following inputs:

InputDescription
user_queryThe editing instruction. Refer to images in their supplied order.
referencesAt 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_ratioThe target ratio: adaptive to let the model choose, or an explicit positive-integer W:H string.

Assemble the message

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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms