Skip to content

Seedream 4.5

bytedance/seedream-4-5 — a image model by ByteDance. Call it through the gateway’s standard OpenAI-compatible door using the catalog slug; the full parameter schema is reproduced in full below.

Catalog slugbytedance/seedream-4-5
Kindimage
VendorByteDance

Through the Sociaro SDK / OpenAI-compatible door

Section titled “Through the Sociaro SDK / OpenAI-compatible door”
from sociaro_ai import Sociaro
client = Sociaro(api_key="gw_live_...")
img = client.images.generate(
model="bytedance/seedream-4-5",
prompt="a red fox in the snow",
# size / n / negative_prompt / seed … — see the schema below
)

Raw door: POST https://api.sociaro.com/v1/images/generations with {"model": "bytedance/seedream-4-5", "prompt": "…"}. See media doors.

The complete, one-to-one API schema for this model, transcribed from the official source. Nothing omitted. Examples in the schema may use a representative model of the family — for this model use the slug bytedance/seedream-4-5 as shown in How to call above.

Coverage map (per-model capability surface)

Section titled “Coverage map (per-model capability surface)”
Model (catalog slug)In request/response referenceIn per-model examplesSupports streaming
seedream-5-0 (non-lite)NOT named in any per-parameter “supported on” clauseYES — every Seedream-5.0 example uses the 5.0 slugYES
seedream-5-0-liteYES — primary “new” model in the “seedream-5-0-lite, 4-5 and 4-0” clausesYES — lite is the headline 5.0 modelYES
seedream-4-5YESreferenced in image-to-image examplesYES
seedream-4-0YESYES — used in a 4-0 exampleYES
seedream-3-0-t2iYES (size/seed/guidance_scale clauses)no examplenot supported (no streaming)
seededit-3-0-i2iYES (size adaptive/seed/guidance_scale clauses)no examplenot supported (no streaming)
seededit-3-0-t2iYES (image/output_format clauses)no examplenot supported (no streaming)

The four primary models for this family — seedream-5-0, seedream-5-0-lite, seedream-4-5, seedream-4-0 — share ONE request/response schema on the standard image-generations door. The 3-0/seededit models use the same schema with a reduced capability set; they are included here in full for completeness because their per-parameter behavior is what defines the “supported on” exclusions for the 4.x/5.x models.


Critical per-model differences (one-to-one with the model API)

Section titled “Critical per-model differences (one-to-one with the model API)”
Aspectseedream-5-0 (non-lite)seedream-5-0-liteseedream-4-5seedream-4-0seedream-3-0-t2iseededit-3-0-i2iseededit-3-0-t2i
image (reference/edit input)yes (single + multi 2–14)yes (single + multi 2–14)yes (single + multi 2–14)yes (single + multi 2–14)n/a (t2i)yes, single onlyNOT supported
size presets2K/3K/4K (same shape as lite)2K / 3K / 4K2K / 4K1K / 2K / 4Kpixels only, default 1024x1024only adaptive(size column shown for seededit-3-0-t2i but pixel/preset menu not separately enumerated — treat same pixel rules as the t2i group)
size pixel-method range (Method 2)same as lite/4-5[2560x1440 = 3,686,400 , 4096x4096 = 16,777,216], ratio [1/16,16][3,686,400 , 16,777,216], ratio [1/16,16][1280x720 = 921,600 , 16,777,216], ratio [1/16,16]total px [512x512 , 2048x2048], default 1024x1024adaptive (53-row lookup)
seedNOT supportedNOT supportedNOT supportedNOT supportedsupported (default -1)supported (default -1)not in clause
guidance_scaleNOT supportedNOT supportedNOT supportedNOT supportedsupported, default 2.5supported, default 5.5not in clause
sequential_image_generation (+ _options.max_images)yesyesyesyesnonono
streamyesyesyesyesnonono
output_format (png/jpeg)examples pass png; reference restricts custom format to lite only — AMBIGUOUS, flag for live verificationyes (png/jpeg, default jpeg)no (jpeg fixed)no (jpeg fixed)n/ano (jpeg fixed)no (jpeg fixed)
optimize_prompt_options.modestandard shapestandard onlystandard onlystandard + fastnonono
data[].size in responseyesyesyesyesnonono
Streaming (SSE)yesyesyesyesnonono

