About Seedream 4.0
ByteDance Seedream 4.0 generates images from a text prompt, with single-image and multi-reference image-to-image editing. Supports 1K, 2K, and 4K output resolutions and batch generation.
Ready to build with Seedream 4.0?
Try Seedream 4.0 in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/images/edit \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "bytedance-seedream-4",
"prompt": "A cat sitting on a chair",
"size": "2K",
"watermark": false
}'Request parameters
Every field Seedream 4.0 accepts in the request body. See the API reference for response formats.
POST
https://hub.oxen.ai/api/ai/images/edit| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Text prompt for image generation. Recommended length <=600 English words. Use @Image1, @Image2, etc. to reference the input images. |
input_image | array<string> | No | — | Optional reference image URLs for image-to-image editing. Provide one image for single-image editing or multiple for multi-reference fusion; reference them in the prompt as @Image1, @Image2, etc. Up to 14 images. |
size | string | No | "2K" | Image resolution. Accepts 1K, 2K, or 4K presets, or explicit WxH pixel dimensions.1K2K4K |
watermark | boolean | No | false | Whether to add an 'AI generated' watermark. |