bytedance/seedream/v4/editGeneration type:
image_to_imageEndpoint:
POST /api/asset_generator/
Pricing
0.5 credits per output. 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 ininput_params.
The text prompt describing how to edit the image. Max 5000 characters.Minimum characters:
1.
Maximum characters: 5000.Random seed for reproducibility. If None, a random seed is chosen.Minimum:
-1.
Maximum: 2147483647.List of URLs of input images for editing. Presently, up to 10 image inputs are allowed. If over 10 images are sent, only the last 10 will be used.Minimum items:
1.
Maximum items: 10.The size of the generated image. Width and height must be between 384 and 5000 pixels.Allowed values:
"1:1", "4:3", "16:9", "3:4", "9:16".Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "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.