output_format on non-lite seedream-5-0 — documented contradiction. The request/response reference states “Only seedream-5-0-lite supports this parameter” and a tip that for seedream-4-5/4-0, seededit-3-0-i2i and seededit-3-0-t2i the format is jpeg-fixed (it does NOT mention non-lite 5-0). Yet every per-model example for seedream-5-0 passes "output_format":"png". The per-parameter “supported on” clauses never enumerate a bare non-lite seedream-5-0, so attributing the lite support matrix to non-lite 5-0 is an inference, not a documented fact. Treat non-lite-5-0 output_format support as ambiguous; flag for live verification.

optimize_prompt_options.mode — exact wording. Reference: “Only seedream-5-0-lite/4-5 (only supports standard mode) and seedream-4-0 support this parameter.” Examples: “seedream-4-0 allows you to set optimize_prompt_options.mode to fast … seedream-5-0-lite and seedream-4-5 focus on high-quality image generation and only [support standard mode].” So fast is valid on seedream-4-0 only; standard is the only mode on 5-0-lite and 4-5.

seed / guidance_scale are legacy. The reference explicitly limits both to seedream-3-0-t2i and seededit-3-0-i2i. They are NOT supported on any 4.x/5.x model. A transparent-passthrough gateway must not silently inject them for Seedream 4.x/5.x.


Endpoint (standard image-generations door): POST https://api.sociaro.com/v1/images/generations Auth: header Authorization: Bearer $SOCIARO_API_KEY. Content-Type: application/json

Call a Seedream model by passing its catalog slug in the model field (e.g. bytedance/seedream-5-0). The gateway routes the request to ByteDance’s image API on your behalf.


Image generation capabilities by model (verbatim from reference)

Section titled “Image generation capabilities by model (verbatim from reference)”

seedream-5-0-lite (new), seedream-4-5, seedream-4-0:

  • Generate multiple images in sequence (a batch of related images) — set sequential_image_generation to auto.
    • Batch from multiple reference images (2–14) + text prompt (input + output images ≤ 15).
    • Batch (up to 14) from a single reference image + text prompt.
    • Batch (up to 15) from text prompt.
  • Generate a single image — set sequential_image_generation to disabled.
    • Single from multiple reference images (2–14) + text prompt.
    • Single from a single reference image + text prompt.
    • Single from text prompt.

seedream-3-0-t2i: Generate a single image from a text prompt.

seededit-3-0-i2i: Generate a single image from a single reference image + text prompt.


{
"model": "bytedance/seedream-5-0", // required — catalog slug
"prompt": "string", // required — recommend < 600 English words
"image": "url-or-base64" | ["url1","url2", ...], // optional (i2i / multi-ref 2–14); seededit-3-0-i2i = single only; seededit-3-0-t2i = NOT supported
"size": "2K" | "WIDTHxHEIGHT" | "adaptive", // optional, preset OR explicit pixels OR (seededit-3-0-i2i) adaptive
"seed": 12345, // optional — ONLY seedream-3-0-t2i / seededit-3-0-i2i; default -1
"sequential_image_generation": "disabled" | "auto", // optional, default "disabled"; ONLY 5-0-lite/4-5/4-0 (+5-0 per tutorial)
"sequential_image_generation_options": { // optional — only when sequential_image_generation = "auto"
"max_images": 4 // int [1,15], default 15
},
"stream": false, // optional, default false; ONLY 5-0-lite/4-5/4-0 (+5-0 per tutorial)
"guidance_scale": 2.5, // optional — ONLY seedream-3-0-t2i (def 2.5) / seededit-3-0-i2i (def 5.5); range [1,10]
"output_format": "png" | "jpeg", // optional, default "jpeg"; reference: ONLY seedream-5-0-lite
"response_format": "url" | "b64_json", // optional, default "url"
"watermark": true, // optional, default true
"optimize_prompt_options": { // optional — 5-0-lite (standard only), 4-5 (standard only), 4-0 (standard+fast)
"mode": "standard" | "fast" // default "standard"
}
}

