seedream-image-generator
БесплатноБез исполняемых скриптовНе проверенGenerate images using the Doubao SeeDream API based on text prompts. Use this skill when users request AI-generated images, artwork, illustrations, or visual…
от eze-is★ 22 звезды на GitHubОб этом скилле
SeeDream Image Generator
Overview
This skill enables image generation using the Doubao SeeDream 4.0 API (model: doubao-seedream-4-0-250828). It converts text prompts into high-quality images and automatically downloads them to the project's /pic folder. The skill supports single and batch image generation (up to 4 sequential images), customizable image sizes, and watermark control.
When to Use This Skill
Use this skill when users request:
- "Generate an image of [description]"
- "Create artwork showing [scene/concept]"
- "Make an illustration of [subject]"
- "Generate 4 seasonal variations of [scene]"
- Any request involving AI image generation, visual content creation, or artwork generation
Quick Start
Prerequisites
Before generating images, obtain the user's Volcano Engine (火山引擎) ARK API key:
IMPORTANT: Always ask the user for their ARK API key before proceeding with image generation, as the skill does not include a pre-configured key.
Example prompt to user:
"To generate images, I need your Volcano Engine ARK API key. You can find it at: https://console.volcengine.com/ark/region:ark+cn-beijing/apikey
Please provide your ARK_API_KEY."
Basic Workflow
- Receive user request for image generation
- Request API key from the user if not already provided
- Clarify requirements:
- Prompt/description
- Number of images (1-4)
- Image size preference
- Watermark preference
- Execute generation using the
generate_image.pyscript - Report results with file paths and preview the images if possible
Image Generation Tasks
Single Image Generation
Generate a single image based on a text prompt.
Example user request:
"Generate an image of a futuristic city at sunset with flying cars"
Script usage:
python scripts/generate_image.py "futuristic city at sunset with flying cars" \
--api-key "YOUR_ARK_API_KEY" \
--size "2K"
Parameters:
prompt(required): Text description of the desired image--api-key: ARK API key (can also use ARK_API_KEY environment variable)--size: Image size, options include:"2K"(default)"1024x1024""2048x2048""3104x1312"(widescreen)- Custom dimensions in format
"{width}x{height}"
--no-watermark: Disable watermark (watermark enabled by default)--output-dir: Custom output directory (defaults toproject_root/pic)
Batch Image Generation
Generate multiple sequential/related images (2-4 images) with a single prompt.
Example user request:
"Generate 4 images showing the same garden courtyard through all four seasons"
Script usage:
python scripts/generate_image.py \
"同一庭院一角的四季变迁,统一风格展现四季独特色彩、元素与氛围" \
--api-key "YOUR_ARK_API_KEY" \
--size "2048x2048" \
--max-images 4
Additional parameter:
--max-images: Number of images to generate (1-4, default: 1)
Note: When --max-images is greater than 1, the API automatically uses sequential image generation to create related/coherent images.
Advanced Prompt Engineering
For high-quality results, guide users to provide detailed prompts that include:
- Subject: Main focus of the image
- Style: Art style, rendering technique (e.g., "photorealistic", "oil painting", "anime style")
- Lighting: Lighting conditions and atmosphere
- Color: Color palette or dominant colors
- Composition: Perspective, framing, depth of field
- Details: Specific elements to include
Example of a well-crafted prompt:
"Interstellar scene with a massive black hole, a vintage train emerging from it half-destroyed,
strong visual impact, cinematic, apocalyptic atmosphere, dynamic motion, contrasting colors,
octane render, ray tracing, motion blur, depth of field, surrealism, deep blue tones,
detailed color layers shaping the subject, realistic textures, dark background with dramatic
lighting creating atmosphere, artistic fantasy feel, exaggerated wide-angle perspective,
lens flare, reflections, extreme lighting and shadows, strong gravity, consuming effect"
Script Details
Location
scripts/generate_image.py
Key Features
- Automatic project root detection (looks for
.git,.claude,package.json, etc.) - Creates
/picfolder if it doesn't exist - Timestamps filenames to prevent overwrites (format:
seedream_YYYYMMDD_HHMMSS.png) - Downloads images directly from API response URLs
- Prints usage statistics (tokens, generated images count)
- Error handling for API calls and downloads
Output Format
- Images are saved to:
{project_root}/pic/seedream_{timestamp}.png - For batch generation:
{project_root}/pic/seedream_{timestamp}_1.png,_2.png, etc. - Default format: PNG
Requirements
The script requires the following Python packages:
openai(for API client)requests(for image downloading)
Install with:
pip install openai requests
Workflow Decision Tree
User requests
Установить seedream-image-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл seedream-image-generator?
Generate images using the Doubao SeeDream API based on text prompts. Use this skill when users request AI-generated images, artwork, illustrations, or visual content creation. The skill handles API calls, downloads generated images to the project's /pic folder, and supports batch generation of up to 4 sequential images.
Как установить скилл seedream-image-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл seedream-image-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic