MiniMax Image 01

Usage-based pricing
ae_minimax_image_01

Generate one or more images from a text description with your chosen aspect ratio.

Image
Usage-based pricing

Pricing

The charge per call is (max(12 × successfully generated image count, 0)) AE credits. All applicable conditions are combined to calculate the total.

Aspect ratio and automatic prompt optimization options do not have separate price tiers.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.promptstringYesText prompt for image generation (max 1500 characters)—
request_body.num_imagesintegerNoNumber of images to generate (1-9)1
request_body.aspect_ratioenum (1:1 | 16:9 | 4:3 | 3:2 | 2:3 | 3:4 | 9:16 | 21:9)NoAspect ratio of the generated image1:1
request_body.prompt_optimizerbooleanNoWhether to enable automatic prompt optimizationfalse

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit first, then query with the returned task_id until the task completes.

Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_minimax_image_01' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "aspect_ratio": "3:4",
      "num_images": 1,
      "prompt": "a red apple on a clean white table, product photo, soft studio light"
    }
  }
}'
Response exampleresponse.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "97d665b7-0b5d-4e7e-bba1-ed50a925fce1"
}