NameTypeRequiredDefaultAllowed values / rangeSupported onDescription
modelstringrequiredA valid catalog slugallThe catalog slug used for image generation. e.g. bytedance/seedream-5-0, bytedance/seedream-5-0-lite, bytedance/seedream-4-5, bytedance/seedream-4-0.
promptstringrequiredfree text; recommend < 600 English wordsallText prompt for generation. Overly long prompts may scatter info and cause the model to overlook details / miss elements.
imagestring OR array of stringsoptionalURL or Base64 data URI5-0/5-0-lite/4-5/4-0 = single OR multiple (2–14); seededit-3-0-i2i = single only; seededit-3-0-t2i = NOT supportedReference/edit image(s). URL: must be publicly accessible. Base64: data:image/<format>;base64,<encoding>, <format> lowercase, e.g. data:image/png;base64,.... See input-image constraints below.
sizestringoptionalpixel method default 2048x2048 (3-0-t2i default 1024x1024); preset method has no single defaultper-model preset/pixel rules (see Size section)all (rules differ per model)Output image dimensions. Two mutually-exclusive methods: Method 1 = resolution preset (model picks W/H from prompt-described aspect/shape); Method 2 = explicit WIDTHxHEIGHT px. For seededit-3-0-i2i only adaptive.
seedintegeroptional-1[-1, 2147483647]ONLY seedream-3-0-t2i and seededit-3-0-i2iRandom seed controlling randomness. -1/unspecified = random → different outputs each call. Same seed + same request → similar (not guaranteed identical) results.
sequential_image_generationstringoptionaldisabledauto, disabledONLY seedream-5-0-lite, 4-5, 4-0 (and non-lite 5-0 per tutorial)Whether to disable batch generation. auto: model decides whether/how many images to return based on the prompt. disabled: only one image generated.
sequential_image_generation_optionsobjectoptionalobject with max_imagesONLY seedream-5-0-lite, 4-5, 4-0 (and 5-0)Config for batch generation; effective only when sequential_image_generation = auto.
sequential_image_generation_options.max_imagesintegeroptional15[1, 15]as parentMax images to generate this request. Actual count = jointly by max_images and number of input reference images: (input reference images + generated images) ≤ 15.
streambooleanoptionalfalsetrue, falseONLY seedream-5-0-lite, 4-5, 4-0 (and 5-0)Streaming output mode. false: all images returned at once. true: each image returned immediately after it is generated (works for both single & batch). See Streaming Response section.
guidance_scalefloatoptionalseedream-3-0-t2i: 2.5; seededit-3-0-i2i: 5.5[1, 10]ONLY seedream-3-0-t2i and seededit-3-0-i2i; seedream-5-0-lite/4-5/4-0 NOT supportedHow closely the image follows the prompt (controls creative freedom). Higher = less freedom, more adherence.
output_formatstring (new)optionaljpegpng, jpegreference: ONLY seedream-5-0-liteOutput image file format. Tip: for seedream-4-5/4-0, seededit-3-0-i2i and seededit-3-0-t2i the default is jpeg and custom settings are not supported. (Non-lite seedream-5-0: tutorial curls pass png — ambiguous, flag for live verification.)
response_formatstringoptionalurlurl, b64_jsonallHow images are returned. Generated image is JPEG. url: download link, valid 24 hours after generation. b64_json: Base64-encoded image string inside JSON.
watermarkbooleanoptionaltruetrue, falsealltrue: adds an “AI generated” watermark in the bottom-right corner. false: no watermark.
optimize_prompt_optionsobjectoptionalobject with modeONLY seedream-5-0-lite/4-5 (standard only) and seedream-4-0Prompt optimization config.
optimize_prompt_options.modestringoptionalstandardstandard, fastfast valid only on seedream-4-0; 5-0-lite & 4-5 = standard onlystandard: higher quality, longer generation time. fast: faster, more average quality.

