herry-zhu

Doubao AI Image Generator

設計創意v1.0.0
作者:herry-zhu更新於 2026-05-11doubao-img@clawhub_herry-zhu/doubao-img
圖片生成視覺素材#Image Generation

據 AlphaMoat 統計,截至 2026-09,Doubao AI Image Generator 累計下載 2,289 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 4,240 位,在「設計創意」分類(512 個)中排名第 423 位。

累計安裝
135
累計下載
2289
星標
1
全站排名
#4,240
全站前 84% · 「設計創意」前 83%
平台累計安裝累計下載星標評論
ClawHub ↗6521391-
SkillHub ↗13522891—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能透過瀏覽器自動化使用豆包圖像生成服務,要求帳戶已登入;文件指出沒有公開API。提示詞和生成內容會傳送給豆包,因此不要提交敏感提示或未經批准的機密圖像。下載到工作區的臨時檔案可能留存;涉及隱私時應檢查並清理。

資料釋出於 2026-10-29

可以用來做什麼

  • 使用豆包生成插畫或其他視覺內容

什麼時候用

  • 使用者已授權使用登入帳戶並接受向服務提交提示詞時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

根據非敏感主題擬定圖像提示詞,並說明生成檔案如何審查與清理

月度資料趨勢

累計下載2289
917165423912026-03 · 累計下載 10192026-05 · 累計下載 16022026-06 · 累計下載 17292026-07 · 累計下載 19512026-08 · 累計下載 20612026-09 · 累計下載 228926-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092289—1
2026-082061+5.6%1
2026-071951+12.8%1
2026-061729+7.9%1
2026-051602—1
2026-031019—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.0 KB · ClawHub v1.0.0
---
name: doubao-image-gen
description: Generate high-quality images using Doubao (豆包) AI image generation. Use when the user asks for AI-generated images, artwork, illustrations, or any visual content. Supports custom prompts, multiple styles, and high-resolution output.
metadata:
  {
    "openclaw":
      {
        "requires": { "bins": ["curl"] },
      },
  }
展開全部(共 164 行)
---

# Doubao Image Generation Skill

Generate images using ByteDance's Doubao (豆包) AI image generation service via browser automation.

## Requirements

- OpenClaw browser (headless or profile) with access to `https://www.doubao.com`
- Doubao account must be logged in
- Workspace directory for temporary file storage

## Usage

### Basic Image Generation

1. Navigate to `https://www.doubao.com` and open the image generation mode
2. Enter the prompt and submit
3. Wait for generation to complete (typically 20-30 seconds)
4. Extract and download the generated images
5. Send images to the user

### Step-by-Step Process

#### 1. Open Doubao Image Generation

```
browser(action="open", url="https://www.doubao.com/chat/create-image", profile="openclaw")
```

Or navigate to existing chat with image gen history:

```
browser(action="snapshot", profile="openclaw")
```

#### 2. Enter Prompt

Find the text input and enter the image description:

```
browser(action="act", kind="fill", ref=<textbox-ref>, text="<prompt>", profile="openclaw")
browser(action="act", kind="press", key="Enter", profile="openclaw")
```

#### 3. Wait for Generation

Wait 10-20 seconds for the images to generate:

```
exec(command="sleep 15")
```

Then check if images are ready by taking a screenshot.

#### 4. Extract Image URLs

Use browser evaluate to extract image URLs from the page:

```javascript
// Find all generated images (image_generation URL pattern)
const imgs = document.querySelectorAll('img[src*="image_generation"]');
const urls = Array.from(imgs).map(img => ({
  src: img.src,
  w: img.naturalWidth,
  h: img.naturalHeight
}));
```

#### 5. Download Images

Use the `image_pre_watermark_1_5b` URL variant for highest quality (1773×2364):

```bash
curl -L -H "Referer: https://www.doubao.com/" \
  -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" \
  -o output.png "<url_with_image_pre_watermark>"
```

If the `image_pre_watermark` URL fails (signature mismatch), fall back to extracting via browser CDP WebSocket:

```javascript
// Connect to CDP and extract image via canvas
const dataUrl = await new Promise(resolve => {
  const canvas = document.createElement('canvas');
  canvas.width = img.naturalWidth;
  canvas.height = img.naturalHeight;
  const ctx = canvas.getContext('2d');
  ctx.drawImage(img, 0, 0);
  canvas.toBlob(blob => {
    const reader = new FileReader();
    reader.onload = () => resolve(reader.result);
    reader.readAsDataURL(blob);
  }, 'image/png');
});
```

#### 6. Send to User

Use `sendAttachment` for BlueBubbles/iMessage:

```
message(action="sendAttachment", channel="bluebubbles", filePath="<path>")
```

### Image URL Patterns

Doubao CDN serves multiple versions of generated images:

| URL Suffix | Resolution | Use Case |
|------------|------------|----------|
| `downsize_watermark_1_5_b.png` | ~288×384 | Thumbnail, watermarked |
| `image_pre_watermark_1_5b.png` | ~1773×2364 | High-res, no watermark |
| `image_dld_watermark_1_5b.png` | ~1773×2364 | Download version |
| `web-operation.webp` | ~435×580 | Web preview |

**Important**: Each URL requires a unique CDN signature (`x-signature`). You cannot simply swap URL suffixes — the signature must match the specific image and URL type.

### Prompts for Best Results

For high-quality image generation, include these keywords in prompts:
- Quality: "高精度", "高品质", "8K", "超高分辨率"
- Style: "专业摄影棚灯光", "工作室渲染", "景深效果"
- Details: "精美的细节", "精细纹理"

### Troubleshooting

1. **Page not loading**: Ensure browser has network access and Doubao is accessible
2. **Login required**: Check if Doubao session is still active via screenshot
3. **Images not generating**: Check for content policy blocks in the prompt
4. **Download fails**: Use browser CDP WebSocket extraction instead of direct download
5. **BlueBubbles media path blocked**: Use `sendAttachment` action instead of `send` with `filePath`

## Example Prompts

```
战斗暴龙兽3D手办,高精度模型,精美的细节,金属质感盔甲,蓝色闪耀的勇气之盾,动感战斗姿态,站在岩石底座上,专业摄影棚灯光,工作室渲染,高品质,8K
```

```
可爱柴犬头像,日式插画风格,柔和配色,圆润线条,温暖光影,专业插画师作品
```

```
赛博朋克城市夜景,霓虹灯,高楼大厦,雨天反射,电影级渲染,超高清细节
```

## Notes

- Doubao free tier has daily generation limits
- Generated images are stored in CDN with time-limited signatures
- Browser automation is required due to lack of public API
- Always use `sendAttachment` for BlueBubbles to avoid media path issues

「設計創意」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。