cloudflare-workers-ai

Run scalable AI inference on Cloudflare Workers with model selection and streaming outputs.

961|99|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-workers-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers-ai
Source: https://github.com/jezweb/claude-skills/tree/main/skills/cloudflare-workers-ai
Command: npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-workers-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cloudflare-worker-base, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of setting up and managing AI infrastructure, allowing you to deploy production-ready AI features in minutes instead of weeks.

Core Features & Use Cases

  • Text Generation: Use 50+ LLMs like Llama 4, Gemma 3, and Mistral 3.1 with streaming support.
  • Image Generation: Create photorealistic images with Flux and Stable Diffusion models.
  • RAG Implementation: Build semantic search with BGE embeddings (2x faster in 2025).
  • Use Case: Imagine you need to add a smart chat feature to your website. Use this Skill to instantly deploy a streaming AI assistant that responds in real-time.

Quick Start

Use the cloudflare-workers-ai skill to generate a story about space exploration using the Llama 3.1 model with streaming enabled.

Frequently Asked Questions about cloudflare-workers-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy AI models globally without managing infrastructure?

Deploy AI models globally using Cloudflare Workers AI to run inference at the edge. The Skill handles model selection, streaming, and caching across Cloudflare's network, eliminating infrastructure setup so you focus on application logic.

Can I build a RAG pipeline with embeddings on Cloudflare Workers?

Yes. Build semantic search and RAG pipelines using BGE embeddings via Cloudflare Workers AI. The Skill provides embedding-based retrieval with 2025 performance improvements and AI Gateway caching for cost-effective retrieval.

What LLMs and image generation models are available?

Access 50+ LLMs including Llama 3.1, Gemma 3, and Mistral 3.1 for text generation with streaming support. Image generation uses Flux and Stable Diffusion models, all deployable through Cloudflare Workers AI.

How do I stream AI responses from a serverless worker?

Enable streaming AI responses using Cloudflare Workers AI with OpenAI-style API compatibility. The Skill handles real-time output streaming for chat assistants and text generation without buffering entire responses.

Does Cloudflare Workers AI work with existing APIs I'm using?

Yes. Cloudflare Workers AI provides OpenAI-compatible APIs, enabling drop-in compatibility with existing integrations. Use it alongside cloudflare-worker-base for a complete serverless AI deployment.

What's the benefit of using AI Gateway caching with Workers AI?

AI Gateway caching reduces costs and latency by caching embeddings and model outputs across Cloudflare's global network. This Skill integrates caching to optimize repeated queries and large-scale inference workloads.