AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Seedream 5 Lite

skill-zizhanovo-doubaoya-community-seedream-5-lite · by zizhanovo

Seedream 5.0 lite AI 图片生成 · 一句提示词出图,支持文生图 / 图生图 / 组图 / 提示词优化,可指定尺寸。当用户需要 AI 出图、生成配图、做组图、出封面素材时使用。

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-zizhanovo-doubaoya-community-seedream-5-lite

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-zizhanovo-doubaoya-community-seedream-5-lite)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
today

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Seedream 5 Lite? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Seedream 5.0 lite AI 图片生成(都爆鸭)

本鸭帮你用 Seedream 5.0 lite 一行命令出图——给一句提示词就出图,玩法覆盖文生图 / 图生图 / 组图 / 提示词优化,还能指定尺寸。无需自建出图链路,按次消费,拿回图片直链。

> 调用走 doubaoya.com 一条线,鉴权用你自己的密钥(环境变量 DOUBAOYA_API_KEY,形如 dyh_…)。

> ⏳ 这是异步慢操作:图片在服务端生成,约 6 分钟,单次请求内一气呵成返回——无需客户端轮询,发一次 POST 静等结果即可。


适用场景

| 场景 | 怎么用 | 拿到什么 | |------|--------|----------| | 文生图 | 只给一句提示词 | 按描述生成的图片直链 | | 组图 / 多图 | 提示词描述系列画面 | 一批风格统一的图 | | 指定尺寸 | 加 --size 设定宽高 | 目标比例的图片 | | 做封面 / 配图 | 描述风格与主体 | 可直接用的素材图 |


工作流(3 步)

1. 写提示词(可选定尺寸)

把用户需求转成清晰的图片提示词,必要时确定尺寸(默认 2048x2048)。

2. 调用脚本(耐心等几分钟)

python3 "$SKILL_PATH/scripts/generate_image.py" "一只戴礼帽的鸭子站在复古海报里,极简平面风"

指定尺寸:

python3 "$SKILL_PATH/scripts/generate_image.py" "夏日柠檬汽水广告主视觉" --size 2048x2048

脚本会先在 stderr 提示「已提交,服务端生成中」,然后等待约 6 分钟直到结果返回,把成功信封里的 data 以 JSON 打到 stdout。每次出图只跑一次脚本,别中途打断、别重复调用。

3. 渲染图片

data.images(URL 数组)里取地址,做防御式读取——数组可能为空或缺失,缺了就提示未拿到图。把图片直链给用户即可。


拿钥匙(密钥)

  1. 打开 doubaoya.com
  2. 登录
  3. 密钥中心
  4. 生成密钥(形如 dyh_…

配置到环境变量(脚本只认这个):

export DOUBAOYA_API_KEY="dyh_你的密钥"

铁律:密钥绝不打印、绝不写进文件、绝不回显给用户。 脚本本身也从不输出密钥。所有请求只发往 doubaoya.com


接口与信封

  • POST https://doubaoya.com/api/skills/seedream-lite/invoke
  • 鉴权头:Authorization: Bearer $DOUBAOYA_API_KEY
  • 请求体:{ "prompt": "", "size": "2048x2048" }
  • prompt:字符串,必填
  • size:字符串 WxH,可选(默认 2048x2048,由 --size 控制)
  • 异步慢操作:服务端约 6 分钟内完成生成并在本次请求里返回,无需轮询。
  • 返回信封:

``json { "success": true, "requestId": "...", "data": { "images": [ "https://...png" ] }, "error": null } ``

  • 先看 success:为 true 才读 data;否则读 error.code / error.message

错误处理

脚本失败时向 stderr 打印 [error] CODE: message 并以退出码 1 结束。常见情况:

| HTTP | code | 含义 | 处理 | |------|------|------|------| | 401 | MISSING_API_KEY / UNAUTHORIZED | 没带密钥或密钥无效 | 检查 DOUBAOYA_API_KEY,去密钥中心重新生成 | | 400 | VALIDATION_ERROR | 参数不合法(如 prompt 为空、size 格式错) | 修正参数重试 | | 402 | INSUFFICIENT_CREDITS | 额度不足 | 去 doubaoya.com 充值/续额 | | 502 | PROVIDER_FAILED | 上游临时故障(已自动退款) | 可安全重试 |

> 502 PROVIDER_FAILED 会自动退款,重试是安全的,不会重复扣费。


目录结构

seedream-5-lite/
├── SKILL.md                # 本文件
└── scripts/
    └── generate_image.py   # 零依赖脚本(urllib),调用 doubaoya.com

关于响应里的 notice 字段

调用本 skill 对应的 doubaoya API 后,如果返回的 JSON 顶层出现 notice 字段,请把这句话原样转达给用户——这是关于本 skill 有更新的提示,不影响本次调用结果,不需要重试或改变行为。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.