All models

ByteDance: Seedream 5.0 Pro

seedream-5-0-pro
images

The larger Seedream from ByteDance for image generation and editing. Precise editing control, lifelike scenes and natural rendering — built for commercial visual production.

Pricing

Image

Parameters

promptrequired
aspect_ratio1:1 · 1:2 · 2:1 · 2:3 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 9:21 · 16:9 · 21:9
resolution ·
size654x1526 · 1526x654 · 706x1414 · 1414x706 · 816x1224 · 1224x816 · 750x1332 · 1332x750 · 866x1154 · 1154x866 · 894x1118 · 1118x894 · 1000x1000 · 876x2048 · 2048x876 · 1024x2048 · 2048x1024 · 1152x2048 · 2048x1152 · 1364x2048 · 2048x1364 · 1536x2048 · 2048x1536 · 1638x2048 · 2048x1638 · 2048x2048
imageimage-to-image (via /v1/images/edits)

How to use via API

import base64
from openai import OpenAI
client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
img = client.images.generate(
model="seedream-5-0-pro",
prompt="Милый кот-космонавт на Марсе",
size="654x1526", # либо extra_body={"aspect_ratio": "1:1", "resolution": "1k"}
n=1,
)
with open("image.png", "wb") as f:
f.write(base64.b64decode(img.data[0].b64_json))
# image-to-image: передать референс(ы) через multipart
edited = client.images.edit(
model="seedream-5-0-pro",
image=open("photo.png", "rb"), # один или несколько референсов
prompt="Добавь неоновую вывеску на фасад, сохрани композицию",
)
with open("edited.png", "wb") as f:
f.write(base64.b64decode(edited.data[0].b64_json))
Try in the botAPI docs