# Cloudflare Workers AI — Serverless AI Inference > Run AI models at the edge with Cloudflare Workers. Text generation, image generation, speech-to-text, translation, embeddings — all serverless with global distribution. ## Install Save as a script file and run: ## Quick Use ```bash npx wrangler init my-ai-app cd my-ai-app ``` ```javascript export default { async fetch(request, env) { const response = await env.AI.run("@cf/meta/llama-3-8b-instruct", { prompt: "What is the capital of France?" }); return Response.json(response); } }; ``` --- ## Intro Cloudflare Workers AI lets you run AI models serverlessly at the edge — close to your users worldwide. No GPU management, no infrastructure. Just deploy and scale automatically. **Best for**: AI-powered APIs, edge inference, low-latency AI features **Works with**: Cloudflare Workers, Pages --- ## Available Models - **Text Generation**: Llama 3, Mistral, Gemma, Phi - **Image Generation**: Stable Diffusion, SDXL - **Speech-to-Text**: Whisper - **Translation**: M2M-100 - **Embeddings**: BGE, all-MiniLM - **Image Classification**: ResNet - **Text Classification**: Sentiment analysis --- ## Pricing - **Free tier**: 10,000 neurons/day - **Pay-as-you-go**: Usage-based pricing per model --- ### FAQ **Q: What is Cloudflare Workers AI?** A: Run AI models at the edge with Cloudflare Workers. Text generation, image generation, speech-to-text, translation, embeddings — all serverless with global distribution. **Q: How do I install Cloudflare Workers AI?** A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes. ## Source & Thanks > Created by [Cloudflare](https://developers.cloudflare.com/workers-ai/). > [Cloudflare Workers AI](https://ai.cloudflare.com) --- Source: https://tokrepo.com/en/workflows/422d0627-e9a9-4dd2-80a0-859e0dc25edf Author: Script Depot