Ae · Wan · 27 · Image · Pro · Text · To · Image

10.00积分/次
ae_wan_27_image_pro_text_to_image

根据英文或中文文本提示创建最多五张图片,可设置尺寸和需避免的内容。

图像
10.00积分/次

价格说明

10.00积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://api.agentearth.ai/v1/tools/run' \
  --header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "tool": "ae_wan_27_image_pro_text_to_image",
  "input": {
    "seed": "xxx",
    "prompt": "xxx",
    "image_size": "square_hd",
    "max_images": "1",
    "negative_prompt": "xxx",
    "enable_safety_checker": "true"
  }
}'
请求方式
POST
接口地址
/v1/tools/run
鉴权方式
Bearer Token
超时时间
60 秒
当前版本
—
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
seedinteger否Random seed for reproducibility (0-2147483647).—
promptstring是Text prompt describing the desired output. Supports Chinese and English.—
image_sizeobject | string否Output image size.square_hd
max_imagesinteger否Maximum number of images to generate (1-5).1
negative_promptstring否Content to avoid in the generated image. Max 500 characters.—
enable_safety_checkerboolean否Enable content moderation for input and output.true