Input image constraints (image parameter, verbatim from reference)

Section titled “Input image constraints (image parameter, verbatim from reference)”
  • Format: jpeg, png. seedream-5-0-lite, 4-5 and 4-0 (new) also support webp, bmp, tiff, gif, heic, heif.
  • Aspect ratio (width/height):
    • within [1/16, 16] for seedream-5-0-lite, 4-5 and 4-0
    • within [1/3, 3] for seededit-3-0-i2i and seededit-3-0-t2i
  • Width & height (px): each > 14.
  • Size: up to 30 MB.
  • Total pixels: no more than 6000×6000 = 36,000,000 (limit is the product W×H, not each dimension).
  • Max reference images: up to 14.

Batch failure-handling contract (part of the documented API surface)

Section titled “Batch failure-handling contract (part of the documented API surface)”

When generating a batch with seedream-5-0-lite / 4-5 / 4-0, if an image fails:

  • Content-filter rejection: the next generation task is still requested; other tasks in the same request are unaffected.
  • Internal service error (500): the next image generation task is not requested. (This same contract is restated in the streaming image_generation.partial_failed event description.)

Size parameter — per-model detail (Method 1 presets + Method 2 pixel rules)

Section titled “Size parameter — per-model detail (Method 1 presets + Method 2 pixel rules)”

The reference renders size as per-model tabs. Each is reproduced exactly below.

seedream-5-0-lite (and, per tutorial, non-lite seedream-5-0)

Section titled “seedream-5-0-lite (and, per tutorial, non-lite seedream-5-0)”
  • Method 1 presets: 2K, 3K, 4K (describe aspect/shape/purpose in the prompt; model picks W/H).
  • Method 2 pixels: default 2048x2048; total-pixel range [2560x1440 = 3,686,400, 4096x4096 = 16,777,216]; aspect ratio range [1/16, 16]. Both constraints must hold simultaneously.
    • Valid example: 3750x1250 (4,687,500 px ✓, ratio 3 ✓).
    • Invalid example: 1500x1500 (2,250,000 px < 3,686,400 ✗) — fails pixel min even though ratio is fine.

Recommended W×H presets:

ResolutionAspect ratioW×H px
2K1:12048x2048
2K4:32304x1728
2K3:41728x2304
2K16:92848x1600
2K9:161600x2848
2K3:22496x1664
2K2:31664x2496
2K21:93136x1344
3K1:13072x3072
3K4:33456x2592
3K3:42592x3456
3K16:94096x2304
3K9:162304x4096
3K2:32496x3744
3K3:23744x2496
3K21:94704x2016
4K1:14096x4096
4K3:43520x4704
4K4:34704x3520
4K16:95504x3040
4K9:163040x5504
4K2:33328x4992
4K3:24992x3328
4K21:96240x2656
  • Method 1 presets: 2K, 4K (no 3K).
  • Method 2 pixels: default 2048x2048; total-pixel range [3,686,400, 16,777,216]; aspect ratio [1/16, 16]. Both must hold (same valid/invalid examples as 5-0-lite).

Recommended W×H presets (2K and 4K rows identical to the 5-0-lite table; there is no 3K tier):

ResolutionAspect ratioW×H px
2K1:12048x2048
2K4:32304x1728
2K3:41728x2304
2K16:92848x1600
2K9:161600x2848
2K3:22496x1664
2K2:31664x2496
2K21:93136x1344
4K1:14096x4096
4K3:43520x4704
4K4:34704x3520
4K16:95504x3040
4K9:163040x5504
4K2:33328x4992
4K3:24992x3328
4K21:96240x2656
  • Method 1 presets: 1K, 2K, 4K.
  • Method 2 pixels: default 2048x2048; total-pixel range [1280x720 = 921,600, 4096x4096 = 16,777,216] (lower minimum than 5-0-lite/4-5); aspect ratio [1/16, 16].
    • Valid example: 1600x600 (960,000 px ✓, ratio 8/3 ✓).
    • Invalid example: 800x800 (640,000 px < 921,600 ✗).

