โ† All skills
Tencent SkillHub ยท Developer Tools

Krea.ai API

Generate images via Krea.ai API (Flux, Imagen, Ideogram, Seedream, etc.)

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Generate images via Krea.ai API (Flux, Imagen, Ideogram, Seedream, etc.)

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md, krea_api.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.2.4

Documentation

ClawHub primary doc Primary doc: SKILL.md 15 sections Open source page

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)

CLI arguments: --key-id and --secret (for one-off use) 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

Get your Krea.ai API credentials from https://docs.krea.ai/developers/api-keys-and-billing Create the credentials file: mkdir -p ~/.openclaw/credentials Add your credentials: echo '{"apiKey": "YOUR_KEY_ID:YOUR_SECRET"}' > ~/.openclaw/credentials/krea.json Set secure permissions: chmod 600 ~/.openclaw/credentials/krea.json

Command Line

# 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

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

ParameterTypeDefaultDescriptionpromptstrrequiredImage description (max 1800 chars)modelstr"flux"Model name from table belowwidthint1024Image width (512-2368)heightint1024Image height (512-2368)stepsint25Generation steps (1-100)guidance_scalefloat3.0Guidance scale (0-24)seedstrNoneRandom seed for reproducibility

Available Models

ModelBest ForfluxGeneral purpose, high qualityimagen-4Latest Google modelideogram-3.0Text in imagesseedream-4Fast generationsnano-bananaQuick 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: python3 krea_api.py --jobs 10

File Locations

PurposePathCredentials~/.openclaw/credentials/krea.jsonScript{skill}/krea_api.pySkill docs{skill}/SKILL.md

"API credentials required"

Check credentials file exists: ls -la ~/.openclaw/credentials/krea.json # Should show: -rw------- Verify format (must have colon): {"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.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs1 Scripts
  • SKILL.md Primary doc
  • README.md Docs
  • krea_api.py Scripts