Fast image generation and edits ● Available

Doubao Seedream 5.0 Flash API

Generate one 1K or 2K image with Doubao Seedream 5.0 Flash from text or reference inputs.

Billed per output at the selected rate

Public model ID
doubao-seedream-5.0-flash
Output tiers
1K / 2K
Billing
Per output and resolution
Generation endpoint
POST /v1/images/generations

How can I compare two product compositions?

Keep the reference image and output size fixed. Submit each composition separately and save the image with its prompt to review framing and subject consistency.

POST /v1/images/generationsdata[0].url

Integration scenarios

  • Product hero: test backdrop and engraving at 1K before committing to a 2K render.

    Request example

    POST https://api.rokoapi.com/v1/images/generations

    {
      "model": "doubao-seedream-5.0-flash",
      "size": "1K",
      "n": 1,
      "response_format": "url",
      "prompt": "Studio photograph of a cobalt desk clock on pale stone. Engrave Roko API on its base."
    }
  • Portrait: specify framing, light and the object held in frame. Generate one image per request.

    Request example

    POST https://api.rokoapi.com/v1/images/generations

    {
      "model": "doubao-seedream-5.0-flash",
      "size": "1K",
      "n": 1,
      "response_format": "url",
      "prompt": "Portrait of a fictional adult ceramicist holding an ivory tile reading Roko API, natural window light."
    }
  • Typography poster: quote the exact headline and proofread the downloaded image.

    Request example

    POST https://api.rokoapi.com/v1/images/generations

    {
      "model": "doubao-seedream-5.0-flash",
      "size": "1K",
      "n": 1,
      "response_format": "url",
      "prompt": "Geometric sunrise poster with the sole headline Roko API in large blue type."
    }
  • Reference edit: specify what must stay in an authorized source image and test one output first.

    Request example

    POST https://api.rokoapi.com/v1/images/generations

    {
      "model": "doubao-seedream-5.0-flash",
      "size": "1K",
      "n": 1,
      "response_format": "url",
      "image": [
        "https://rokoapi.com/media/models/doubao-seedream-5.0-flash/cobalt-desk-clock.webp"
      ],
      "prompt": "Replace the pale stone backdrop with warm walnut. Preserve the clock, angle, and readable Roko API engraving."
    }
  • Blend two references: use the first to define the product and the second to guide the paper-cut style. Check which details survive from each source.

    Request example

    POST https://api.rokoapi.com/v1/images/generations

    {
      "model": "doubao-seedream-5.0-flash",
      "size": "1K",
      "n": 1,
      "response_format": "url",
      "image": [
        "https://rokoapi.com/media/models/doubao-seedream-5.0-flash/cobalt-desk-clock.webp",
        "https://rokoapi.com/media/models/doubao-seedream-5.0-flash/paper-cut-tram.webp"
      ],
      "prompt": "Create a paper-cut shop window using the first image as the product reference and the second for its layered paper style. Show the blue clock with the exact text Roko API."
    }

Request parameters

Common parameters
FieldDetails
string · RequiredUse this public model ID.
doubao-seedream-5.0-flash
string · RequiredDescribe the subject, scene and desired changes.
string · OptionalResolution tier. Read the pixel dimensions from the returned image.
1K · 2K
Affects cost
integer · OptionalRequest one image per call. The examples use n=1.
Advanced parameters
FieldDetails
string | array · OptionalReference images must be reachable by the provider.
≤ 10
image-to-image · reference-to-image
string · OptionalSelect a URL or Base64 payload.
url · b64_json

Generated examples

What is Doubao Seedream 5.0 Flash?

See the catalog rates and parameters above. Submit one request per image in a batch.

The Volcengine Ark model page lists the Flash version as doubao-seedream-5-0-flash-260915: text, single-image, and multi-reference input; precise editing, layer splitting, and transparent-background output; and a single image per request.

Roko currently exposes 1K and 2K output tiers and up to 10 reference images. Flash is the project's cost floor for rapid drafts and smaller assets. The official limit is one generated image per request, so batch workloads should loop individual calls. For 4K output, compare 5.0 Lite, 4.5, and 5.0 Pro.

Core capabilities

Text to image and precise editing

Generate from a text prompt in Chinese or English, or apply precise edits and restyling to a reference image.

Multi-reference fusion

Blend subjects, outfits, or styles from several reference images into one new picture — up to 10 references in the current Roko form.

Transparent background and layer splitting