Recommended W×H presets:

ResolutionAspect ratioW×H px
1K1:11024x1024
1K4:3864x1152
1K3:41152x864
1K16:91280x720
1K9:16720x1280
1K3:2832x1248
1K2:31248x832
1K21:91512x648
2K1:12048x2048
2K4:32304x1728
2K3:41728x2304
2K16:92848x1600
2K9:161600x2848
2K3:22496x1664
2K2:31664x2496
2K21:93136x1344
4K1:14096x4096
4K3:43520x4704
4K4:34704x3520
4K16:95504x3040
4K9:163040x5504
4K2:33328x4992
4K3:24992x3328
4K21:96240x2656
  • No presets. Set W×H in pixels. Default 1024x1024. Total-pixel value range [512x512, 2048x2048].
Aspect ratioW×H px
1:11024x1024
4:31152x864
3:4864x1152
16:91280x720
9:16720x1280
3:21248x832
2:3832x1248
21:91512x648
  • Only adaptive is supported. The system compares the input image’s dimensions to the preset table below and selects the first available aspect ratio with the smallest difference from the original image’s ratio.

Full preset lookup (Width/Height ratio → Width × Height px), 53 rows verbatim:

Width/HeightWidthHeight
0.335121536
0.355441536
0.385761536
0.46081536
0.426401536
0.476401376
0.516721312
0.557041280
0.567361312
0.67681280
0.637681216
0.668001216
0.678321248
0.78321184
0.728321152
0.758641152
0.788961152
0.828961088
0.859281088
0.889601088
0.919921088
0.9410241088
0.9710241056
110241024
1.061056992
1.11088992
1.171120960
1.241152928
1.291152896
1.331152864
1.421184832
1.461216832
1.51248832
1.561248800
1.621248768
1.671280768
1.741280736
1.821280704
1.781312736
1.861312704
1.951312672
21344672
2.051376672
2.11408672
2.21408640
2.251440640
2.31472640
2.351504640
2.41536640
2.531536608
2.671536576
2.821536544
31536512

{
"model": "bytedance/seedream-5-0", // catalog slug used
"created": 1757323224, // unix seconds, request creation time
"data": [ // array of output image objects (or error objects)
{
"url": "https://...", // present when response_format=url (24h expiry)
"b64_json": "...", // present when response_format=b64_json
"size": "1760x2368" // <width>x<height>; only 5-0-lite/4-5/4-0 (+5-0)
}
// OR, for a failed image in a batch:
// { "error": { "code": "...", "message": "..." } }
],
"usage": {
"generated_images": 1, // # successfully generated (billing basis)
"output_tokens": 16280, // round( sum(W*H) / 256 )
"total_tokens": 16280 // == output_tokens (input tokens not counted)
},
"error": { // top-level request error, if any
"code": "...",
"message": "..."
}
}
FieldTypeDescription
modelstringModel ID used (model name-version).
createdintegerUnix timestamp (seconds) of the request creation time.
dataarrayOutput images. Each element is either an Image-info object or an Error-message object. Batch failure rule: content-filter rejection → next task still requested; internal 500 → next task NOT requested.
data[].urlstringImage download URL; present when response_format=url. Expires within 24h of generation — save before expiry.
data[].b64_jsonstringBase64 image data; present when response_format=b64_json.
data[].sizestring<width>x<height> px, e.g. 2048x2048. Only seedream-5-0-lite/4-5/4-0 (and 5-0) return this.
data[].errorobjectError object for a failed image (within data).
data[].error.codestringError code for the failed image. See Error Codes.
data[].error.messagestringError message for the failed image.
usageobjectUsage info for the request.
usage.generated_imagesinteger# images successfully generated (excludes failures). Billing is per successfully generated image.
usage.output_tokensintegerTokens consumed by generated images = round( sum(image_width × image_height) / 256 ). These are IMAGE tokens, not text tokens.
usage.total_tokensintegerTotal tokens for the request; equals output_tokens (input tokens not currently counted).
errorobjectTop-level request error (if the whole request failed).
error.codestringError code. See Error Codes.
error.messagestringError message.

