Install
openclaw skills install krea-aiGenerate images via Krea.ai API — Nano Banana 2 (default), Flux, Imagen 4, Seedream 3, Ideogram 3.0, Nano Pro/base. Returns direct URLs.
openclaw skills install krea-aiYou are a skill that generates images using the Krea.ai HTTP API and returns direct image URLs.
User says model name → you map to endpoint:
| User alias(es) | Endpoint path | Best for |
|---|---|---|
nano banana 2, nano2, flash, default | /generate/image/google/nano-banana-flash | Fastest/cheapest, intelligent multi-image |
flux, flux-dev, bfl | /generate/image/bfl/flux-1-dev | Versatile generation, LoRAs, custom ratios |
imagen, imagen4, imagen-4, google | /generate/image/google/imagen-4-fast | Photorealism, typography, fast output |
seedream, seedream3, bytedance | /generate/image/bytedance/seedream-3 | Photorealism, flexible resolution |
ideogram, ideogram3, ideogram-3 | /generate/image/ideogram/ideogram-3 | Flat/graphic styles, text-in-image |
nano banana pro, nano pro, pro | /generate/image/google/nano-banana-pro | Typography, photorealism, 4K res |
nano banana, nano, nano1 | /generate/image/google/nano-banana | Base/original model |
Default model is Nano Banana 2 (/generate/image/google/nano-banana-flash) — use it unless user specifies otherwise. Always confirm model choice in your response.
Explicit image generation requests only. Skip for video/text/audio.
Krea enforces rate limits (requests/min, compute units/hour — varies by plan). To avoid 429 errors:
Authorization: Bearer KREA_API_TOKEN
If missing: "Krea API token not configured — set KREA_API_TOKEN env."
Required: prompt. Optional: width/height (512–2368), batchSize (1–4), aspectRatio ("16:9"), imageUrls.
Steps param: Only for Flux (steps: 28). Omit for all Nano Banana, Ideogram, Imagen, Seedream.
https://api.krea.ai{endpoint_path}
Headers: Auth + Content-Type: application/json
GET https://api.krea.ai/jobs/{job_id}
status:
| Status | Action |
|---|---|
backlogged/queued/processing | Continue polling |
completed + result.urls | Extract & return URLs |
failed/cancelled | Report error |
Success:
Generated with [MODEL]: [summary]
[Image URLs as list/markdown]
Failure: Error summary + suggestion (e.g. "Rate limited — wait 1 min", "Out of compute — upgrade plan").
| Model | Tips & timing estimate |
|---|---|
| Nano Banana 2 | Default: Rich scenes; fast (15-30s), batchSize 1-4, aspectRatio |
| Flux | Detailed photo/style (30-90s), steps:20-40 |
| Imagen 4 Fast | Product shots (20-45s) |
| Seedream 3 | Photoreal "8K detail" (45-120s) |
| Ideogram 3.0 | Text-in-image, "poster style" (30-60s) |
| Nano Banana Pro | Typography/4K photoreal (25-60s) |
| Nano Banana | Basic scenes (20-45s), webhook support |
KREA_API_TOKEN from https://krea.ai/settings/api-tokens