MiniMax-H3-Image Prompt Writing
MiniMax-H3-Image renders best from a complete description of the finished image: what the image is
for, what is in it and where, how it looks, and every word that appears on it. This skill turns a
short request into that description, for text-to-image and for editing with up to 16 reference
images, and can send the result to the MiniMax API.
Workflow
- Pick the task. Use text-to-image when there are no input images. Use editing when the user
supplies images to change, combine or borrow from. Read the matching guide and its examples
before writing:
- references/t2i-en.txt for text-to-image.
- references/edit-en.txt for editing. Look at every input image, in
the order supplied.
- Plan the image in this order: purpose and deliverable, overall layout, aspect ratio, the
subjects and what they are doing, the visual style, the text. Fill ordinary gaps yourself; a
short idea is enough. Write requested copy yourself, mark example data as illustrative and keep
an unseen asset as a named reference. Ask only when a missing fact would make the prompt wrong,
such as a chart of the user's own figures with none given.
- Write the prompt with the rules below and the guide.
- Check it against the request with the final check.
- Deliver it in the output format. When the user asks for the image itself,
render it. If
MINIMAX_API_KEY is not set, deliver the prompt and say
that setting the key lets the skill render it.
Writing rules
Basic description
- Task before style. Open with what the image is and what it is for, then the main people or
objects and their state or action. Style comes after.
- Layout before details. Give the number of subjects, their positions, the viewpoint and the
empty space. For dense content, name the regions first and then fill each one: "a title across
the top; below it, a photo on the left and three short paragraphs on the right."
- Style through visible details. Write color, material, light and texture, such as "soft side
light, brushed-metal reflections, generous white space", instead of words like "premium" or
"high-end". Keep the details that matter and drop contradictory ones.
Text and information
- Quote every word that appears. Put the complete text in quotes, in its own language and with
its spacing as given, together with its position, size hierarchy and line breaks. When the user
wants you to write the copy, write the actual words.
- Say when there is no text. In a text-to-image prompt, add "The image contains no text,
letters or numbers." so the model does not add titles, labels or decorative lettering. In an
edit, say that no other lettering is added, so text in the source image is kept.
- Get data right. For charts, academic figures and educational images, give exact values,
units and relationships, and the time range for anything that changes over time. Mark example
data as illustrative and never present invented numbers as real.
Reference images and editing
- Name the inputs. Refer to the images as
<Picture 1>, <Picture 2>, ... in the order they
are supplied.
- Give each reference a role. Say what each image contributes, what must stay consistent and
what may change. When only a color is borrowed, say that the reference's shape and material are
not.
- Separate what changes from what stays. Locate the target by position or features, describe
what it becomes and how far the change reaches, then name what is preserved: "the cup on the
left becomes blue; its shape, material, position and size stay the same."
- Describe the finished result. Say whether something is moved, copied, replaced or removed,
and what fills the space a removed object leaves. When text or data changes, give the complete
new content and say whether the original layout and chart structure stay.
- One clear goal per round. In multi-round editing, name the image used in this round, what
changes and what stays. Avoid references like "the one from before".
- Grids by rows and columns. Write "2 rows and 3 columns" or "3×3 (rows × columns)", not
"2×3". Describe irregular layouts directly, such as "3 panels on top and 2 below", and address
one cell as "row 2, column 1".
Output format
Give the prompt in a text block, followed by the aspect ratio:
```text
<the prompt>
```
Aspect ratio: 3:4
- Write the description in English. Text that appears in the image keeps its own language.
- Text-to-image prompts are one or more flowing paragraphs. Edit prompts are one paragraph in the
order the edit guide sets out: source definitions, then the target and each source's role, then
the changed details.
- The aspect ratio is width:height between 1:3 and 3:1. Keep a ratio the user gives, or use the
nearest allowed one and say so when it is outside that range; otherwise choose it from the
layout. For an edit that keeps the input's framing, use the input's ratio.
- When the user asks for options, give up to three prompts with clearly different takes, each with
its own aspect ratio.
Rendering the prompt
MiniMax API
scripts/generate.py sends a prompt to the MiniMax API and saves the images.
It uses only the Python standard library. The user sets the key in MINIMAX_API_KEY, and
MINIMAX_API_BASE=https://api.minimax.cn for the China platform; the script defaults to
https://api.minimax.io. Do not change either variable.
Save only the prompt text, without the "Aspect ratio" line, to a file and pass the ratio
separately:
# Text-to-image
python3 scripts/generate.py --prompt-file prompt.txt --aspect-ratio 3:4 --out poster
# Editing: images in <Picture N> order, as local files or URLs
python3 scripts/generate.py --prompt-file edit.txt --image room.jpg --image sofa.png \
--aspect-ratio 4:3 --out room_edit
- For text-to-image the script sets
disable_prompt_enhanced: true, so the API renders the
prompt as written at the given aspect ratio. Pass --enhance to let the API expand a short
prompt instead; it then also chooses the ratio when none is given.
- The API always expands editing prompts. Pass the aspect ratio for edits too; without it the API
chooses one. It accepts up to 16 images in JPG, PNG, WebP, HEIC or HEIF, each at most 64 MiB with
sides of 128 to 8192 pixels.
- The output area defaults to
4K, which gives the best results. --area 2K or --area 1K is
faster.
--n asks for up to 10 images per request. Dense text, charts and diagrams vary from run to
run, so render two to four of them and keep the best.
- Each image is saved as
<out>_<i>.png. When the API expanded the prompt, the expanded text is
saved next to it as <out>_<i>.revised.txt.
Your own deployment
On a local SGLang server, send the prompt as prompt and a size (WIDTHxHEIGHT) for the
aspect ratio from the Sizes table; the
other fields are under
Request Parameters, and
vLLM-Omni's differ slightly, see the vLLM-Omni recipe.
A local server does not expand prompts, so a prompt written with this skill takes the place of
that step.
Final check
- Every word that appears is quoted and spelled exactly as given, and no text is added when none
was asked for.
- Counts, positions, left and right, foreground and background, and contact between people and
objects match the request.
- Values, units and labels are correct and complete.
- Each reference image has a role, and what is preserved is named.
- The aspect ratio fits the layout.
- No vague quality word remains where a visible detail can say it.
1---2name: h3-image-prompt-writing3description: Write prompts for MiniMax-H3-Image text-to-image generation and image editing, and optionally render them through the MiniMax API. Use when the user wants an image such as a poster, infographic, chart, product shot, UI screen, character, scene, storyboard or grid, wants to improve an image prompt, or wants to edit, combine or restyle reference images with MiniMax-H3-Image.4metadata:5 source: https://skillmd.com/skills/minimax-ai/h3-image-prompt-writing6---78# MiniMax-H3-Image Prompt Writing910MiniMax-H3-Image renders best from a complete description of the finished image: what the image is11for, what is in it and where, how it looks, and every word that appears on it. This skill turns a12short request into that description, for text-to-image and for editing with up to 16 reference13images, and can send the result to the MiniMax API.1415## Workflow16171. **Pick the task.** Use text-to-image when there are no input images. Use editing when the user18 supplies images to change, combine or borrow from. Read the matching guide and its examples19 before writing:20 - [references/t2i-en.txt](references/t2i-en.txt) for text-to-image.21 - [references/edit-en.txt](references/edit-en.txt) for editing. Look at every input image, in22 the order supplied.232. **Plan the image** in this order: purpose and deliverable, overall layout, aspect ratio, the24 subjects and what they are doing, the visual style, the text. Fill ordinary gaps yourself; a25 short idea is enough. Write requested copy yourself, mark example data as illustrative and keep26 an unseen asset as a named reference. Ask only when a missing fact would make the prompt wrong,27 such as a chart of the user's own figures with none given.283. **Write the prompt** with the rules below and the guide.294. **Check it** against the request with the [final check](#final-check).305. **Deliver** it in the [output format](#output-format). When the user asks for the image itself,31 [render it](#rendering-the-prompt). If `MINIMAX_API_KEY` is not set, deliver the prompt and say32 that setting the key lets the skill render it.3334## Writing rules3536### Basic description3738- **Task before style.** Open with what the image is and what it is for, then the main people or39 objects and their state or action. Style comes after.40- **Layout before details.** Give the number of subjects, their positions, the viewpoint and the41 empty space. For dense content, name the regions first and then fill each one: "a title across42 the top; below it, a photo on the left and three short paragraphs on the right."43- **Style through visible details.** Write color, material, light and texture, such as "soft side44 light, brushed-metal reflections, generous white space", instead of words like "premium" or45 "high-end". Keep the details that matter and drop contradictory ones.4647### Text and information4849- **Quote every word that appears.** Put the complete text in quotes, in its own language and with50 its spacing as given, together with its position, size hierarchy and line breaks. When the user51 wants you to write the copy, write the actual words.52- **Say when there is no text.** In a text-to-image prompt, add "The image contains no text,53 letters or numbers." so the model does not add titles, labels or decorative lettering. In an54 edit, say that no other lettering is added, so text in the source image is kept.55- **Get data right.** For charts, academic figures and educational images, give exact values,56 units and relationships, and the time range for anything that changes over time. Mark example57 data as illustrative and never present invented numbers as real.5859### Reference images and editing6061- **Name the inputs.** Refer to the images as `<Picture 1>`, `<Picture 2>`, ... in the order they62 are supplied.63- **Give each reference a role.** Say what each image contributes, what must stay consistent and64 what may change. When only a color is borrowed, say that the reference's shape and material are65 not.66- **Separate what changes from what stays.** Locate the target by position or features, describe67 what it becomes and how far the change reaches, then name what is preserved: "the cup on the68 left becomes blue; its shape, material, position and size stay the same."69- **Describe the finished result.** Say whether something is moved, copied, replaced or removed,70 and what fills the space a removed object leaves. When text or data changes, give the complete71 new content and say whether the original layout and chart structure stay.72- **One clear goal per round.** In multi-round editing, name the image used in this round, what73 changes and what stays. Avoid references like "the one from before".74- **Grids by rows and columns.** Write "2 rows and 3 columns" or "3×3 (rows × columns)", not75 "2×3". Describe irregular layouts directly, such as "3 panels on top and 2 below", and address76 one cell as "row 2, column 1".7778## Output format7980Give the prompt in a text block, followed by the aspect ratio:8182````text83```text84<the prompt>85```8687Aspect ratio: 3:488````8990- Write the description in English. Text that appears in the image keeps its own language.91- Text-to-image prompts are one or more flowing paragraphs. Edit prompts are one paragraph in the92 order the edit guide sets out: source definitions, then the target and each source's role, then93 the changed details.94- The aspect ratio is width:height between 1:3 and 3:1. Keep a ratio the user gives, or use the95 nearest allowed one and say so when it is outside that range; otherwise choose it from the96 layout. For an edit that keeps the input's framing, use the input's ratio.97- When the user asks for options, give up to three prompts with clearly different takes, each with98 its own aspect ratio.99100## Rendering the prompt101102### MiniMax API103104[scripts/generate.py](scripts/generate.py) sends a prompt to the MiniMax API and saves the images.105It uses only the Python standard library. The user sets the key in `MINIMAX_API_KEY`, and106`MINIMAX_API_BASE=https://api.minimax.cn` for the China platform; the script defaults to107`https://api.minimax.io`. Do not change either variable.108109Save only the prompt text, without the "Aspect ratio" line, to a file and pass the ratio110separately:111112```bash113# Text-to-image114python3 scripts/generate.py --prompt-file prompt.txt --aspect-ratio 3:4 --out poster115116# Editing: images in <Picture N> order, as local files or URLs117python3 scripts/generate.py --prompt-file edit.txt --image room.jpg --image sofa.png \118 --aspect-ratio 4:3 --out room_edit119```120121- For text-to-image the script sets `disable_prompt_enhanced: true`, so the API renders the122 prompt as written at the given aspect ratio. Pass `--enhance` to let the API expand a short123 prompt instead; it then also chooses the ratio when none is given.124- The API always expands editing prompts. Pass the aspect ratio for edits too; without it the API125 chooses one. It accepts up to 16 images in JPG, PNG, WebP, HEIC or HEIF, each at most 64 MiB with126 sides of 128 to 8192 pixels.127- The output area defaults to `4K`, which gives the best results. `--area 2K` or `--area 1K` is128 faster.129- `--n` asks for up to 10 images per request. Dense text, charts and diagrams vary from run to130 run, so render two to four of them and keep the best.131- Each image is saved as `<out>_<i>.png`. When the API expanded the prompt, the expanded text is132 saved next to it as `<out>_<i>.revised.txt`.133134### Your own deployment135136On a local SGLang server, send the prompt as `prompt` and a `size` (`WIDTHxHEIGHT`) for the137aspect ratio from the [Sizes table](https://github.com/MiniMax-AI/MiniMax-H3-Image#sizes); the138other fields are under139[Request Parameters](https://github.com/MiniMax-AI/MiniMax-H3-Image#request-parameters), and140vLLM-Omni's differ slightly, see the [vLLM-Omni recipe](https://recipes.vllm.ai/MiniMaxAI/MiniMax-H3-Image).141A local server does not expand prompts, so a prompt written with this skill takes the place of142that step.143144## Final check145146- Every word that appears is quoted and spelled exactly as given, and no text is added when none147 was asked for.148- Counts, positions, left and right, foreground and background, and contact between people and149 objects match the request.150- Values, units and labels are correct and complete.151- Each reference image has a role, and what is preserved is named.152- The aspect ratio fits the layout.153- No vague quality word remains where a visible detail can say it.