Seedream Imagegen logo

Seedream Imagegen

Community
staruhub
seedream-imagegen

用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMIND_API_KEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。

Overview

Publisherstaruhub
RepositoryClaudeSkills
Skill nameseedream-imagegen
Stars
728
Forks
131
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by staruhub on GitHub. Read the source before you install it.

Installation

Install the Seedream Imagegen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/staruhub/ClaudeSkills/tree/main/lab/Geek-skills-seedream-imagegen
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/staruhub/ClaudeSkills.git /tmp/ClaudeSkills
mkdir -p .claude/skills
cp -r /tmp/ClaudeSkills/lab/Geek-skills-seedream-imagegen .claude/skills/seedream-imagegen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Seedream Imagegen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Seedream Imagegen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Seedream Imagegen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Seedream 4.0 图像生成

通过 scripts/generate_image.py 调用 Seedream 4.0 生成专业级图像。

验收标准(每次生成任务完成前自查)

  • 提示词经过结构化优化([主题]+[风格]+[细节]+[质量词]),不是用户原话直接透传
  • size / aspect_ratio 与用途匹配(见参数对照表),不是默认值裸跑
  • 图像已落盘并把实际文件路径回报给用户
  • 重要用途(海报/品牌)生成 ≥3 张供选择
  • 告知了本次消耗(张数×分辨率),4K 提前说明更耗时耗额度

不做什么

  • 不编辑、重绘、扩展已有图片——只做文生图(参考图仅用于风格指导)
  • 无 SEGMIND_API_KEY 时不硬试:告知用户去 segmind.com 获取,或改用环境内其他生图 skill
  • 不对生成内容的版权归属下结论
  • 用户只要一张随手配图时,不展开完整需求问卷,合理默认直接出

工作流程

1. 收集需求(缺什么问什么,不逐项走问卷)

必需:图像内容描述。推荐确认:尺寸(默认 2K)、比例(默认 1:1)、数量(默认 1)。

用途 → 参数对照表

用途sizeaspect_ratiomax_images
社交媒体2K1:1 或 9:161-3
网页横幅2K16:9 或 21:91
打印海报4K4:3 或自定义1-2
产品图2K3:2 或 4:33-5
概念设计2K16:95-10

2. 优化提示词

结构:[主题] + [风格] + [细节] + [质量修饰词],补光照与氛围;需要图内文字时明确指定文字内容与字体风格;建议 200-300 词内。 示例:"一只猫" → "A fluffy orange tabby cat on a wooden windowsill, golden hour lighting, cozy interior, warm palette, professional photography, detailed fur texture"。 风格关键词库与更多范式:references/prompt_engineering.md。

3. 执行

bash
python scripts/generate_image.py \
  --prompt "优化后的提示词" \
  --size 2K --aspect-ratio 16:9 --max-images 1 \
  --output-dir ./outputs
# API key 从环境变量 SEGMIND_API_KEY 读取,或用 --api-key 传入

高级用法(参考图 image_input ≤3 张 / 顺序批量 sequential=True 保持系列一致 / size=custom 自定义宽高): Python 调用示例见 references/quick_start.md,参数完整说明见 references/api_reference.md。

4. 迭代

不满意时先问具体不满意什么,再对症调整:细节不足→加描述;风格不对→换风格关键词或上参考图;清晰度→升 4K;选择面→加张数。

已知陷阱

陷阱具体表现应对
401 / 额度耗尽API 报 401 或 quota 错误检查 SEGMIND_API_KEY;额度问题如实告知用户,不静默重试烧额度
内容审核拒绝提示词含敏感元素被拒告知被拒原因类别,改写提示词规避后重试一次;连续被拒则停下与用户确认
图内文字模糊生成的海报文字发虚、错字提示词明确指定文字内容+字体风格,加 "high contrast, bold typography";升 4K;仍不行改"留位后期加字"
4K 时间预期用户以为卡住提前说明 2K 约 2 秒、4K 约 4-6 秒,批量线性叠加
超限参数静默失败>15 张或 >3 参考图生成前校验参数上限,超限先拆分或询问
直接透传短提示词"一只猫"直接发 API,出图平庸验收标准第一条:必须先优化

参考文档(按需加载)

文件何时读
references/prompt_engineering.md优化提示词、查风格关键词库时
references/api_reference.md需要完整参数说明、错误码、性能指标时
references/quick_start.md需要 Python 调用示例(参考图/批量/自定义尺寸)时

evals/routing-evals.json — 触发边界回归用例,改 description 后用仓库根 scripts/run_routing_evals.py 校验。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Seedream Imagegen AI skill do?

用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMIND_API_KEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。

Why use Seedream Imagegen on TypingMind?

Because you install it once and use it with any model. Seedream Imagegen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Seedream Imagegen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/staruhub/ClaudeSkills/tree/main/lab/Geek-skills-seedream-imagegen. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Seedream Imagegen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Seedream Imagegen?

As many as you like. As long as a model supports skills, you can use Seedream Imagegen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Seedream Imagegen AI skill free?

Yes. It is published on GitHub by staruhub under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