一键导入
polym-eval-generate-seedream
Generate images with BytePlus Seedream 4.x/4.5. Use for Seedream text-to-image, AI art, product images, and batch image generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate images with BytePlus Seedream 4.x/4.5. Use for Seedream text-to-image, AI art, product images, and batch image generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research BytePlus products, APIs, SDKs, setup, quotas, regions, pricing, and troubleshooting using the bundled official documentation index, then verify claims on live docs. Use for requests for BytePlus documentation or official links.
Batch-generate Seedance 2.0 Mini videos via the BytePlus console BFF (Mini has no public API). Covers T2V, image/video reference (I2V/R2V), first/last frame, and human portraits. Triggers: "seedance mini", "dreamina mini", "用 mini 出视频".
Generate textured 3D models (GLB + PBR) from an image and/or text prompt via Volcengine Ark Seed3D (doubao-seed3d). Submits the async task, polls to completion, and downloads the .glb. Domestic Volcengine Ark only, not BytePlus overseas.
Generate videos with BytePlus Seedance. Use for Seedance text-to-video, image-to-video, camera control, and draft video workflows.
Creates polished explainer videos from docs, URLs, PDFs, screenshots, or text. Use for product demos, announcement reels, repo videos, and requests like "make an explainer video" or "turn this repo into a video".
Generate Slack daily digests, highlight customer risks and action items, and publish summaries to Lark or local outputs.
| name | polym-eval-generate-seedream |
| description | Generate images with BytePlus Seedream 4.x/4.5. Use for Seedream text-to-image, AI art, product images, and batch image generation. |
Generate high-quality images using BytePlus Seedream 4.0/4.5 AI model via the Ark API.
API Reference: https://docs.byteplus.com/en/docs/ModelArk/1541523
Before running any generation command, the Agent MUST check that required environment variables are configured:
Read the .env file at the project root and verify these variables exist and are non-empty:
BYTEPLUS_API_KEY (Required for ALL generation)BYTEPLUS_BASE_URL (Required, default: https://ark.ap-southeast.bytepluses.com/api/v3)TOS_BUCKET, TOS_ACCESS_KEY, TOS_SECRET_KEYIf any required variable is missing or empty, do NOT proceed with generation. Instead:
.env file using the edit toolIf .env file doesn't exist, create it at the project root with the required variables (ask user for values first).
Example check flow:
Agent reads .env → BYTEPLUS_API_KEY is empty →
Agent tells user: "BYTEPLUS_API_KEY is not configured. Please provide your BytePlus API key." →
User provides key →
Agent writes to .env →
Agent proceeds with generation
python skills/polym-eval-generate-seedream/scripts/generate.py --prompt "your prompt here"
Set these environment variables in your .env file:
# Required: BytePlus Ark API credentials
BYTEPLUS_API_KEY=your_api_key_here
BYTEPLUS_BASE_URL=https://ark.ap-southeast.bytepluses.com/api/v3
# Optional: Default model
SEEDREAM_MODEL=seedream-4-5-251128
# Required for reference images: TOS configuration
TOS_ENDPOINT=tos-ap-southeast-1.bytepluses.com
TOS_BUCKET=your_bucket_name
TOS_ACCESS_KEY=your_access_key
TOS_SECRET_KEY=your_secret_key
TOS_REGION=ap-southeast-1
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A serene mountain landscape at sunset with golden clouds" \
--output generated/mountain.png
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A photorealistic portrait of a cat" \
--guidance-scale 10.0 \
--size 4K
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A simple flower" \
--optimize-prompt
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A cat in this artistic style" \
--ref-images path/to/style.png \
--output generated/styled_cat.png
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A comic strip showing a day in the life of a cat" \
--sequential \
--num-images 4
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "Abstract geometric art" \
--seed 42 \
--output generated/abstract.png
python skills/polym-eval-generate-seedream/scripts/generate.py \
--prompt "A beautiful sunset" \
--response-format b64_json
| Parameter | CLI Flag | Type | Description | Default |
|---|---|---|---|---|
prompt | --prompt, -p | string | Text description for image generation | Required |
model | --model, -m | string | Model ID | seedream-4-5-251128 |
size | --size, -s | string | Image size: 1K, 2K, 4K | 2K |
seed | --seed | int | Random seed for reproducibility | None |
image | --ref-images, -r | list | Reference image paths/URLs | None |
guidance_scale | --guidance-scale, -g | float | Prompt adherence (1.0-20.0) | ~7.0 |
sequential_image_generation | --sequential | flag | Enable sequential generation | disabled |
num_images | --num-images, -n | int | Images in sequential mode | 1 |
response_format | --response-format | string | url or b64_json | url |
watermark | --watermark | flag | Add watermark | False |
optimize_prompt_options | --optimize-prompt | flag | Enable prompt optimization | False |
stream | --stream | flag | Enable streaming response | False |
output | --output, -o | string | Output file path | generated/{timestamp}.png |
| Model ID | Name | Notes |
|---|---|---|
seedream-4-5-251128 | Seedream 4.5 | Latest, doesn't support 1K size |
seedream-4-0-250828 | Seedream 4.0 | Supports all sizes |
Controls how closely the generation follows the prompt:
For generating consistent multi-panel images:
--sequential flag to enable--num-images N for number of panelsAutomatically enhances your prompt for better results:
--optimize-prompt flag to enableurl: Returns URL to download image (default, recommended)b64_json: Returns base64-encoded image data (useful for direct processing)from generate import SeedreamConfig, generate_image
config = SeedreamConfig(
prompt="A beautiful sunset over the ocean",
model="seedream-4-5-251128",
size="4K",
guidance_scale=8.0,
seed=42,
watermark=False,
optimize_prompt_options={"enabled": True}
)
result = generate_image(config, output_path="generated/sunset.png")
requests
python-dotenv
tqdm
tos # Only needed for reference images
Install:
pip install requests python-dotenv tqdm tos
Set BYTEPLUS_API_KEY in .env file.
Use 2K or 4K size for Seedream 4.5, or switch to Seedream 4.0.
Configure TOS credentials in .env file.
Lower the value (try 5-10 range).