FLUX Pro Kontext Max Text To Image

96积分/次起
ae_flux_pro_kontext_max_text_to_image

根据文本提示最多生成四张高质量图片,支持控制宽高比、格式、提示词增强和可复现结果。

图像
96积分/次起

价格说明

96积分/次起
条件费用
每张图片96积分/张

按请求的图片数量计费。

图片数量未填写时按1张计费。

API 调用

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

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_flux_pro_kontext_max_text_to_image' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture."
    }
  }
}'
请求方式
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.seedinteger | unknown否 The same seed and the same prompt given to the same version of the model will output the same image every time. —
request_body.promptstring是The prompt to generate an image from.—
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否The number of images to generate.1
request_body.aspect_ratioenum (21:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 | 3:4 | 9:16 | 9:21)否The aspect ratio of the generated image.1:1
request_body.output_formatenum (jpeg | png)否The format of the generated image.jpeg
request_body.enhance_promptboolean否Whether to enhance the prompt for better results.false
request_body.guidance_scalenumber否 The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. 3.5
request_body.safety_toleranceenum (1 | 2 | 3 | 4 | 5 | 6)否The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.2