Nexus
All models
MiniMax Image Available

Minimax H3 Text-To-Image

Generate an image from a text prompt with MiniMax-H3-Image.

Text to Image

From 60 credits (≈ ₹60.00) per request.

Parameters

ParameterTypeDescription
promptRequired string Required. Text prompt, 1–5000 characters; Chinese and English are both supported.
max length 5000
aspect_ratio string Aspect ratio of the output image. Optional, defaults to `auto`. - `auto`: the prompt rewriter chooses a ratio based on the content; when `expand_prompt` is `false`, `auto` uses `1:1` - Output sizes for each ratio and tier are listed in the description above - Do not pass together with `width`/`height`
one of: "auto", "1:1", "5:4", "4:3", "3:2", "16:9", "21:9", "4:5", "3:4", "2:3", "9:16"
resolution string Output size tier. Optional, default `2K`; case-insensitive. - `1K`: about 1 MP - `2K`: about 4 MP - `4K`: about 16 MP, the officially recommended quality tier - Each image is billed by this tier - Do not pass together with `width`/`height`; with a custom size, billing follows its total pixels
one of: "1K", "2K", "4K" · default "2K"
seed integer Random seed, 0–2147483647. Optional; a random seed is used when omitted, and the actual seed is returned with the result. With prompt expansion on, the rewritten prompt differs each time, so results are only reproducible when `expand_prompt` is `false`.
min 0 · max 2147483647
expand_prompt boolean Whether to rewrite the prompt into a detailed English description before generating. Optional. Prompt expansion is on by default; we recommend keeping it on for better image quality. - `true` (default, recommended): the prompt is rewritten into a detailed English description; with `aspect_ratio: auto`, the rewriter also chooses the ratio - `false`: the prompt is used as-is
default true
output_format string Output image format. Optional, default `png`. JPEG uses quality 95 and is much smaller; 4K PNG files are very large, so use JPEG when you need smaller files.
one of: "png", "jpeg" · default "png"
width integer Custom output width in pixels, 1–8192. Optional. **`width` and `height` must be set together** (if one is set, the other is required). When they are set, **do not pass `resolution` or `aspect_ratio`** — this combination is not accepted. - Total pixels (width × height) must be between 655,360 and 20,000,000, and width : height between 1:3 and 3:1 - The output is exactly this size - Billing tier by total pixels: up to 1,200,000 → `1K`, up to 4,500,000 → `2K`, above → `4K` (e.g. 1920 × 1080 → `2K`,
min 1 · max 8192
height integer Custom output height in pixels, 1–8192. Optional, but must be set together with `width`. See `width` for limits, priority and billing.
min 1 · max 8192

What you get back

Files arrive in output.files[] as private links that expire, with their type and size.

Use it from your code

# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
  -H "Authorization: Bearer $NEXUS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "model": "minimax-h3-text-to-image",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "aspect_ratio": "auto",
        "resolution": "2K",
        "expand_prompt": true,
        "output_format": "png"
    },
    "callback_url": "https://your-app.com/webhooks/nexus"
}'

# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests

API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}

task = requests.post(
    f"{API}/tasks",
    headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
    json={
        "model": "minimax-h3-text-to-image",
        "input": {
            "prompt": "A cinematic shot of a lighthouse at dawn",
            "aspect_ratio": "auto",
            "resolution": "2K",
            "expand_prompt": True,
            "output_format": "png",
        },
        "callback_url": "https://your-app.com/webhooks/nexus",
    },
).json()

while task["status"] not in ("succeeded", "failed", "cancelled"):
    time.sleep(3)
    task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()

print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
  "Content-Type": "application/json",
};

let task = await fetch(`${API}/tasks`, {
  method: "POST",
  headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify({
      "model": "minimax-h3-text-to-image",
      "input": {
          "prompt": "A cinematic shot of a lighthouse at dawn",
          "aspect_ratio": "auto",
          "resolution": "2K",
          "expand_prompt": true,
          "output_format": "png"
      },
      "callback_url": "https://your-app.com/webhooks/nexus"
  }),
}).then((r) => r.json());

while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
  await new Promise((r) => setTimeout(r, 3000));
  task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);

Request

{
    "model": "minimax-h3-text-to-image",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "aspect_ratio": "auto",
        "resolution": "2K",
        "expand_prompt": true,
        "output_format": "png"
    }
}

Response

{
    "id": "6f1c…",
    "object": "task",
    "model": "minimax-h3-text-to-image",
    "status": "succeeded",
    "output": {
        "files": [
            {
                "url": "https://…signed…",
                "mime": "…",
                "size": 0
            }
        ]
    },
    "estimated_cost": "…",
    "charged": "…"
}