Wan 27 Image Pro Text To Image

Usage-based pricing
ae_wan_27_image_pro_text_to_image

Create up to five images from an English or Chinese text prompt, with options for size and details to avoid.

Image
Usage-based pricing

Pricing

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

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNoRandom seed for reproducibility (0-2147483647).—
request_body.promptstringYesText prompt describing the desired output. Supports Chinese and English.—
request_body.image_sizeobject | stringNoOutput image size.square_hd
request_body.image_size.widthintegerNoThe width of the generated image.512
request_body.image_size.heightintegerNoThe height of the generated image.512
request_body.max_imagesintegerNoMaximum number of images to generate (1-5).1
request_body.negative_promptstring | unknownNoContent to avoid in the generated image. Max 500 characters.""
request_body.enable_safety_checkerbooleanNoEnable content moderation for input and output.true

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_wan_27_image_pro_text_to_image' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_size": "square_hd",
      "max_images": 1,
      "negative_prompt": "文字,水印,logo,畸形,多只动物,过度锐化,低分辨率",
      "prompt": "秋日午后,一只橘猫蜷在木质窗台上打盹,窗外是金黄的银杏叶,柔和逆光洒进室内,空气里有细小浮尘,浅景深,胶片质感,写实摄影,暖色调,毛发细节细腻,构图安静治愈"
    }
  }
}'
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": "b83f6efc-61e5-4fc3-a2ac-dfcd66ee2ddb"
}

Guides using this tool

See how this tool fits into real workflows