Seedream 4.0 is a next-generation, high-performance multimodal AI image model by ByteDance that unifies image generation and editing within a single, fast architecture. It supports text-to-image, image-to-image, and multi-image reference, delivering up to 4K resolution with high consistency and precision for creative and professional applications
One POST request. Get the result back directly — as an image, video, or JSON depending on the tool.
curl -X POST https://apiai.me/api/workflow/seedream-4 \
-H "X-API-Key: YOUR_API_KEY" \
-F "image=@input.jpg" \
-F "aspect_ratio=match_input_image" \
-F "enhance_prompt=true" \
-F "height=2048" \
-F "max_images=1" \
-F "prompt=VALUE" \
-F "sequential_image_generation=disabled" \
-F "size=2K" \
-F "width=2048"
--output result.png
Test this tool visually before writing any code. Upload an image, set parameters, and see the result live. When it looks right, copy the auto-generated curl command and paste it into your app.
Process hundreds of images at once without writing a loop. Upload a CSV with one row per item, set your parameters, and download the results as a ZIP when they're done.
| Name | Required | Description | Default / Options |
|---|---|---|---|
aspect_ratio |
optional | Output Aspect Ratio | match_input_image1:14:33:416:99:163:22:321:9
|
enhance_prompt |
optional | Enable prompt enhancement for higher quality results, this will take longer to generate. | true
|
height |
optional | Custom image height (only used when size='custom'). Range: 1024-4096 pixels. | 2048
|
max_images |
optional | Maximum number of images to generate when sequential_image_generation='auto'. Range: 1-15. Total images (input + generated) cannot exceed 15. | 1234
|
prompt |
required | Text prompt for image generation | — |
sequential_image_generation |
optional | Group image generation mode. 'disabled' generates a single image. 'auto' lets the model decide whether to generate multiple related images (e.g., story scenes, character variations). | disabledauto
|
size |
optional | Image resolution: 1K (1024px), 2K (2048px), 4K (4096px), or 'custom' for specific dimensions. | 1K2K4Kcustom
|
width |
optional | Custom image width (only used when size='custom'). Range: 1024-4096 pixels. | 2048
|
Get an API key, test Seedream 4 in the dashboard, and copy the curl command.