Skip to main content
← Seedream Model name: bytedance/seedream/v5/pro/edit
Generation type: image_to_image
Endpoint: POST /api/asset_generator/

Pricing

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

Input parameters

Send these fields in input_params.
string
required
The text prompt describing how to edit the image. Max 5000 characters.Minimum characters: 1. Maximum characters: 5000.
string[]
required
List of URLs of input images for editing. Up to 10 reference images. Per-image limits: aspect ratio (w/h) between 1/16 and 16; width and height > 14px; file size <= 30MB; total pixels (w*h) <= 36,000,000.Minimum items: 1. Maximum items: 10.
integer
Random seed for reproducibility. If None, a random seed is chosen.Minimum: -1. Maximum: 2147483647.
integer
default:1
Number of images to generate. Values from 1 to 4.Minimum: 1. Maximum: 6.
string
default:"2K"
Image resolutionAllowed values: "1K", "2K".
string
default:"1:1"
The size of the generated image.Allowed values: "1:1", "4:3", "16:9", "3:4", "9:16".
string
default:"jpeg"
output format of the image generate taskAllowed values: "jpeg", "png".

Response

The request returns the task with status: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.