Cached Image Generator

AI-powered text-to-image with smart caching

How It Works

Generate images from text prompts using the /generate/:prompt endpoint. Images are cached on first generation, so subsequent requests for the same prompt return instantly.

GET /generate/{your-prompt}?format={format}

Available Formats

Use the ?format= query parameter to specify the aspect ratio:

square (default)
1024 × 1024
portrait-3_4
768 × 1024
portrait-9_16
576 × 1024
landscape-4_3
1024 × 768
landscape-16_9
1024 × 576

Examples

/generate/a-cat-wearing-glasses
/generate/sunset-over-mountains?format=landscape-16_9
/generate/portrait-of-a-wizard?format=portrait-9_16

💡 Prompts are slugified for caching. Use hyphens or spaces—they work the same way!