Bytedance Seedream 5.0 Flash Image Generate

32.4 credits/call
ae_bytedance_seedream_5_0_flash_image_generate

Seedream 5.0 Flash text to image. Use when a prompt should produce a new image.

Image
32.4 credits/call

Pricing

32.4 credits/call
ConditionCharge
Each call32.4 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.promptstringYesThe positive prompt for the generation.—
request_body.resolutionenum (1k | 1.5k | 2k)NoThe 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)NoThe aspect ratio of the generated image. Defaults to 1:1.1:1
request_body.output_formatenum (jpeg | png)NoThe format of the output image.jpeg

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit first, then query with the returned task_id until the task completes.

Request coderequest.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 exampleresponse.json
JSONPartial content
{
  "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"
}

This example shows part of the response. Copied content is valid JSON.