Seedream 5.5
A ByteDance Seed image model: images from text, edits and composition from 1–10 images, transparent backgrounds, accurate text including Cyrillic. 1K, 1.5K or 2K, 17 aspect ratios or an exact pixel size; the price per image depends on its size.
Specificații
Ce poate
Descriere
What it does
- Image from text: photos, posters, illustrations. It renders text on the image well, including Cyrillic: put the text in quotes.
- Edits: describe what to change and what to keep, and the model preserves the rest. Composition from 2–10 images: for example, a person from one, a jacket from another, a room from a third.
- Transparent background: background transparent returns a PNG with an alpha channel (stickers, icons, cut-out objects). opaque gives a solid background, auto lets the model decide.
- File format (output_format): png (default) or jpeg. A transparent background works only in PNG.
- One image per request. The model has no seed, negative prompt, mask or quality setting.
Size
Use resolution with aspect_ratio, or size in pixels, not both.
- resolution: 1K, 1.5K or 2K (default 2K).
- aspect_ratio: 1:1, 1:2, 2:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:19.5, 19.5:9, 9:20, 20:9, 9:21, 21:9 or auto (a ratio that suits the prompt). Without aspect_ratio the image is square.
- Actual output sizes: at 1.5K and 2K the long side is 1536 and 2048 pixels (1.5K: 1:1 is 1536×1536, 16:9 is 1536×864, 9:16 is 864×1536; 2K: 1:1 is 2048×2048, 4:3 is 2048×1536, 16:9 is 2048×1152). 1K is about one megapixel: 1:1 is 1024×1024, 16:9 is 1280×720, 4:5 is 860×1074, 21:9 is 1466×630.
- size "widthxheight", for example 2880x1440: from 921,600 to 4,624,220 pixels, aspect ratio from 1:16 to 16:1. The image comes out exactly that size.
Input images
Up to 10 images in JPEG, PNG, WebP, GIF, BMP or TIFF, each up to 30 MB, sides from 15 pixels, aspect ratio from 1:16 to 16:1; as files, data URIs or https links.
How to call
Image from text: POST /v1/images/generations with a JSON body:
{"model": "bytedance/seedream-5.5-16406", "prompt": "A cafe door sign that reads \"OPEN\"", "resolution": "2K", "aspect_ratio": "3:4"}Edits and composition: POST /v1/images/edits as multipart; repeat the image field for each image (up to 10):
curl https://api.neuralbridge.ru/v1/images/edits -H "Authorization: Bearer $API_KEY" -F model=bytedance/seedream-5.5-16406 -F image=@photo.jpg -F resolution=1K -F "prompt=Turn this photo into a watercolor painting"Or /v1/images/generations with an images field: https links or data:image/png;base64,….
Response
data[0].b64_json is the image in base64 (PNG or JPEG); usage holds width, height and the number of input images. Generation takes 10–30 seconds.
Errors
- 400: invalid input; the error text names the field (for example seed, n above 1, 4K, more than 10 images, a transparent background in JPEG, a size below 921,600 pixels). Rejected requests are not billed.
- 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the image was not received; nothing is charged.
Price
The price per finished image depends on its size: up to 2.6 megapixels it is the standard price (all 1K and 1.5K, 2K at 16:9 and 9:16), above that the large image price (2K at 1:1, 4:3, 3:4 and sizes from 2,611,200 pixels). Each input image adds a charge. Rates are on this page.
Parametri
Endpoint-uri
Exemple de cod
Modele similare: generare de imagini
/v1 în base_url. Pentru Anthropic SDK — fără /v1.