Phota

108积分/次起
ae_phota

根据文本提示创建最多四张写实图片,可选用个人资料参考图、画幅、高分辨率和文件格式。

图像
108积分/次起

价格说明

108积分/次起
分辨率费用
1K / 未指定108积分/张
4K216积分/张

图片数量未填写时按1张计费。 起价对应分辨率:1K。

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.promptstring是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_modeboolean否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_imagesinteger否Number of images to generate.1
request_body.resolutionenum (1K | 4K)否Resolution of the generated image.1K
request_body.aspect_ratioenum (auto | 1:1 | 16:9 | 4:3 | 3:4 | 9:16)否Aspect ratio of the generated image.auto
request_body.output_formatenum (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
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"
}