> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax-H3-Image

Derived from the H3 video model, this model generates images from text, uses reference images, and edits images. It can produce a 4096 x 4096 image (about 16 MP, or 4K) in 10 seconds, with realistic detail, strong prompt adherence, and the ability to interpret multiple references.

### Model parameters

* Model IDs: `MiniMax-H3-Image`/`MiniMax-H3-Image-Highspeed` (high-speed version)
* Pricing: See the model pages for [MiniMax-H3-Image](https://geekai.co/models/MiniMax-H3-Image) and [MiniMax-H3-Image-Highspeed](https://geekai.co/models/MiniMax-H3-Image-Highspeed).
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://geekai.co/user/api_keys).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `negative_prompt`
> * `strength`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `mask`
>
> See also: [Official MiniMax-H3-Image API documentation](https://platform.minimax.cn/docs/guides/image-generation).

For image-to-image generation, pass up to 16 reference images in `image` as URLs or Base64-encoded data. Use an array for multiple images. Requirements:

* Supported formats: JPG, JPEG, PNG, WEBP, HEIC, and HEIF.
* Each image must be no larger than 64 MB. The long-to-short side ratio must not exceed 4:1, the short side must exceed 18 px, and the long side must not exceed 8192 px.

Set the MiniMax-H3-Image output size using `size` or the combination of `size` and `aspect_ratio`. There are two options:

* Specify a resolution: `1K`, `2K`, or `4K` (default for regular generation). You can then set the aspect ratio with `aspect_ratio`.
* Specify width and height in pixels. The aspect ratio must be between 1:3 and 3:1 and the total pixel count between 655360 and 20000000. `aspect_ratio` is not supported with this option.

If both `size` and `aspect_ratio` are empty, the resolution defaults to `4K` and the aspect ratio to `auto`: the model infers the ratio from the prompt.

Set `output_format` to `png`, `jpeg`, or `webp` to control the MiniMax-H3-Image output format. The default is `jpeg`.

Set `response_format` to `url` or `b64_json` to control the MiniMax-H3-Image response format. The default is `url`.

Use `enhance_prompt` instead of the official `disable_prompt_enhanced` to select the prompt optimization mode. It defaults to `true`, so prompt optimization is enabled by default.

### Pricing

MiniMax-H3-Image pricing depends on the generated image resolution:

| Model ID | Use case | Input image size | Output image size | Price (CNY/image) |
| - | - | - | - | - |
| `MiniMax-H3-Image` | Text-to-image | - | 1K | 0.143 |
| `MiniMax-H3-Image` | Text-to-image | - | 2K | 0.153 |
| `MiniMax-H3-Image` | Text-to-image | - | 4K | 0.452 |
| `MiniMax-H3-Image` | Image-to-image (1 reference) | 1K | 1K | 0.174 |
| `MiniMax-H3-Image` | Image-to-image (1 reference) | 1K | 2K | 0.175 |
| `MiniMax-H3-Image` | Image-to-image (1 reference) | 1K | 4K | 0.481 |
| `MiniMax-H3-Image` | Image-to-image (3 references) | 1K | 1K | 0.235 |
| `MiniMax-H3-Image` | Image-to-image (3 references) | 1K | 2K | 0.275 |
| `MiniMax-H3-Image` | Image-to-image (3 references) | 1K | 4K | 0.521 |
| `MiniMax-H3-Image-Highspeed` | Text-to-image | - | 1K | 0.232 |
| `MiniMax-H3-Image-Highspeed` | Text-to-image | - | 2K | 0.238 |
| `MiniMax-H3-Image-Highspeed` | Text-to-image | - | 4K | 0.855 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (1 reference) | 1K | 1K | 0.298 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (1 reference) | 1K | 2K | 0.301 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (1 reference) | 1K | 4K | 0.9 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (3 references) | 1K | 1K | 0.398 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (3 references) | 1K | 2K | 0.4 |
| `MiniMax-H3-Image-Highspeed` | Image-to-image (3 references) | 1K | 4K | 1.015 |

When using a GeekAI [discounted proxy channel](https://docs.geekai.co/en/docs/model_price.md), multiply the listed price by the discount factor. For example, the high-availability Pro channel has a text-to-image factor of `0.8`. An image with `size` set to `1K` costs `0.143 x 0.8 = 0.114` CNY. Apply the same calculation to other settings.

### Text-to-image generation

Give the model a clear, precise description to quickly generate a single high-quality image:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "MiniMax-H3-Image",
    "prompt": "A vibrant close-up editorial portrait of a model with a piercing gaze wearing a sculptural hat. Rich color blocking, sharp focus on the eyes, shallow depth of field, Vogue cover aesthetics, medium-format photography, dramatic studio lighting.",
    "output_format":"png"
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
    "model": "MiniMax-H3-Image",
    "created": 1787563947,
    "task_id": "eae17a81-d0b9-49a5-9c31-749d56f48a66",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/08/24/3875c0d7366011f7de9f32ec2f010f29.png",
            "size": "1776x2368"
        }
    ],
    "usage": {
        "billed_units": 1,
        "output_tokens": 16428,
        "total_tokens": 16428
    }
}
```

The image-to-image examples below return the same response format.

### Image-to-image generation

Doubao-Seedream-5.0-Pro can modify existing images to generate new ones. Pass one or more images in `image` and describe the changes in `prompt`.

**Single image**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "MiniMax-H3-Image",
    "prompt": "Generate a close-up of the dog lying on the grass",
    "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imageToimage.png",
    "output_format":"jpeg"
}'
```

**Multiple images**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "MiniMax-H3-Image",
    "prompt": "Replace the clothing in image 1 with the clothing from image 2",
    "image": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png", 
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png"
    ],
    "output_format":"png",
    "watermark": false
}'
```

MiniMax-H3-Image accepts up to 16 reference images.

> [!NOTE]
>
> MiniMax-H3-Image-Highspeed uses the same generation API as MiniMax-H3-Image. Just replace the model ID.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.