Streaming response (stream=true) — SSE event schema

Section titled “Streaming response (stream=true) — SSE event schema”

Supported only on seedream-5-0-lite, seedream-4-5, seedream-4-0 (and non-lite 5-0 per tutorial). When stream=true, the server pushes events via Server-Sent Events (SSE) as the response is generated. There are three event types plus a top-level error.

Returned when any single image is successfully generated.

FieldTypeDescription
typestringAlways image_generation.partial_succeeded.
modelstringModel ID used (<model_name>-<version>).
createdintegerUnix timestamp (seconds) of the request creation time.
image_indexintegerIndex of the image for this event. Starts at 0 and auto-increments by 1 for BOTH partial_succeeded and partial_failed events, regardless of success.
urlstringImage download URL; returned when response_format=url.
b64_jsonstringBase64 image; returned when response_format=b64_json.
sizestring<width>×<height> px, e.g. 2048×2048.

Example:

{
"type": "image_generation.partial_succeeded",
"model": "bytedance/seedream-5-0",
"created": 1589478378,
"image_index": 0,
"url": "https://...",
"size": "2048×2048"
}

Returned when any image fails to generate. Same failure contract: content-filter rejection → next task still requested; internal 500 → next task NOT requested.

FieldTypeDescription
typestringAlways image_generation.partial_failed.
modelstringModel ID used (<model_name>-<version>).
createdintegerUnix timestamp (seconds) of the request creation time.
image_indexintegerIndex of the image for this event. Starts at 0; auto-increments for both partial events.
errorobjectError reason for this event.
error.codestringError code. See Error Codes.
error.messagestringError message.

Example:

{
"type": "image_generation.partial_failed",
"model": "bytedance/seedream-5-0",
"created": 1589478378,
"image_index": 2,
"error": {
"code": "OutputImageSensitiveContentDetected",
"message": "The request failed because the output image may contain sensitive information."
}
}

Final event in the stream; returned after all requested images (successful or failed) have been processed.

FieldTypeDescription
typestringAlways image_generation.completed.
modelstringModel ID used (<model_name>-<version>).
createdintegerUnix timestamp (seconds) of the request creation time.
usageobjectUsage info for the request.
usage.generated_imagesinteger# successfully generated images (excludes failures). Billed only for successes.
usage.output_tokensintegerround( sum(picture_height × picture_width) / 256 ).
usage.total_tokensintegerTotal tokens; equals output_tokens (input tokens not counted).

Example:

{
"type": "image_generation.completed",
"model": "bytedance/seedream-5-0",
"created": 1589478378,
"usage": {
"generated_images": 2,
"output_tokens": 16280,
"total_tokens": 16280
}
}

Returned for the current request if a request-level error occurs.

FieldTypeDescription
errorobjectError message for this request.
error.codestringError code. See Error Codes.
error.messagestringError message.

Example:

"error": {
"code": "BadRequest",
"message": "The request failed because it is missing one or multiple required parameters. Request ID: {id}"
}

Request:

Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Vibrant close-up editorial portrait, model with piercing gaze, wearing a sculptural hat, Vogue cover aesthetic, dramatic studio lighting."
}'

Response:

{
"model": "bytedance/seedream-5-0",
"created": 1757323224,
"data": [ { "url": "https://...", "size": "2048x2048" } ],
"usage": { "generated_images": 1, "output_tokens": 16384, "total_tokens": 16384 }
}

Full A — single image, common knobs (verbatim tutorial example, seedream-5.0)

Section titled “Full A — single image, common knobs (verbatim tutorial example, seedream-5.0)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Vibrant close-up editorial portrait, model with piercing gaze, wearing a sculptural hat, rich color blocking, sharp focus on eyes, shallow depth of field, Vogue magazine cover aesthetic, shot on medium format, dramatic studio lighting.",
"size": "2K",
"output_format": "png",
"watermark": false
}'

