Skip to content
Worix
BrowsePublish
Log inSign Up

seedream(doubao)-image-generation

Image generation via Volcengine Seedream API. Use this when you need to perform Text-to-Image (T2I), Image-to-Image (I2I),使用豆包生图 or general visual creative t...

93 downloads
Free
Reviewed

Seedream Image Generation Skill

This skill provides methods for calling the Volcengine Ark large model service platform's image generation models (Seedream).

Select Environment

The script provides implementations for both Python and JavaScript:

  • If your runtime is primarily Node.js/TypeScript or a web module, use seedream.js.
  • If your runtime involves complex data analysis, batch scheduling, or is purely Python, use seedream.py.

Supported Model Parameters (Model ID/Endpoint ID)

When invoking, the model parameter needs to be the deployment Endpoint ID from the Ark console (e.g., ep-202X...), which must be backed by one of the following foundational image generation models:

  • doubao-seedream-5-0-260128
  • doubao-seedream-4-5-251128
  • doubao-seedream-4-0-250828

Script Parameters

You must pass specific parameters to control the image generation. The available parameters are:

  • model (string, optional): Endpoint ID corresponding to the model. Defaults to doubao-seedream-5-0-260128.
  • prompt (string, required): Text description used to generate the image.
  • watermark (boolean, optional): Whether to add a Volcengine AI watermark. Unprovided value assumes false.
  • optimize_prompt_options (object, optional): Configure automatic prompt optimization options. Format: JSON object. E.g., {"mode": "standard"}.
  • tools (list of objects, optional): Capabilities options for the model, formatted as JSON. Example: [{"type": "web_search"}].
  • output_format (string, optional): The output image format. Options include png, jpeg.
  • sequential_image_generation (string, optional): Sequential image generation strategy (e.g., "auto").
  • download_dir (string, optional): Local directory to save the generated images. If not provided, images will not be downloaded locally, and only the API response will be returned.

Recommended width and height values

ResolutionAspect RatioDimensions
2K1:12048x2048
4:32304x1728
3:41728x2304
16:92848x1600
9:161600x2848
3:22496x1664
2:31664x2496
21:93136x1344
3K1:13072x3072
4:33456x2592
3:42592x3456
16:94096x2304
9:162304x4096
2:32496x3744
3:23744x2496
21:94704x2016

Usage Examples

Note: Always cd into the skill directory before executing the scripts so that they can resolve local files like .env.

Python Example:

cd <current_skill_dir>
python3 seedream.py \
  --prompt "A cute orange cat laying under the sun" \
  --model "ep-xxxxx..." \
  --size "1024x1024" \
  --watermark "false" \
  --output_format "png"

Node.js Example:

cd <current_skill_dir>
node seedream.js \
  --prompt "A cute orange cat laying under the sun" \
  --model "ep-xxxxx..." \
  --size "1024x1024" \
  --watermark "false" \
  --output_format "png"

Advanced Example with Tools and Optimization (Python):

cd <current_skill_dir>
python3 seedream.py \
  --prompt "A futuristic cityscape" \
  --model "ep-xxxxx..." \
  --optimize_prompt_options '{"mode": "standard"}' \
  --tools '[{"type": "web_search"}]'

For more detailed API documentation, please visit: https://www.volcengine.com/docs/82379/1541523?lang=zh For more model id list or check the newest model id if required, please visit: https://www.volcengine.com/docs/82379/1330310?lang=zh#36969059, and then update this seedream-image-generation/SKILL.md file "Supported Model Parameters".

Download

ZIP package — ready to use

Skill Info

Creator
cp7553479
Downloads
93
Published
Mar 15, 2026
Updated
Mar 16, 2026