Cloudflare Workers AI image generator using FLUX-2-dev with optional Llama prompt enhancement and multi-reference image support.
- Text-to-image generation with automatic prompt enhancement via Llama 3.2 3B
- Multi-reference image support (up to 4 PNG images)
- Real-time error handling for capacity and content moderation
- Comprehensive logging for debugging
Enter a prompt. Llama enhances it before FLUX generates the image.
Upload 1-4 PNG images and provide a prompt. FLUX uses images as references.
- 3040: Capacity exceeded. Retry after brief delay.
- 3030: Content moderation flag. Modify prompt to avoid copyrighted or public persona references.
View real-time logs:
wrangler tail@cf/meta/llama-3.2-3b-instruct- Prompt enhancement@cf/black-forest-labs/flux-2-dev- Image generation
Llama LLM requests are routed through Cloudflare AI Gateway (ai-gateway-image-generator) for analytics, caching, and rate limiting.
For educational purposes only.