nkrcrft

Recraft AI

设计创意v1.0.0
作者:nkrcrft更新于 2026-05-11recraft@clawhub_nkrcrft/recraft
图片生成图片编辑

据 AlphaMoat 统计,截至 2026-09,Recraft AI 累计下载 3,137 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 3,631 位,在「设计创意」分类(512 个)中排名第 340 位。

累计安装
182
累计下载
3,137
星标
3
全站排名
#3,631
全站前 72% · 「设计创意」前 67%
平台累计安装累计下载星标评论
ClawHub ↗902,8333-
SkillHub ↗1823,1373—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档列出图像生成、图像转图像、背景替换、矢量化、去背景、放大和变体生成。提示词与选定的输入图像会提交给 Recraft;仅在接受该数据共享和令牌访问时使用。

资料发布于 2026-10-27

可以用来做什么

  • 根据文字提示生成图像
  • 编辑或转换已有图像
  • 移除或替换背景并生成矢量图

什么时候用

  • 需要通过 Recraft API 生成或转换图像时
  • 确认可将提示词和输入图像发送给 Recraft 后

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

用这个提示生成图像;执行前说明哪些提示词和图像会发送给 Recraft。

月度数据趋势

累计下载3,137
1,7052,4743,2432026-03 · 累计下载 1,8112026-05 · 累计下载 2,2662026-06 · 累计下载 2,4192026-07 · 累计下载 2,6622026-08 · 累计下载 2,8132026-09 · 累计下载 3,13726-0326-09
星标3
2332026-03 · 星标 22026-05 · 星标 32026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,137—3
2026-082,813+5.7%3
2026-072,662+10.0%3
2026-062,419+6.8%3
2026-052,266—3
2026-031,811—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.5 KB · ClawHub v1.0.0
---
name: recraft
description: Generate, vectorize, upscale, replace background, variate, remove background, and transform images via Recraft API.
homepage: https://www.recraft.ai/
metadata:
  {
    "openclaw":
      {
        "emoji": "🎨",
        "requires": { "bins": ["uv"], "env": ["RECRAFT_API_TOKEN"] },
展开全部(共 118 行)
        "primaryEnv": "RECRAFT_API_TOKEN",
        "install":
          [
            {
              "id": "uv-brew",
              "kind": "brew",
              "formula": "uv",
              "bins": ["uv"],
              "label": "Install uv (brew)",
            },
          ],
      },
  }
---

# Recraft

Use the bundled script to generate, vectorize, upscale, replace background, variate, remove background, and transform images via Recraft API.

## Setup

1. To access your API key, log in to Recraft and visit the page: https://www.recraft.ai/profile/api
2. Generate a token by hitting ‘Generate new key’ button (available only if your API units balance is above zero)
3. Set environment variable:
   ```bash
   export RECRAFT_API_TOKEN="your-api-token"
   ```

## Commands

### Generate Image

```bash
uv run {baseDir}/scripts/recraft.py generate --prompt "your image description" --style "Recraft V3 Raw" --filename "output.png" --size "16:9"
```

### Image to Image

```bash
uv run {baseDir}/scripts/recraft.py image-to-image --prompt "your image description" --style "Recraft V3 Raw" --input "/path/to/input.png" --filename "output.png" --strength 0.5
```

### Replace Background

```bash
uv run {baseDir}/scripts/recraft.py replace-background --prompt "your background description" --style "Recraft V3 Raw" --input "/path/to/input.png" --filename "output.png"
```

### Vectorize Image

```bash
uv run {baseDir}/scripts/recraft.py vectorize --input "/path/to/input.png" --filename "output.svg"
```

### Remove Background

```bash
uv run {baseDir}/scripts/recraft.py remove-background --input "/path/to/input.png" --filename "output.png"
```

### Crisp Upscale

```bash
uv run {baseDir}/scripts/recraft.py crisp-upscale --input "/path/to/input.png" --filename "output.png"
```

### Creative Upscale

```bash
uv run {baseDir}/scripts/recraft.py creative-upscale --input "/path/to/input.png" --filename "output.png"
```

### Variate Image

```bash
uv run {baseDir}/scripts/recraft.py variate --input "/path/to/input.png" --filename "output.png" --size "16:9"
```

### Get User Information

```bash
uv run {baseDir}/scripts/recraft.py user-info
```

## Parameters

- `--prompt`, `-p`: Text description for image generation or editing, max 1000 characters
- `--input`, `-i`: Input image path (for editing/transformation commands)
- `--filename`, `-f`: Output filename
- `--style`, `-s`: Visual style (default: Recraft V3 Raw)
  - `Recraft V3 Raw`, `Photorealism`, `Illustration`, `Vector art`, `Icon`
- `--size`: Output size as aspect ratio (default: 1:1)
  - `1:1`, `2:1`, `1:2`, `3:2`, `2:3`, `4:3`, `3:4`, `5:4`, `4:5`, `6:10`, `14:10`, `10:14`, `16:9`, `9:16`
- `--strength`: Transformation strength for image-to-image (0.0-1.0, default: 0.5), where 0 means almost identical, and 1 means minimal similarity

## API Key

- `RECRAFT_API_TOKEN` env var
- Or set `skills."recraft".apiKey` / `skills."recraft".env.RECRAFT_API_TOKEN` in `~/.openclaw/openclaw.json`

## Notes

- Use timestamps in filenames: `yyyy-mm-dd-hh-mm-ss-name.png`.
- The script prints a `MEDIA:` line for OpenClaw to auto-attach on supported chat providers.
- Do not read the image back; report the saved path only.
- Vector art and Icon styles output SVG format.
- Rate limits: 100 requests per minute; 5 requests per second.

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。