← Back to Skills Marketplace
tomas-mikula

Krea AI

by Tomas Mikula · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
266
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install krea-ai
Description
Generate images via Krea.ai API — Nano Banana 2 (default), Flux, Imagen 4, Seedream 3, Ideogram 3.0, Nano Pro/base. Returns direct URLs.
README (SKILL.md)

Krea Image API

You are a skill that generates images using the Krea.ai HTTP API and returns direct image URLs.

Supported models

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.

When to use

Explicit image generation requests only. Skip for video/text/audio.

Rate limits & best practices ⚠️

Krea enforces rate limits (requests/min, compute units/hour — varies by plan). To avoid 429 errors:

  • Max 1 job submission every 10 seconds.
  • Poll interval: 5-8 seconds (never \x3C5s) — image gen takes 15-120s depending on model/resolution.
  • Max 40 polls per job (~5 min total).
  • If 429: Wait 30s before retrying anything.
  • High batchSize (>2) or 4K res = longer queues.

Auth

Authorization: Bearer KREA_API_TOKEN

If missing: "Krea API token not configured — set KREA_API_TOKEN env."

Workflow

1. Pick model & build JSON

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.

2. POST job

https://api.krea.ai{endpoint_path}
Headers: Auth + Content-Type: application/json

3. Poll carefully (key improvement)

GET https://api.krea.ai/jobs/{job_id}
  • Delay 6 seconds between polls (respects rate limits, accounts for 15-90s gen times).
  • Check status:
    Status Action
    backlogged/queued/processing Continue polling
    completed + result.urls Extract & return URLs
    failed/cancelled Report error
  • Max 40 polls (~4 min). Timeout → "Job timed out — complex prompts take longer, try simpler or check quota."
  • Rate limit handling: If 429 response, wait 60s then retry poll (don't spam).

4. Respond

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

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

Config

KREA_API_TOKEN from https://krea.ai/settings/api-tokens

Usage Guidance
This skill appears coherent, but consider these practical points before installing: - Treat KREA_API_TOKEN as a secret: provide a token with the minimum necessary scope and rotate it if compromised. - Any prompt text is sent to Krea.ai; avoid including private credentials or sensitive PII in prompts because data will leave your environment. - The skill returns direct URLs to generated images; verify Krea.ai's retention and sharing policies if you need confidentiality. - Monitor usage and quotas (rate limits and compute units) to avoid unexpected charges. - Because this is instruction-only, review the SKILL.md if it changes in future versions; malicious behavior could be introduced in updated instructions even without code files. - Autonomous invocation is enabled by default on the platform — if you want to restrict automatic use, control the agent's skill permissions or only invoke the skill manually.
Capability Analysis
Type: OpenClaw Skill Name: krea-ai Version: 1.0.2 The skill is a standard API wrapper for Krea.ai image generation, facilitating model selection and asynchronous job polling. It correctly utilizes the KREA_API_TOKEN for authentication with the official api.krea.ai endpoints and includes reasonable rate-limiting instructions for the agent. No evidence of data exfiltration, malicious command execution, or harmful prompt injection was found in SKILL.md or README.md.
Capability Assessment
Purpose & Capability
Name/description say 'generate images via Krea.ai' and the SKILL.md only requires a single KREA_API_TOKEN and describes calling https://api.krea.ai endpoints. Requested capability (API token) matches the declared purpose and nothing extraneous (no cloud keys, no unrelated services) is required.
Instruction Scope
SKILL.md contains step-by-step instructions to POST jobs to Krea endpoints, poll job status, handle rate limits/429s, extract result.urls and return them. It does not instruct reading local files, other environment variables, or sending data to third-party endpoints beyond api.krea.ai. The behavior described stays within image-generation scope.
Install Mechanism
There is no install specification and no code files—this is an instruction-only skill. Nothing is downloaded or written to disk by the skill itself, which minimizes install risk.
Credentials
Only KREA_API_TOKEN is required and it's declared as the primary credential. That single secret is proportionate for an API client. The SKILL.md does not reference any additional env vars or secrets.
Persistence & Privilege
always:false (default) and the skill is user-invocable. It does not request persistent/always-on presence nor modify other skills or system-wide configuration. Autonomous invocation is allowed by platform default but is not combined with additional red flags here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install krea-ai
  3. After installation, invoke the skill by name or use /krea-ai
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Added polling rate limit and error handling guidance to reduce Krea API 429 errors: - Added a new section on Krea API rate limits and best practices (job submission intervals, poll delays, max polls, and batch effects). - Updated polling workflow: enforce a 6-second poll delay, max 40 polls, and clear timeout/429 handling instructions. - Clarified response formatting and added model-specific timing estimates for more accurate user expectations.
v1.0.1
**Summary:** Default model changed to Nano Banana 2 (flash); new models and options supported. - Default image generation now uses Nano Banana 2 (flash), not Flux. - Added support for additional models: Nano Banana Pro, Nano Banana base, and batch generation (multi-image). - Only Flux accepts "steps"; other models disregard it. - Optional parameters updated: width/height (512–2368), batchSize (1–4), aspectRatio, imageUrls. - Model selection table, workflow, and prompt guidance revised for accuracy and clarity.
v1.0.0
Initial release: Generate images using the Krea.ai API with multiple AI models. - Supports image generation via Flux, Imagen 4, Seedream 3, Ideogram 3.0, and Nano Banana 2 models. - Allows users to select models by name; defaults to Flux if unspecified. - Handles image dimensions, model-specific parameters, and user prompts. - Returns direct image URLs with confirmation of the selected model. - Reports errors, token issues, and gives advice for failed generations. - Requires KREA_API_TOKEN for authentication.
Metadata
Slug krea-ai
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Krea AI?

Generate images via Krea.ai API — Nano Banana 2 (default), Flux, Imagen 4, Seedream 3, Ideogram 3.0, Nano Pro/base. Returns direct URLs. It is an AI Agent Skill for Claude Code / OpenClaw, with 266 downloads so far.

How do I install Krea AI?

Run "/install krea-ai" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Krea AI free?

Yes, Krea AI is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Krea AI support?

Krea AI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Krea AI?

It is built and maintained by Tomas Mikula (@tomas-mikula); the current version is v1.0.2.

💬 Comments