| ---
|
| title: IMGGENAI
|
| emoji: ⚡
|
| colorFrom: purple
|
| colorTo: pink
|
| sdk: docker
|
| app_port: 7860
|
| pinned: false
|
| license: mit
|
| ---
|
|
|
| # IMGGENAI — Krea-2 REST API
|
|
|
| AI image generation as a service. Wraps the [krea/Krea-2](https://huggingface.co/spaces/krea/Krea-2) HuggingFace Space with a REST API optimized for **agentic AI tool-calling**.
|
|
|
| ## Features
|
|
|
| - 🚀 100 parallel proxy workers per request — fastest wins
|
| - 🌐 Anonymous (no HF login required)
|
| - 🎯 GET-only endpoints, JSON responses, ready for agent tools
|
| - 🧠 SQLite proxy DB with auto-ranking (good boosted, bad banned)
|
| - ⚡ Up to 10 images in parallel via `?n=10`
|
| - 📊 OpenAPI schema at `/openapi.json`, Swagger at `/docs`
|
|
|
| ## Quick Start
|
|
|
| ```bash
|
| # Single image
|
| curl "https://elmarcito-imggenai.hf.space/generate?prompt=a+cyberpunk+cat"
|
|
|
| # 5 variants in parallel
|
| curl "https://elmarcito-imggenai.hf.space/generate?prompt=sunset&n=5"
|
|
|
| # Async mode
|
| curl "https://elmarcito-imggenai.hf.space/generate?prompt=art&async=true"
|
|
|
| # Batch different prompts
|
| curl "https://elmarcito-imggenai.hf.space/batch?prompts=cat|dog|bird" |