generate_image
Generate an image from a text prompt or up to 14 reference images. Select aspect ratio, resolution, and watermark preferences.
Instructions
Generate a single image from a text prompt (text-to-image), or using 1–14 reference images (image-to-image). Returns a request_id to poll with get_image_result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Reference image URL(s) or base64 for image-to-image. Up to 14 images. | |
| model | No | Model ID. 1K resolution only works with 4-0 (auto-upgraded to 2K for others). 3K only works with 5-0. 4K works with 4-5 and 4-0. | doubao-seedream-4-0-250828 |
| prompt | Yes | Text prompt. Max ~300 Chinese chars / 600 English words. | |
| watermark | No | Add AI-generated watermark. | |
| resolution | No | Output resolution. 1K auto-upgrades to 2K if model does not support it. | 2K |
| aspect_ratio | No | Output aspect ratio. Default 9:16 (portrait/mobile). | 9:16 |
| response_format | No | url (24h expiry) or b64_json. | url |