Image
Seedream 4 image
Seedream 4 — text-to-image with optional refs. 1K/2K/4K. n 1-15.
Category: Create · seedream-4
How to use & limits
- Text-to-image with optional references for editing.
- resolution: 1K, 2K or 4K (default 2K).
- Optional references: up to 10 images.
- n: 1 to 15 images; image_urls + n together must not exceed 15.
- size: 1:1, 3:4, 4:3, 16:9, 9:16, 3:2, 2:3 or 21:9.
Capabilities
What this model supports, straight from the schema — no pricing, no infrastructure detail.
| Capability | Value |
|---|---|
n_max Max variations per job | 15 |
create_image Text-to-image | Yes |
image_to_image Image-to-image | Yes |
allowed_resolutions Allowed resolutions | 1K, 2K, 4K |
max_reference_images Max reference images | 10 |
Parameters
Fields accepted in params (or first-class, where applicable) for POST /generations.
| Name | Label | Type | Required | Default | Options | Min / Max | Description |
|---|---|---|---|---|---|---|---|
resolution | Resolution | select | Optional | 2K | 1K · 2K · 4K | — | Resolution: 1K, 2K or 4K. Default 2K. |
size | Size | select | Optional | 1:1 | 1:1 · 3:4 · 4:3 · 16:9 · 9:16 · 3:2 · 2:3 · 21:9 | — | Aspect ratio: 1:1, 3:4, 4:3, 16:9, 9:16, 3:2, 2:3 or 21:9. Default 1:1. |
n | Quantity | number | Optional | 1 | — | 1 – 15 | Number of images, 1 to 15. Default 1. image_urls + n ≤ 15. |
image_urls | Optional references | multi_select | Optional | — | — | — – 10 | Optional references: up to 10 images to guide or edit. |
prompt | Prompt | textarea | Required | — | — | — | Image or edit description. Required. |
Example request
curl -X POST https://caranguejo.art/api/v1/dev/generations \
-H "Authorization: Bearer $CK" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-4",
"prompt": "Serene Japanese garden with cherry blossoms and a koi pond.",
"params": {
"resolution": "2K",
"size": "16:9",
"n": 1
}
}'
const res = await fetch("https://caranguejo.art/api/v1/dev/generations", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.CK,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "seedream-4",
"prompt": "Serene Japanese garden with cherry blossoms and a koi pond.",
"params": {
"resolution": "2K",
"size": "16:9",
"n": 1
}
}),
});
const { data } = await res.json();
Example response
{
"id": "9f0c1a7e-…",
"object": "generation",
"model": "seedream-4",
"type": "image",
"status": "completed",
"output": {
"assets": [
{
"url": "https://media.caranguejo.art/outputs/example.png",
"type": "image"
}
],
"images": [
{
"url": "https://media.caranguejo.art/outputs/example.png"
}
]
}
}
The job's real cost is returned as credits_charged on the completed response — check GET /balance for the account balance.
Common errors for this job type:
insufficient_credits | Account balance can't cover the job cost. |
content_policy_violation | Prompt or media rejected by content policy. |
generation_timeout | The job exceeded the maximum processing time. |
rate_limited | Too many requests per minute. |
invalid_input | A required parameter is missing or outside the model's schema. |
generation_failed | Generic processing failure. |