Blackforestlabs FLUX 3 Image Generate

12积分/次起
ae_blackforestlabs_flux_3_image_generate

FLUX 3 Klein Distilled 文生图。

图像
12积分/次起

价格说明

12积分/次起
条件费用
1K12积分/次
1.5K24积分/次
2K48积分/次

按所选档位及计费规则收费。

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.seedinteger否The random seed to use for the generation. -1 means a random seed will be used.—
request_body.promptstring是The positive prompt for the generation. A full scene caption (framing, subject, background, lighting) works best.—
request_body.resolutionenum (1k | 1.5k | 2k)否Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.4 megapixels) or 2k (~4 megapixels).1k
request_body.aspect_ratioenum (1:1 | 1:2 | 2:1 | 1:3 | 3:1 | 2:3 | 3:2 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | 16:9 | 9:21 | 21:9)否The aspect ratio of the generated image. Defaults to 1:1.1:1
request_body.output_formatenum (jpeg | png | webp)否The format of the output 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_blackforestlabs_flux_3_image_generate' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "aspect_ratio": "1:1",
      "output_format": "png",
      "prompt": "Seamless tileable texture of polished dark walnut wood, straight grain with subtle knots, satin varnish finish, top-down flat orthographic photograph, even lighting, no seams, no text, high detail wood grain",
      "resolution": "1k",
      "seed": 202622
    }
  }
}'
返回示例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": "80adfba2-d526-48ba-b76d-bd2eefea05ec"
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。