MiniMax

Generate 1-9 images from a text prompt, optionally guided by a subject reference image (image-to-image). Model fixed to image-01. URLs expire after 24h.

Changed on
post/minimax-08853f/v1/image_generation

Request

Request body

promptstring required

Image description, max 1500 chars.

aspect_ratiostring

1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9. Default 1:1.

widthinteger

Width px [512,2048], divisible by 8 (with height).

heightinteger

Height px [512,2048], divisible by 8 (with width).

ninteger

Number of images [1,9], default 1.

response_formatstring

url (default) or base64.

seedinteger

Random seed for reproducibility.

prompt_optimizerboolean

Auto-optimize the prompt.

subject_referencestring[]

Image-to-image: [{type:"character", image_file:"<public URL or data URI>"}].

Response

Successful response

Changes