AI Built Into Your Stack
Cloudflare Workers AI and Fal.ai powered AI capabilities, ready out of the box.
TanStarter ships with production-ready AI capabilities powered by Cloudflare Workers AI and TanStack AI. No GPU setup, no separate infrastructure — just server functions that call AI models directly from your deployment.
Cloudflare Workers AI at the Edge
Cloudflare Workers AI runs inference on hardware across 200+ data centers. Your requests route to the nearest instance — milliseconds latency, pay-per-request pricing.
Text processing — summarization and translation across 10 languages.
Text-to-speech — 12 voices with cost preview before synthesis.
Image captioning — LLaVA 1.5 handles image-to-text with preset or custom prompts.
Image generation — Flux.1 Schnell, SDXL Lightning, and DreamShaper 8 LCM at the edge.
TanStack AI + Fal.ai for Premium Images
For higher quality output, the template integrates @tanstack/ai with the Fal.ai adapter:
- Gemini 2.5 Flash — Google's latest image model
- Flux Schnell — Fast and affordable
- GPT Image 2 — OpenAI's latest with sharp text rendering
Image editing — upload a portrait, apply styles like Pixar 3D or Anime Portrait.
Ready to Ship
Three environment variables activate everything:
| Variable | Purpose |
|---|---|
CLOUDFLARE_ACCOUNT_ID | Workers AI access |
CLOUDFLARE_API_TOKEN | Workers AI authorization |
FAL_KEY | Fal.ai image generation |
Set them with wrangler secret put. The AI features are part of your Cloudflare Workers deployment.