ByteDance Seedream 5.0 Flash image editing via Fal.AI. Fast, low-cost editing and multi-reference composition from up to 10 input images (referenced as Figure 1, Figure 2, ...), at 1K-2K output.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "bytedance/seedream/v5/flash/edit",
"input": {
"prompt": "Replace the product in Figure 1 with that in Figure 2. Seamlessly render the logo in Figure 3 into the product design, in a frosted glass texture.",
"image_urls": [
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_1.png",
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_2.png",
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_3.png"
],
"image_size": "auto_2K",
"output_format": "jpeg"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | The text prompt used to edit the image. Refer to inputs as Figure 1, Figure 2, ... |
image_urls | array | Yes | - | Input reference images (up to 10; if more are sent, only the last 10 are used). |
image_size | string | No | auto_2K | Output size preset. auto_1K / auto_2K pick the aspect ratio automatically; total pixels are between 1024x1024 and 2048x2048. Same price for every size. auto_2Kauto_1Ksquare_hdportrait_4_3portrait_16_9landscape_4_3landscape_16_9 |
num_images | integer | No | 1 | Number of separate generations to run, one image each (1-6). Charged per image. |
output_format | string | No | jpeg | The file format of the generated image. jpegpng |
enable_safety_checker | boolean | No | true | If set to true, the safety checker will be enabled. |
There are 3 ways to provide files for the image_urls parameter:
Pass a publicly accessible URL directly. With the Storage API (POST /v1/files/upload-url) the file uploads straight to S3 (50MB per file) and you pass the returned file_url.
{
"model": "bytedance/seedream/v5/flash/edit",
"input": {
"prompt": "your prompt here",
"image_urls": ["https://example.com/image.jpg"]
}
}Attach files directly to POST /v1/predictions/upload. No separate upload step, but the bytes pass through the API server so the whole request is capped at 10MB.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=bytedance/seedream/v5/flash/edit" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image_urls=@your_file.png"Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Replace a product and render a logo onto it from three references.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "bytedance/seedream/v5/flash/edit",
"input": {
"prompt": "Replace the product in Figure 1 with that in Figure 2. Seamlessly render the logo in Figure 3 into the product design, in a frosted glass texture.",
"image_urls": [
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_1.png",
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_2.png",
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_3.png"
],
"image_size": "auto_2K",
"output_format": "jpeg"
}
}'Place the subject of a single photo on a new background, two variations.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "bytedance/seedream/v5/flash/edit",
"input": {
"prompt": "Place the product from Figure 1 on a sunlit marble kitchen counter with soft morning light",
"image_urls": [
"https://storage.googleapis.com/falserverless/example_inputs/seedreamv45/seedream_v45_edit_input_2.png"
],
"num_images": 2
}
}'POST /v1/predictions