Response:

{
"model": "bytedance/seedream-5-0",
"created": 1757323224,
"data": [ { "url": "https://...", "size": "1760x2368" } ],
"usage": { "generated_images": 1, "output_tokens": 16280, "total_tokens": 16280 }
}

Full B — image-to-image (single reference, verbatim tutorial)

Section titled “Full B — image-to-image (single reference, verbatim tutorial)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Keep the model'\''s pose and the flowing shape of the liquid dress unchanged. Change the clothing material from silver metal to completely transparent clear water (or glass). Through the liquid water, the model'\''s skin details are visible. Lighting changes from reflection to refraction.",
"image": "https://example.com/assets/seedream4_5_imageToimage.png",
"size": "2K",
"output_format": "png",
"watermark": false
}'

Full C — multi-reference image-to-image, single output (verbatim tutorial)

Section titled “Full C — multi-reference image-to-image, single output (verbatim tutorial)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Replace the clothing in image 1 with the outfit from image 2.",
"image": ["https://example.com/assets/seedream4_imagesToimage_1.png", "https://example.com/assets/seedream4_5_imagesToimage_2.png"],
"sequential_image_generation": "disabled",
"size": "2K",
"output_format": "png",
"watermark": false
}'

Full D — batch / sequential output from a single reference image (verbatim tutorial)

Section titled “Full D — batch / sequential output from a single reference image (verbatim tutorial)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Using this LOGO as a reference, create a visual design system for an outdoor sports brand named GREEN, including packaging bags, hats, cards, lanyards, etc. Main visual tone is green, with a fun, simple, and modern style.",
"image": "https://example.com/assets/seedream4_imageToimages.png",
"size": "2K",
"sequential_image_generation": "auto",
"sequential_image_generation_options": { "max_images": 4 },
"stream": false,
"output_format": "png",
"response_format": "url",
"watermark": false
}'

Full E — batch from multiple references (verbatim tutorial)

Section titled “Full E — batch from multiple references (verbatim tutorial)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-5-0",
"prompt": "Generate 3 images of a girl and a cow plushie happily riding a roller coaster in an amusement park, depicting morning, noon, and night.",
"image": ["https://example.com/assets/seedream4_imagesToimages_1.png", "https://example.com/assets/seedream4_imagesToimages_2.png"],
"sequential_image_generation": "auto",
"sequential_image_generation_options": { "max_images": 3 },
"size": "2K",
"output_format": "png",
"watermark": false
}'

Full F — seedream-4-0 with optimize_prompt fast mode (note fast mode, which is 4-0 only)

Section titled “Full F — seedream-4-0 with optimize_prompt fast mode (note fast mode, which is 4-0 only)”
Terminal window
curl https://api.sociaro.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-d '{
"model": "bytedance/seedream-4-0",
"prompt": "Generate a series of 4 coherent illustrations focusing on the same corner of a courtyard across the four seasons, presented in a unified style that captures the unique colors, elements, and atmosphere of each season.",
"size": "2K",
"sequential_image_generation": "auto",
"sequential_image_generation_options": { "max_images": 4 },
"optimize_prompt_options": { "mode": "fast" },
"stream": false,
"output_format": "png",
"response_format": "url",
"watermark": false
}'

  • Billing: per usage.generated_images (successful only); output_tokens = round(sum(W*H)/256), total_tokens == output_tokens. These are image tokens, not text tokens.
  • Output URL expiry: 24h. Persist before expiry.
  • Do not inject seed/guidance_scale for Seedream 4.x/5.x — they are legacy params for seedream-3-0-t2i / seededit-3-0-i2i only and are unsupported on the 4.x/5.x models.
  • output_format on non-lite seedream-5-0: reference vs. example contradiction (jpeg-fixed per reference clause vs. png in every example). Flag for live verification before relying on it.
  • optimize_prompt_options.mode=fast: valid on seedream-4-0 only; 5-0-lite and 4-5 are standard-only.