Skip to Content
Image ModelsSeedream 5.0 Flash

Seedream 5.0 Flash

Overview

Seedream 5.0 Flash is ByteDance’s fast and cost-efficient AI image model in the Seedream 5.0 family. It supports high-quality image generation, precise image editing, multi-reference inputs, and layer decomposition, making it ideal for fast, scalable creative workflows.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwithapi.online/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesImage generation or editing instructions. The Web interface supports up to 4000 characters.
image_urlsarrayConditionalProvide 1–10 image URLs for image-to-image; omit for text-to-image. Supported formats: JPEG, PNG, WEBP. Maximum file size: 30MB per image.
model_idstringYes0-94 for both text-to-image and image-to-image. Providing images automatically selects image-to-image.
optionsobjectNoConfiguration options. Omitted options use the defaults below.
options.prompt_optimizationbooleanNoTranslate the prompt into English when true. API default: false; the Web interface defaults to true.
options.aspect_ratiostringNoDefault: '1:1'. Valid values: '1:1', '4:3', '3:4', '16:9', '9:16', '2:3', '3:2', '21:9'.
options.resolutionstringNoDefault: '1K'. Valid values: '1K', '1.5K', '2K'.

Output format defaults to PNG. The API generates one image per task; the Web interface can request 1–4 outputs.

Example Request - Text-to-Image

{ "prompt": "a ceramic coffee cup on a wooden table in soft morning light", "model_id": "0-94", "options": { "prompt_optimization": false, "aspect_ratio": "16:9", "resolution": "1K" } }

Example Request - Image-to-Image

{ "prompt": "combine these references into a cohesive product campaign image", "image_urls": [ "https://cdn.pixwithapi.online/example-1.jpg", "https://cdn.pixwithapi.online/example-2.png" ], "model_id": "0-94", "options": { "prompt_optimization": false, "aspect_ratio": "1:1", "resolution": "2K" } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess or failure message
dataobjectTask information
data.task_idstringTask identifier used to query results
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 60 } }

After creation, use the returned task_id with Get Task Results to check the task status and retrieve the generated image.

Last updated on