The official model page explicitly lists transparent-background output and layer splitting. Roko's public form has no dedicated controls for them yet, so the invocation details follow request validation and the actual response.

Family price floor

See the catalog rates and parameters above. Submit one request per image in a batch.

Doubao Seedream 5.0 Flash API pricing

Pricing is generated from the current Roko model catalog. The total is outputs multiplied by the selected resolution rate; confirm the estimate before submission.

Billed per output at the selected rate

Resolution: 1k
$0.02 / output image
Resolution: 2k
$0.024 / output image
Example: 1 separate image outputs · Resolution: 1k
$0.02
Example: 10 separate image outputs · Resolution: 1k
$0.20
Final charges depend on the actual request and settlement.

Call Seedream 5.0 Flash with Roko API

Call the synchronous image-generation endpoint; a successful response returns an image URL. Never expose an API key in client-side code.

Submit a generation request

curl https://api.rokoapi.com/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-seedream-5.0-flash",
  "prompt": "Minimal desk workspace from above, laptop, coffee, and notebook, soft natural light",
  "size": "1K",
  "response_format": "url"
}'

Read the result from data[].url in the generation response. Result URLs expire, so download promptly; use backoff for timeouts, rate limits, and failed responses.

Common use cases

Batch concept drafts

Screen prompt directions at the lowest per-image cost, then re-run finals on a higher tier.

Three composition options for the same cartoon detective character, flat illustration style, white background.

Social and content assets

Fast production of small-size images for community posts and slide decks.

Morning city skyline silhouette, warm orange gradient sky, landscape 16:9, clean flat style.

Transparent product images

The official page notes Flash generates one image per request; for batch assets, loop per-image calls for better stability.

White wireless earbuds floating on a light gray backdrop, professional product photography, soft shadows, transparent background output.

Editing and background swaps

Apply precise edits to a reference — swap backgrounds, outfits, or elements by stating what stays and what changes.

Keep the product unchanged and replace the background with a plain studio backdrop, soft shadows.

Important limitations

  • Roko currently exposes 1K and 2K tiers only; there is no 4K — use 5.0 Lite (2K/4K) for higher resolutions.
  • The official version is doubao-seedream-5-0-flash-260915, and the official model page explicitly limits Flash to one image per request. Set-generation fields in Roko's catalog are public configuration, but they do not override that official limit; loop per-image calls for batches.
  • Transparent-background output and layer splitting are official model capabilities. Roko's public form has no dedicated controls for them yet, so invocation details follow request validation and the actual response.
  • Text, hands, and fine details can still be wrong — review final assets. Output rights depend on your inputs and applicable terms.

Choosing between Seedream models

For larger outputs, compare the public resolution options of Lite and the other Seedream models.

All models →

Doubao Seedream 5.0 Flash FAQ

What model ID should I use for Seedream 5.0 Flash?

Use the public Roko API model ID doubao-seedream-5.0-flash exactly as shown in the model field. The official version ID is doubao-seedream-5-0-flash-260915.

How much does the Seedream 5.0 Flash API cost?

See the catalog rates and parameters above. Submit one request per image in a batch.

Flash vs Lite — what's the difference?

For larger outputs, compare the public resolution options of Lite and the other Seedream models.

Which resolutions and sizes are supported?

Roko currently exposes 1K and 2K tiers. The size field also accepts explicit pixel dimensions; usable values follow request validation.

Can one request generate multiple images?

No. The official model page explicitly limits Flash to one image per request. Even though Roko's catalog exposes generic fields such as sequential_image_generation, follow the official limit and loop individual calls for batch work.

Does Seedream 5.0 Flash support image editing?

Yes — precise editing is an officially listed capability. Passing reference images switches the task into image-to-image/editing: background swaps, outfit changes, local edits, and multi-image fusion with up to 10 references (the current Roko value).

Can I use transparent background and layer splitting?

They are confirmed official Flash capabilities. Roko's current public form has no dedicated controls for them, so the exact invocation still depends on request validation and the actual response.

How does the API return the image?

Roko currently calls this model through synchronous POST /v1/images/generations. Read the result from data[].url and store it promptly because the URL expires.

Is Flash output quality enough for commercial work?

Flash is the fast, low-cost tier — best for drafts, posts, and batch assets. Brand and print finals are better served by 4.5 or 5.0 Pro, and every final asset deserves human review. Commercial rights depend on your inputs and applicable terms.