cloudflare-workers-ai

Run AI inference and integrate models on Cloudflare Workers AI with streaming and OpenAI-compatible endpoints.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-workers-ai-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers-ai
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/cloudflare-workers-ai
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-workers-ai-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Workers AI provides a complete reference for running AI models at the edge, including streaming text generation, embeddings for RAG, image generation, and vision models, all via Cloudflare’s AI bindings and gateway integration.

Core Features & Use Cases

  • Text generation with streaming (LLMs) via the AI binding
  • Embeddings for retrieval augmented generation (RAG)
  • Image generation and vision model capabilities at the edge
  • AI Gateway integration for logging and cost tracking
  • OpenAI-compatible endpoints and model selection guidance

Quick Start

  • Bind AI in wrangler.jsonc and call env.AI.run(model, inputs) 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 run AI models at the edge with Cloudflare Workers?

Cloudflare Workers AI enables you to run AI models at the edge by binding the AI service in wrangler.jsonc and calling env.AI.run(model, inputs). This lets you execute text generation, embeddings, image generation, and vision models directly on Cloudflare's infrastructure without routing requests to external APIs.

Can I stream text generation responses from Cloudflare Workers AI?

Yes, Cloudflare Workers AI supports streaming for text generation via the AI binding. Enable streaming in your inputs to receive LLM responses incrementally, reducing latency and improving user experience for long-form text output.

How do I implement embeddings and RAG with Cloudflare Workers?

Use Cloudflare Workers AI to generate embeddings for your documents, then retrieve and rank them for retrieval augmented generation. The AI binding handles embedding model inference at the edge, enabling fast semantic search without external vector databases.

Does Cloudflare Workers AI work with OpenAI-compatible endpoints?

Yes, Cloudflare Workers AI provides OpenAI-compatible endpoints, allowing you to use the same client libraries and API patterns you're familiar with while running models at the edge with AI Gateway integration for logging and cost tracking.

What AI capabilities does Cloudflare Workers AI support?

Cloudflare Workers AI supports text generation, embeddings, image generation, vision models, and function calling. It integrates with AI Gateway for request logging, cost tracking, and rate limit resilience while handling model availability automatically.

How do I track costs and logs for AI inference on Cloudflare?

Integrate Cloudflare AI Gateway with Workers AI to centralize logging, cost tracking, and analytics. Gateway captures all inference requests, providing visibility into model usage and spending across your edge applications.