Luma Photon

22.80积分/百万像素
ae_luma_photon

根据文本提示词,按所选宽高比生成图像。

图像
22.80积分/百万像素

价格说明

按图片生成的实际像素处理量收费,每百万像素22.80积分。更大的图片尺寸会增加费用。

22.80积分/百万像素

API 调用

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

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_luma_photon' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "A teddy bear in sunglasses playing electric guitar and dancing"
    }
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.promptstring是暂无参数说明。—
request_body.aspect_ratioenum (16:9 | 9:16 | 1:1 | 4:3 | 3:4 | 21:9 | 9:21)否The aspect ratio of the generated video1:1