Phota
108积分/次起
ae_phota
根据文本提示创建最多四张写实图片,可选用个人资料参考图、画幅、高分辨率和文件格式。
108积分/次起
价格说明
108积分/次起
| 分辨率 | 费用 |
|---|---|
| 1K / 未指定 | 108积分/张 |
| 4K | 216积分/张 |
图片数量未填写时按1张计费。 起价对应分辨率:1K。
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
request_body | object | 是 | 暂无参数说明。 | — |
request_body.prompt | string | 是 | Text description of the desired image. In case you wish to use specific profiles, refer to them as [[profile_id_1]], [[profile_id_2]], etc. | — |
request_body.sync_mode | boolean | 否 | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | false |
request_body.num_images | integer | 否 | Number of images to generate. | 1 |
request_body.resolution | enum (1K | 4K) | 否 | Resolution of the generated image. | 1K |
request_body.aspect_ratio | enum (auto | 1:1 | 16:9 | 4:3 | 3:4 | 9:16) | 否 | Aspect ratio of the generated image. | auto |
request_body.output_format | enum (jpeg | png | webp) | 否 | The format of the generated image. | jpeg |
调用示例
提交任务并查询完成结果
POST
/agent-api/v1/tool/executeX-Api-Key先提交任务,再用返回的 task_id 查询,直至完成。
请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_phota' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"aspect_ratio": "3:4",
"num_images": 1,
"output_format": "jpeg",
"prompt": "Cinematic photorealistic portrait of a young East Asian woman, mid-twenties, black sleeveless evening dress, dark hair in a low bun, minimal jewelry, standing on a night city street with wet asphalt reflections, warm red and amber neon bokeh behind her, 35mm film look, shallow depth of field",
"resolution": "1K"
}
}
}'返回示例response.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "8050bd30-0747-4ecf-83bb-15e3ec425ffb"
}





