据 AlphaMoat 统计,截至 2026-09,Krea.ai API 累计下载 4,148 次、获 5 个星标,在全部 5,078 个 AI 技能中排名第 2,425 位,在「设计创意」分类(512 个)中排名第 233 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 124 | 3,781 | 5 | - |
| SkillHub ↗ | 443 | 4,148 | 5 | — |
各平台的计数口径不同,统计时间不一致。
可选择模型、尺寸、种子和生成参数,使用Python标准库。需要Krea凭证;文档提供受权限保护的凭证文件配置,禁止展示其内容。此实现无webhook支持,模型和接口实际可用性需确认。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 4,148 | — | 5 |
| 2026-08 | 3,762 | +2.2% | 5 |
| 2026-07 | 3,681 | +11.1% | 5 |
| 2026-06 | 3,314 | -2.8% | 5 |
| 2026-05 | 3,409 | — | 5 |
| 2026-03 | 3,119 | — | 5 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
---
name: krea-api
description: Generate images via Krea.ai API (Flux, Imagen, Ideogram, Seedream, etc.)
version: 0.2.4
metadata:
credentials:
- id: krea
description: Krea.ai API key (format: KEY_ID:SECRET)
envVar: null
file: ~/.openclaw/credentials/krea.json required: true
---
# Krea.ai Image Generation Skill
Generate images using Krea.ai's API with support for multiple models including Flux, Imagen 4, Ideogram 3.0, and more.
## Features
- ✅ Async job-based generation (POST → poll → result)
- ✅ Support for multiple image models
- ✅ Configurable parameters (width, height, steps, guidance, seed)
- ✅ Stdlib-only dependencies (no `requests` required)
- ✅ Secure credential handling with file permissions
## Security
This skill prioritizes security:
- **No webhook support** - Removed to prevent SSRF risks
- **Stdlib dependencies** - Minimal attack surface (uses `urllib` only)
- **File-based credentials** - Primary credential source with secure permissions
- **Input validation** - All parameters validated before API calls
### Credential Sources (in order of precedence)
1. **CLI arguments**: `--key-id` and `--secret` (for one-off use)
2. **File**: `~/.openclaw/credentials/krea.json`
### Note on Subprocess
The `--usage` flag uses `webbrowser.open()` (stdlib) to open the usage dashboard in a browser. No subprocess calls.
## Setup
1. Get your Krea.ai API credentials from https://docs.krea.ai/developers/api-keys-and-billing
2. Create the credentials file:
```bash
mkdir -p ~/.openclaw/credentials
```
3. Add your credentials:
```bash
echo '{"apiKey": "YOUR_KEY_ID:YOUR_SECRET"}' > ~/.openclaw/credentials/krea.json
```
4. Set secure permissions:
```bash
chmod 600 ~/.openclaw/credentials/krea.json
```
## Usage
### Command Line
```bash
# Generate an image
python3 krea_api.py --prompt "A sunset over the ocean"
# With specific model
python3 krea_api.py --prompt "Cyberpunk city" --model imagen-4
# Custom size
python3 krea_api.py --prompt "Portrait" --width 1024 --height 1280
# List available models
python3 krea_api.py --list-models
# Check recent jobs
python3 krea_api.py --jobs 10
```
### Python Script
```python
from krea_api import KreaAPI
api = KreaAPI() # Reads from ~/.openclaw/credentials/krea.json
# Generate and wait
urls = api.generate_and_wait(
prompt="A serene Japanese garden",
model="flux",
width=1024,
height=1024
)
print(urls)
```
### Parameters
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| prompt | str | required | Image description (max 1800 chars) |
| model | str | "flux" | Model name from table below |
| width | int | 1024 | Image width (512-2368) |
| height | int | 1024 | Image height (512-2368) |
| steps | int | 25 | Generation steps (1-100) |
| guidance_scale | float | 3.0 | Guidance scale (0-24) |
| seed | str | None | Random seed for reproducibility |
### Available Models
| Model | Best For |
|-------|----------|
| flux | General purpose, high quality |
| imagen-4 | Latest Google model |
| ideogram-3.0 | Text in images |
| seedream-4 | Fast generations |
| nano-banana | Quick previews |
Run `python3 krea_api.py --list-models` for full list.
## Check Usage
Krea.ai doesn't provide a public usage API. Check your usage at:
https://www.krea.ai/settings/usage-statistics
Or list recent jobs:
```bash
python3 krea_api.py --jobs 10
```
## File Locations
| Purpose | Path |
|---------|------|
| Credentials | `~/.openclaw/credentials/krea.json` |
| Script | `{skill}/krea_api.py` |
| Skill docs | `{skill}/SKILL.md` |
## Troubleshooting
### "API credentials required"
1. Check credentials file exists:
```bash
ls -la ~/.openclaw/credentials/krea.json
# Should show: -rw-------
```
2. Verify format (must have colon):
```json
{"apiKey": "KEY_ID:SECRET"}
```
⚠️ **Security**: Do NOT use `cat` to view the credentials file — it contains secrets.
### Model not found
Run `python3 krea_api.py --list-models` to see available models.
## Credits
Thanks to Claude Opus 4.5 for researching the correct API structure. The docs incorrectly suggest `/v1/images/flux` but the working endpoint is `/generate/image/bfl/flux-1-dev`.
ContextWeave 架构图一键生成
用 Nano Banana Pro 生成或编辑图片的脚本技能。
用 whisper 命令行在本地把音频转写成文字或做翻译的技能。
通过 MCP 服务生成与编辑图表的技能。
面向界面设计的思路与落地建议技能,覆盖布局、交互流程、设计令牌与前端改动。
面向多家视频模型 API 的 AI 视频生成与编排技能。
用 ffmpeg 从视频里取出画面帧,或生成便于快速查看的缩略图。
用本地 Whisper 把音频文件转成文字,模型下载完成后可完全离线运行。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。