Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Generate images via Krea.ai API (Flux, Imagen, Ideogram, Seedream, etc.)
Generate images via Krea.ai API (Flux, Imagen, Ideogram, Seedream, etc.)
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
Generate images using Krea.ai's API with support for multiple models including Flux, Imagen 4, Ideogram 3.0, and more.
โ 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
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
CLI arguments: --key-id and --secret (for one-off use) File: ~/.openclaw/credentials/krea.json
The --usage flag uses webbrowser.open() (stdlib) to open the usage dashboard in a browser. No subprocess calls.
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
# 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
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)
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
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.
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
PurposePathCredentials~/.openclaw/credentials/krea.jsonScript{skill}/krea_api.pySkill docs{skill}/SKILL.md
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.
Run python3 krea_api.py --list-models to see available models.
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.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.