Felo API PlatformFelo API Platform
Back to models

ByteDance Seed: Seedream 5.0 Flash API

ByteDance Seed's Seedream 5.0 Flash is a fast, cost-efficient image generation and editing model with precise interactive controls, layer decomposition, and native multilingual text rendering.

ByteDance Seed: Seedream 5.0 Flash is an image generation and editing model from the Seedream 5.0 series. It accepts text and image inputs, including up to 10 multi-reference images for composition, and produces image outputs. The model is built for speed and cost efficiency, making it suitable for latency- and cost-sensitive workloads. It supports precise interactive editing: users can circle, scribble, box, or point-and-drag to mark regions, and only those marked areas are modified while edits merge naturally back into the original scene.

The model renders native multilingual text directly in images and can decompose finished images into up to 16 separately editable layers, including subject, background, text, and decorative elements. Each layer is returned as a PNG with transparency, along with position, stacking order, and a content description. Output resolution ranges from 1K to 2K; inputs above 2K return 2K, or auto mode matches the input resolution.

Seedream 5.0 Flash is suited to tasks that demand speed and volume, such as advertising banner creation with multiple versions, e-commerce product catalogs with high-volume product images and variants, virtual try-on with precise edits to clothing or accessories, editorial and print publishing with rapid design iteration, app and UI mockup design, rapid iteration on game art, high-volume variant generation, and fast drafts or visual exploration before finalizing.

Updated:

MODEL ID

seedream-5-0-flash
Input
text / image
Output
image

Highlights

  • Fast image generation for high-volume workloads
  • Cost-efficient for latency-sensitive tasks
  • Precise interactive editing with marked regions
  • Up to 16 editable layers per image
  • Native multilingual text rendering
  • Up to 10 multi-reference input images

Providers

1 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$0$0.018

Quick Start

Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).

POST https://openapi.felo.ai/api/v1/images/generations

1Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"

2Make your first request

Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
  "model": "seedream-5-0-flash"
}'

3Poll the task

Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.

python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen

task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800

while task["status"] in ("queued", "running"):
    if time.monotonic() >= deadline:
        raise TimeoutError(f"Keep task_id={task_id} to resume polling")
    time.sleep(3)
    with urlopen(Request(url, headers=headers), timeout=60) as response:
        task = json.load(response)
    if task.get("task_id") != task_id or task.get("kind") != "image":
        raise ValueError("Unexpected task response")
    print(task["status"])

if task["status"] != "succeeded":
    raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
    raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY

4Download the output

After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.

python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen

task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
    raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}

for index, output in enumerate(task["outputs"], 1):
    item = output if isinstance(output, dict) else {}
    url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
    mime = item.get("media_type") or "image/png"
    if url and url.startswith("https://"):
        with urlopen(url, timeout=60) as response:
            data = response.read()
            mime = response.headers.get_content_type()
    elif url and url.startswith("data:image/") and ";base64," in url:
        header, encoded = url.split(",", 1)
        mime = header[5:].split(";", 1)[0]
        data = base64.b64decode(encoded, validate=True)
    elif item.get("b64_json"):
        data = base64.b64decode(item["b64_json"], validate=True)
    else:
        raise ValueError("Unrecognized image output")
    path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
    path.write_bytes(data)
    print(path)
PY
input_references

For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
  "model": "seedream-5-0-flash",
  "input_references": [
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/product.png"
      }
    }
  ]
}'

Supported parameters

  • n
  • seed
  • resolution
  • aspect_ratio
  • input_references

Prefer the full reference?

API reference →

Frequently asked questions

What is ByteDance Seed: Seedream 5.0 Flash?

ByteDance Seed: Seedream 5.0 Flash is an image generation and editing model from the Seedream 5.0 series. It accepts text and image inputs, including up to 10 multi-reference images for composition, and produces image outputs. The model is built for speed and cost efficiency, making it suitable for latency- and cost-sensitive workloads. It supports precise interactive editing: users can circle, scribble, box, or point-and-drag to mark regions, and only those marked areas are modified while edits merge naturally back into the original scene. The model renders native multilingual text directly in images and can decompose finished images into up to 16 separately editable layers, including subject, background, text, and decorative elements. Each layer is returned as a PNG with transparency, along with position, stacking order, and a content description. Output resolution ranges from 1K to 2K; inputs above 2K return 2K, or auto mode matches the input resolution. Seedream 5.0 Flash is suited to tasks that demand speed and volume, such as advertising banner creation with multiple versions, e-commerce product catalogs with high-volume product images and variants, virtual try-on with precise edits to clothing or accessories, editorial and print publishing with rapid design iteration, app and UI mockup design, rapid iteration on game art, high-volume variant generation, and fast drafts or visual exploration before finalizing.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

What inputs does Seedream 5.0 Flash support?

It accepts text prompts and image inputs, including up to 10 multi-reference images for composition.

What kind of editing can I do with this model?

You can circle, scribble, box, or point-and-drag to mark specific regions; only the marked areas are modified and edits merge naturally into the original scene.

Can Seedream 5.0 Flash render text in multiple languages?

Yes, it renders native multilingual text directly in images rather than approximating it.

How many layers can a finished image be decomposed into?

Finished images can be decomposed into up to 16 separately editable layers, including subject, background, text, and decorative elements.

What output resolution does it support?

Output resolution ranges from 1K to 2K; inputs above 2K return 2K, or auto mode matches the input resolution.

How does it differ from Seedream 5.0 Pro?

Seedream 5.0 Pro prioritizes image quality, while Seedream 5.0 Flash prioritizes speed and cost. Flash shares interactive editing and layer decomposition capabilities with Pro.

Related models