Bytedance Seedream 5.0 Flash Image Generate

32.4积分/次
ae_bytedance_seedream_5_0_flash_image_generate

Seedream 5.0 Flash 文生图。

图像
32.4积分/次

价格说明

32.4积分/次
条件费用
每次调用32.4积分/次

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.promptstring是The positive prompt for the generation.—
request_body.resolutionenum (1k | 1.5k | 2k)否The output resolution tier. All tiers are billed at the same price.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)否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_bytedance_seedream_5_0_flash_image_generate' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "aspect_ratio": "9:16",
      "output_format": "jpeg",
      "prompt": "一位60至75岁清瘦仙风道骨的老年东方男性道长,椭圆清瘦长脸、颧骨略突、太阳穴略凹;灰白长眉,细长丹凤眼、眼窝略深,直挺鼻梁,法令纹深;全白长发在头顶束成发髻并插一根树枝状深色木簪,余发自然披散至腰后;纯白胡须分为八字髭、山羊须与一缕垂至胸前约二十厘米的长髯;身穿深藏青色交领右衽大袖道袍(哑光棉麻质感、衣长及踝),腰系深灰色布带垂至膝下,脚穿黑色圆口布鞋;仙风道骨、神情沉静淡然;3D写实CG真人质感,电影级光影,皮肤纹理与衣料褶皱细腻,超高清;场景:中国古寺外,他双手合十立于汉白玉石阶上,暖光笼罩,神情祥和安宁;背景红墙古柏,黄昏暖色调;竖版9:16构图,电影感打光,画面干净无任何文字",
      "resolution": "1.5k"
    }
  }
}'
返回示例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": "7cab9e31-03fd-496c-b9e2-2c15a227fd89"
}

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