← 返回
AI智能 Key 中文

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.
通过 Krea.ai API 生成图像——支持 Nano Banana 2 (默认)、Flux、Imagen 4、Seedream 3、Ideogram 3.0、Nano Pro/base。返回直链 URL。
tomas-mikula
AI智能 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 1
Stars
📥 527
下载
💾 14
安装
1
版本
#latest

概述

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 pathBest for
--------------------------------------------------------------------------------------------------------------------------------------------------
nano banana 2, nano2, flash, default/generate/image/google/nano-banana-flashFastest/cheapest, intelligent multi-image
flux, flux-dev, bfl/generate/image/bfl/flux-1-devVersatile generation, LoRAs, custom ratios
imagen, imagen4, imagen-4, google/generate/image/google/imagen-4-fastPhotorealism, typography, fast output
seedream, seedream3, bytedance/generate/image/bytedance/seedream-3Photorealism, flexible resolution
ideogram, ideogram3, ideogram-3/generate/image/ideogram/ideogram-3Flat/graphic styles, text-in-image
nano banana pro, nano pro, pro/generate/image/google/nano-banana-proTypography, photorealism, 4K res
nano banana, nano, nano1/generate/image/google/nano-bananaBase/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 <5s) — 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

ModelTips & timing estimate
----------------------------------------------------------------------------------------------
Nano Banana 2Default: Rich scenes; fast (15-30s), batchSize 1-4, aspectRatio
FluxDetailed photo/style (30-90s), steps:20-40
Imagen 4 FastProduct shots (20-45s)
Seedream 3Photoreal "8K detail" (45-120s)
Ideogram 3.0Text-in-image, "poster style" (30-60s)
Nano Banana ProTypography/4K photoreal (25-60s)
Nano BananaBasic scenes (20-45s), webhook support

Config

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

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 23:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 837 📥 213,276
productivity

Trello Planner

tomas-mikula
基于官方 Boards API 的只读 Trello 规划工具。🧠 AI 规划:任务优先级排序、冲刺容量规划、看板优化 📊 分析:列表/卡片/成员...
★ 0 📥 725
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 243,982