Install
openclaw skills install seedream-image-generationImage generation via Volcengine Seedream API. Use this when you need to perform Text-to-Image (T2I), Image-to-Image (I2I), or general visual creative tasks.
openclaw skills install seedream-image-generationThis skill provides methods for calling the Volcengine Ark large model service platform's image generation models (Seedream).
The script provides implementations for both Python and JavaScript:
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-260128doubao-seedream-4-5-251128doubao-seedream-4-0-250828You must pass specific parameters to control the image generation. The available parameters are:
doubao-seedream-5-0-260128."2K", "3K", "4K".
doubao-seedream-5-0 supports 2K and 3K.doubao-seedream-4 and doubao-seedream-4-5 support 2K and 4K.prompt. It is highly recommended to explicitly state the resolution in the prompt for the best results.image field.false.{"mode": "standard"}.[{"type": "web_search"}].png, jpeg."auto").| Resolution | Aspect Ratio | Dimensions |
|---|---|---|
| 2K | 1:1 | 2048x2048 |
| 4:3 | 2304x1728 | |
| 3:4 | 1728x2304 | |
| 16:9 | 2848x1600 | |
| 9:16 | 1600x2848 | |
| 3:2 | 2496x1664 | |
| 2:3 | 1664x2496 | |
| 21:9 | 3136x1344 | |
| 3K | 1:1 | 3072x3072 |
| 4:3 | 3456x2592 | |
| 3:4 | 2592x3456 | |
| 16:9 | 4096x2304 | |
| 9:16 | 2304x4096 | |
| 2:3 | 2496x3744 | |
| 3:2 | 3744x2496 | |
| 21:9 | 4704x2016 | |
| 4K | 1:1 | 4096x4096 |
| 3:4 | 3520x4704 | |
| 4:3 | 4704x3520 | |
| 16:9 | 5504x3040 | |
| 9:16 | 3040x5504 | |
| 2:3 | 3328x4992 | |
| 3:2 | 4992x3328 | |
| 21:9 | 6240x2656 |
Python Example:
python3 <current_skill_dir>/scripts/seedream.py \
--prompt "A cute orange cat laying under the sun" \
--model "ep-xxxxx..." \
--size "1024x1024" \
--watermark "false" \
--output_format "png"
Node.js Example:
node <current_skill_dir>/scripts/seedream.js \
--prompt "A cute orange cat laying under the sun" \
--model "ep-xxxxx..." \
--size "1024x1024" \
--watermark "false" \
--output_format "png"
python3 <current_skill_dir>/scripts/seedream.py
--prompt "Turn this product photo into a clean white-background ecommerce image"
--image "/path/to/source.png"
--model "ep-xxxxx..."
Example with Download Directory:
python3 <current_skill_dir>/scripts/seedream.py \
--prompt "A beautiful sunset over the mountains" \
--download_dir "/Users/vincent/Downloads/generated_images" \
--model "ep-xxxxx..."
python3 <current_skill_dir>/scripts/seedream.py
--prompt "A futuristic cityscape"
--model "ep-xxxxx..."
--optimize_prompt_options '{"mode": "standard"}'
--tools '[{"type": "web_search"}]'
If the scripts encounter issues, please check the following:
https://ark.cn-beijing.volces.com/api/v3/images/generations.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".