Amux AI

Create task

Last updated November 23, 2026

Submit asynchronous minimax/minimax-h3-image-highspeed tasks via /v1/tasks for both image generation and image editing.

Submit an asynchronous minimax/minimax-h3-image-highspeed task to /v1/tasks. Returns a task id immediately while generation executes in the background—recommended for 4K or batch workloads alongside Idempotency-Key protection.

This endpoint unifies image generation and image editing: omit reference images for text-to-image, or include reference images for image editing using the same parameter set. The parameter table below shows application/json (using images: [{ "image_url": "..." }] with public HTTPS URLs or base64 data URLs); you may also upload local files via multipart/form-data (image / image[]), though the two input forms cannot be combined in the same request.

POSThttps://gateway.amux.ai/v1/tasks

Authorization

header
AuthorizationstringRequired

Bearer <your Amux AI key> Amux AI API key.

Request

application/json
modelstringRequired

Platform model ID. Append :provider to pin a specific provider.

promptstringRequired

Text-to-image prompt or image editing instructions (up to 32,000 characters).

imagesarray<object>

Optional reference images (1–16 items). Omit for text-to-image; include for image editing. Each item takes a public HTTPS URL or base64 data URL. Alternatively, upload files via multipart/form-data (image / image[]), but do not combine both.

›imagesarray<object>
image_urlstringRequired

Public HTTPS URL or base64 data URL of the reference image.

nintegerDefault 1

Number of images to generate (1–10, default 1).

sizestring

Exact pixel dimensions or "auto" (655,360–20,000,000 pixels, aspect ratio 1:3–3:1). Cannot be combined with aspect_ratio, area, or image_size.

aspect_ratiostring

Output aspect ratio: "auto" or "X:Y" with integers 1–300 and ratio 1:3–3:1.

area"1K" | "2K" | "4K"Default "4K"

Resolution area tier (1K / 2K / 4K, default 4K); equivalent to image_size.

image_size"1K" | "2K" | "4K"Default "4K"

Cross-model alias for area (1K / 2K / 4K, default 4K).

output_format"jpeg" | "jpg" | "png" | "webp"Default "jpeg"

Output image format: jpeg (default), png, or webp.

disable_prompt_enhancedbooleanDefault false

Disable prompt enhancement (text-to-image only, default false). Passing true on an edit task returns 400; on text-to-image it requires an explicit size or fixed aspect_ratio.

prompt_extendbooleanDefault true

Cross-model alias for prompt enhancement (disabling is supported for text-to-image only, default true).

aigc_watermarkbooleanDefault false

Add an AIGC watermark to generated images (default false).

watermarkbooleanDefault false

Cross-model alias for aigc_watermark (default false).

webhook_urlstring

Public HTTPS webhook callback URL invoked when the task reaches a terminal state; validated at submission.

Response

200response

Task already reached a terminal state within Prefer: wait or matched an Idempotency-Key replay.

202response

Task accepted and pre-authorization hold placed. Retrieve results using id.

400response

Invalid request parameters (including unsupported stream or partial_images).

402response

Insufficient workspace balance to cover the pre-authorization hold.

503response

Concurrent task queue full; retry after the Retry-After interval.

Retrieving results

MethodHow to callBest for
PollingGET /v1/tasks/{id}Simple integration; poll every 2–5 seconds
Webhook callbackPass webhook_url on submissionEvent-driven server workflows without open connections
Synchronous waitSend header Prefer: wait=60Wait inline within a single request window (returns 202 if still running)

For full task lifecycle details, webhook signature verification, and Idempotency-Key replay semantics, see Create task.

Comparison with synchronous endpoints

Aspect/v1/images/generations & /v1/images/edits/v1/tasks
Generation & editingTwo separate endpointsSingle unified endpoint based on presence of reference images
Delivery modeSynchronous blocking waitAsync task ID + webhook callback + optional Prefer: wait
IdempotencyNo Idempotency-Key supportSupports Idempotency-Key to avoid duplicate charges on client retries

Key parameter constraints

  • Default resolution: Defaults to 4K when neither size nor area / image_size is set; explicitly specify area: "1K" or "2K" for previews.
  • Mutually exclusive dimensions: Explicit pixel size (655,360–20,000,000 pixels, aspect ratio 1:3–3:1) cannot be combined with aspect_ratio, area, or image_size.
  • Prompt enhancement: Text-to-image tasks may pass disable_prompt_enhanced: true (or prompt_extend: false) when paired with an explicit size or fixed aspect_ratio; edit tasks reject disabling prompt enhancement with 400.
  • No streaming: Neither /v1/tasks nor this model supports stream or partial_images.

Errors

Error responses follow the OpenAI error schema. See Errors and retries for type values and retry semantics.

cURL
curl https://gateway.amux.ai/v1/tasks \
  -H "Authorization: Bearer $AMUX_API_KEY" \
  -d '{
    "model": "minimax/minimax-h3-image-highspeed",
    "prompt": "A cinematic wide shot of a snowy pine forest at golden hour, warm sunbeams filtering through mist",
    "aspect_ratio": "16:9",
    "area": "2K",
    "webhook_url": "https://hooks.example.com/amux"
  }'
{
  "id": "task_01M8H3IMGHS000000000000001",
  "status": "queued",
  "model": "minimax/minimax-h3-image-highspeed",
  "created_at": "2026-11-23T08:00:00Z",
  "output": {
    "images": [
      {
        "index": 0,
        "url": "https://cdn.amux.ai/gen/20261123/task_01M8H3IMGHS000000000000001-0.jpg"
      }
    ],
    "videos": [
      {}
    ]
  },
  "usage": {
    "input_tokens": 3500,
    "output_tokens": 4080,
    "total_tokens": 7580
  },
  "cost": "0.039058",
  "notes": [
    "dropped seed: MiniMax H3 Image does not support seed"
  ],
  "error": {
    "message": "<string>",
    "code": "<string>"
  }
}