Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Task Status endpoint.
Use minimax-h3-image to create posters, product shots, concept art, and other images from a prompt, or to edit and combine up to 16 reference images with the same model ID. MiniMax H3 Image is MiniMax’s image generation and editing model, built on the MiniMax H3 architecture and released on November 10, 2026.

Models

  • minimax-h3-image — Text-to-image when image_urls is omitted; image editing with 1 to 16 reference images when image_urls is provided

Features

  • Text-to-image generation from prompts of up to 5,000 characters.
  • On-image text rendering for titles, labels, and captions written in quotes in the prompt.
  • Image editing and multi-reference composition with up to 16 reference images, referenced in the prompt as <Picture 1>, <Picture 2>, and so on.
  • Ten aspect ratios at 1K, 2K, or 4K (up to 6272×2688 at 21:9), plus custom WIDTHxHEIGHT sizes from 655,360 to 20,000,000 pixels.
  • Prompt expansion that rewrites a short prompt in any language into a detailed description of the whole image.
  • PNG or JPEG output.

Input modes

  • Text-to-image — Omit image_urls. size defaults to 1:1, and enable_prompt_expansion controls whether the prompt is expanded.
  • Image editing — Pass 1 to 16 URLs in image_urls. The first URL is <Picture 1>, the second is <Picture 2>, and so on; use these tags in the prompt to say which image to change and which images to take content from. size defaults to auto, which follows the aspect ratio of <Picture 1>. Image editing requests always expand the prompt.

Required parameters

  • prompt (string): Description of the image or the requested edit, 1–5,000 characters. Must contain non-whitespace text. Put exact on-image text in quotes and state where it goes.

Optional parameters

  • image_urls (array of strings): 1 to 16 publicly accessible HTTP(S) reference image URLs (JPEG, PNG, or WEBP, up to 20 MB each, 128 to 8192 pixels per side). Selects image editing mode. Refer to the images in the prompt by their order: <Picture 1> for the first URL, <Picture 2> for the second, and so on.
  • size (string): 1:1, 5:4, 4:5, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, auto, or a custom WIDTHxHEIGHT. Defaults to 1:1 for text-to-image and auto for image editing. auto applies to image editing. See Size.
  • resolution (string): 1K, 2K, or 4K. Default is 2K. Sets the pixel tier for aspect-ratio sizes and auto. A custom WIDTHxHEIGHT size sets the exact output pixels.
  • enable_prompt_expansion (boolean): Expand the prompt into a detailed description of the whole image before generating. Default is true. Applies to text-to-image requests. Image editing requests always expand the prompt.
  • output_format (string): png or jpeg. Default is png.

Size

Each aspect ratio maps to fixed pixel dimensions at the selected resolution:
  • auto (image editing): The output follows the aspect ratio of <Picture 1> at about the pixel area of the selected tier (1024×1024, 2048×2048, or 4096×4096). Width and height are multiples of 32, and the aspect ratio stays within 1:3 to 3:1.
  • Custom WIDTHxHEIGHT: Integer width and height with total pixels from 655,360 to 20,000,000 and an aspect ratio between 1:3 and 3:1 (for example 2560x1440 or 1920x1080). The output image has exactly the requested width and height.

Examples

Text To Image

A 2K 16:9 poster (2720×1536) with a title and subtitle:

Multi-Reference Edit

Combine several reference images, referring to each one by its position in image_urls:

Custom Size

An exact 1920×1080 slide background in JPEG, using the prompt as written:

Notes

  • Each request generates one image.
  • image_urls must be an array, even for one image.
  • Reference images are numbered by their order in image_urls. For best results, give each image a role in the prompt and say what changes and what stays the same.
  • A request usually finishes in about 10 to 25 seconds. 4K output and edits with several reference images take longer.

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication.

Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.

Add it to the request header:

Body

application/json
model
enum<string>
required

MiniMax H3 Image model identifier. Omit image_urls for text-to-image; pass 1–16 image_urls for image editing.

Available options:
minimax-h3-image
input
object
required

Generate one image. With image_urls, edit or combine the reference images.

callback_url
string<uri>

Optional webhook URL for task completion or failure.

Response

Task submitted successfully

code
enum<integer>
required

Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.

  • 200: Success
  • 400: Invalid request parameters
  • 401: Missing or invalid API key
  • 402: Insufficient credits
  • 403: Permission denied
  • 404: Resource not found
  • 408: Request timeout
  • 429: Rate limit exceeded
  • 500: Internal server error
  • 502: Upstream service error
  • 503: Service unavailable

See Error Codes for details.

Available options:
200,
400,
401,
402,
403,
404,
408,
429,
500,
502,
503
Example:

200

data
object
required