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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
seed | integer | 否 | Random seed for reproducibility (0-2147483647). | — |
prompt | string | 是 | Text prompt describing the desired output. Supports Chinese and English. | — |
image_size | object | string | 否 | Output image size. | square_hd |
max_images | integer | 否 | Maximum number of images to generate (1-5). | 1 |
negative_prompt | string | 否 | Content to avoid in the generated image. Max 500 characters. | — |
enable_safety_checker | boolean | 否 | Enable content moderation for input and output. | true |
