Generate images with ByteDance Seedream via the standard POST /v1/images/generations endpoint. OpenAI-compatible request shape; minimum image size is 3,686,400 pixels (e.g., 1920×1920).
POST /v1/images/generations endpoint. Currently routed to ByteDance Seedream (seedream-4-5-251128). Wan 2.7 models do not use this path — see Image Generation via Chat.
| Model | Endpoint |
|---|---|
seedream-4-5-251128 | POST /v1/images/generations (this page) |
wan2.7-image / wan2.7-image-pro | POST /v1/chat/completions |
gemini-3-pro-image-preview | POST /v1/models/{model}:generateContent |
| Model | Cost per image | Notes |
|---|---|---|
seedream-4-5-251128 | $0.040 | Min image size 3,686,400 pixels (e.g., 1920×1920) |
| Size | Pixels | Accepted? |
|---|---|---|
1024x1024 | 1,048,576 | ❌ |
1536x1536 | 2,359,296 | ❌ |
1920x1920 | 3,686,400 | ✅ (exact threshold) |
2048x2048 | 4,194,304 | ✅ |
2304x1600 | 3,686,400 | ✅ |
2560x1920 | 4,915,200 | ✅ |
width × height ≥ 3,686,400.
| Field | Type | Required | Notes |
|---|---|---|---|
model | string | yes | seedream-4-5-251128 |
prompt | string | yes | Text description of the image to generate |
n | integer | no | Number of images. Each is billed separately at $0.040 |
size | string | yes | WIDTHxHEIGHT. Must satisfy width × height ≥ 3,686,400 |
model echoed at the rootdata[].size — actual dimensions of each returned imageusage — includes generated_images (drives billing), plus output_tokens / total_tokens for token accounting400 InvalidParameter — image size must be at least 3686400 pixels — size was too small. Use 1920x1920 or larger.404 openai_error — you passed a model that isn’t routed through this endpoint (e.g., wan2.7-image). Use the chat-based route instead.400 invalid_request — malformed size string (e.g., 1024 instead of 1024x1024)./v1/chat/completions route for the Wan 2.7 family.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Image generation model. Currently only seedream-4-5-251128 is routed through this endpoint. Wan 2.7 models use /v1/chat/completions.
seedream-4-5-251128 Text description of the image to generate.
Number of images to generate. Each image is billed separately at the per-image rate.
x >= 1Image dimensions as WIDTHxHEIGHT. Must satisfy width × height ≥ 3,686,400. Common valid values: 1920x1920, 2048x2048, 2304x1600, 2560x1920.
"2048x2048"