[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79A53FV984MVHB38S453FEK":3,"skill-same:01M79A53FV984MVHB38S453FEK":120},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":14,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":63,"install":64,"resources":77},"01M79A53FV984MVHB38S453FEK","cloudflare-workers-ai",null,"Cloudflare Workers AI for serverless GPU inference. Use for LLMs, text\u002Fimage generation, embeddings, or encountering AI_ERROR, rate limits, token exceeded errors.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-workers-ai\ndescription: \"Cloudflare Workers AI for serverless GPU inference. Use for LLMs, text\u002Fimage generation, embeddings, or encountering AI_ERROR, rate limits, token exceeded errors.\"\n\nmetadata:\n  keywords:\n    - workers ai\n    - cloudflare ai\n    - ai bindings\n    - llm workers\n    - \"@cf\u002Fmeta\u002Fllama\"\n    - workers ai models\n    - ai inference\n    - cloudflare llm\n    - ai streaming\n    - text generation ai\n    - ai embeddings\n    - image generation ai\n    - workers ai rag\n    - ai gateway\n    - llama workers\n    - flux image generation\n    - stable diffusion workers\n    - vision models ai\n    - ai chat completion\n    - AI_ERROR\n    - rate limit ai\n    - model not found\n    - token limit exceeded\n    - neurons exceeded\n    - ai quota exceeded\n    - streaming failed\n    - model unavailable\n    - workers ai hono\n    - ai gateway workers\n    - vercel ai sdk workers\n    - openai compatible workers\n    - workers ai vectorize\n\nlicense: MIT\n---\n# Cloudflare Workers AI - Complete Reference\n\nProduction-ready knowledge domain for building AI-powered applications with Cloudflare Workers AI.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-21\n**Dependencies**: cloudflare-worker-base (for Worker setup)\n**Latest Versions**: wrangler@4.43.0, @cloudflare\u002Fworkers-types@4.20251014.0\n\n---\n\n## Table of Contents\n\n1. [Quick Start (5 minutes)](#quick-start-5-minutes)\n2. [Workers AI API Reference](#workers-ai-api-reference)\n3. [Model Selection Guide](#model-selection-guide)\n4. [Common Patterns](#common-patterns)\n5. [AI Gateway Integration](#ai-gateway-integration)\n6. [Rate Limits & Pricing](#rate-limits--pricing)\n7. [Production Checklist](#production-checklist)\n\n---\n\n## Quick Start (5 minutes)\n\n### 1. Add AI Binding\n\n**wrangler.jsonc:**\n```jsonc\n{\n  \"ai\": {\n    \"binding\": \"AI\"\n  }\n}\n```\n\n### 2. Run Your First Model\n\n```typescript\nexport interface Env {\n  AI: Ai;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const response = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n      prompt: 'What is Cloudflare?',\n    });\n\n    return Response.json(response);\n  },\n};\n```\n\n### 3. Add Streaming (Recommended)\n\n```typescript\nconst stream = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n  messages: [{ role: 'user', content: 'Tell me a story' }],\n  stream: true, \u002F\u002F Always use streaming for text generation!\n});\n\nreturn new Response(stream, {\n  headers: { 'content-type': 'text\u002Fevent-stream' },\n});\n```\n\n**Why streaming?**\n- Prevents buffering large responses in memory\n- Faster time-to-first-token\n- Better user experience for long-form content\n- Avoids Worker timeout issues\n\n---\n\n## Workers AI API Reference\n\n### Core API: `env.AI.run()`\n\n```typescript\nconst response = await env.AI.run(model, inputs, options?);\n```\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `model` | string | Model ID (e.g., `@cf\u002Fmeta\u002Fllama-3.1-8b-instruct`) |\n| `inputs` | object | Model-specific inputs (see model type below) |\n| `options.gateway.id` | string | AI Gateway ID for caching\u002Flogging |\n| `options.gateway.skipCache` | boolean | Skip AI Gateway cache |\n\n**Returns**: `Promise\u003CModelOutput>` (non-streaming) or `ReadableStream` (streaming)\n\n### Input Types by Model Category\n\n| Category | Key Inputs | Output |\n|----------|------------|--------|\n| **Text Generation** | `messages[]`, `stream`, `max_tokens`, `temperature` | `{ response: string }` |\n| **Embeddings** | `text: string \\| string[]` | `{ data: number[][], shape: number[] }` |\n| **Image Generation** | `prompt`, `num_steps`, `guidance` | Binary PNG |\n| **Vision** | `messages[].content[].image_url` | `{ response: string }` |\n\n📄 **Full model details**: Load `references\u002Fmodels-catalog.md` for complete model list, parameters, and rate limits.\n\n---\n\n## Model Selection Guide\n\n### Text Generation (LLMs)\n\n| Model | Best For | Rate Limit | Size |\n|-------|----------|------------|------|\n| `@cf\u002Fmeta\u002Fllama-3.1-8b-instruct` | General purpose, fast | 300\u002Fmin | 8B |\n| `@cf\u002Fmeta\u002Fllama-3.2-1b-instruct` | Ultra-fast, simple tasks | 300\u002Fmin | 1B |\n| `@cf\u002Fqwen\u002Fqwen1.5-14b-chat-awq` | High quality, complex reasoning | 150\u002Fmin | 14B |\n| `@cf\u002Fdeepseek-ai\u002Fdeepseek-r1-distill-qwen-32b` | Coding, technical content | 300\u002Fmin | 32B |\n| `@hf\u002Fthebloke\u002Fmistral-7b-instruct-v0.1-awq` | Fast, efficient | 400\u002Fmin | 7B |\n\n### Text Embeddings\n\n| Model | Dimensions | Best For | Rate Limit |\n|-------|-----------|----------|------------|\n| `@cf\u002Fbaai\u002Fbge-base-en-v1.5` | 768 | General purpose RAG | 3000\u002Fmin |\n| `@cf\u002Fbaai\u002Fbge-large-en-v1.5` | 1024 | High accuracy search | 1500\u002Fmin |\n| `@cf\u002Fbaai\u002Fbge-small-en-v1.5` | 384 | Fast, low storage | 3000\u002Fmin |\n\n### Image Generation\n\n| Model | Best For | Rate Limit | Speed |\n|-------|----------|------------|-------|\n| `@cf\u002Fblack-forest-labs\u002Fflux-1-schnell` | High quality, photorealistic | 720\u002Fmin | Fast |\n| `@cf\u002Fstabilityai\u002Fstable-diffusion-xl-base-1.0` | General purpose | 720\u002Fmin | Medium |\n| `@cf\u002Flykon\u002Fdreamshaper-8-lcm` | Artistic, stylized | 720\u002Fmin | Fast |\n\n### Vision Models\n\n| Model | Best For | Rate Limit |\n|-------|----------|------------|\n| `@cf\u002Fmeta\u002Fllama-3.2-11b-vision-instruct` | Image understanding | 720\u002Fmin |\n| `@cf\u002Funum\u002Fuform-gen2-qwen-500m` | Fast image captioning | 720\u002Fmin |\n\n---\n\n## Common Patterns\n\n### Pattern 1: Chat with Streaming\n\n```typescript\napp.post('\u002Fchat', async (c) => {\n  const { messages } = await c.req.json\u003C{ messages: Array\u003C{ role: string; content: string }> }>();\n  const stream = await c.env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', { messages, stream: true });\n  return new Response(stream, { headers: { 'content-type': 'text\u002Fevent-stream' } });\n});\n```\n\n### Pattern 2: RAG (Retrieval Augmented Generation)\n\n```typescript\n\u002F\u002F 1. Generate embedding for query\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', { text: [userQuery] });\n\u002F\u002F 2. Search Vectorize\nconst matches = await env.VECTORIZE.query(embeddings.data[0], { topK: 3 });\n\u002F\u002F 3. Build context\nconst context = matches.matches.map((m) => m.metadata.text).join('\\n\\n');\n\u002F\u002F 4. Generate with context\nconst stream = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n  messages: [\n    { role: 'system', content: `Answer using this context:\\n${context}` },\n    { role: 'user', content: userQuery },\n  ],\n  stream: true,\n});\nreturn new Response(stream, { headers: { 'content-type': 'text\u002Fevent-stream' } });\n```\n\n📄 **More patterns**: Load `references\u002Fbest-practices.md` for structured output, image generation, multi-model consensus, and production patterns.\n\n---\n\n## AI Gateway Integration\n\nEnable caching, logging, and cost tracking with AI Gateway:\n\n```typescript\nconst response = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', { prompt: 'Hello' }, {\n  gateway: { id: 'my-gateway', skipCache: false },\n});\n```\n\n**Benefits**: Cost tracking, response caching (50-90% savings on repeated queries), request logging, rate limiting, analytics.\n\n---\n\n## Rate Limits & Pricing\n\n**Information last verified**: 2025-01-14\n\nRate limits and pricing vary significantly by model. Always check the official documentation for the most current information:\n\n- **Rate Limits**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Flimits\u002F\n- **Pricing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Fpricing\u002F\n\n**Free Tier**: 10,000 neurons\u002Fday\n**Paid Tier**: $0.011 per 1,000 neurons\n\n📄 **Per-model details**: See `references\u002Fmodels-catalog.md` for specific rate limits and pricing for each model.\n\n---\n\n## Production Checklist\n\n**Essential before deploying:**\n- [ ] Enable AI Gateway for cost tracking\n- [ ] Implement streaming for text generation\n- [ ] Add rate limit retry with exponential backoff\n- [ ] Validate input length (prevent token limit errors)\n- [ ] Add input sanitization (prevent prompt injection)\n\n📄 **Full checklist**: Load `references\u002Fbest-practices.md` for complete production checklist, error handling patterns, monitoring, and cost optimization.\n\n---\n\n## External SDK Integrations\n\nWorkers AI supports OpenAI SDK compatibility and Vercel AI SDK:\n\n```typescript\n\u002F\u002F OpenAI SDK - use same patterns with Workers AI models\nconst openai = new OpenAI({\n  apiKey: env.CLOUDFLARE_API_KEY,\n  baseURL: `https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Faccounts\u002F${env.CLOUDFLARE_ACCOUNT_ID}\u002Fai\u002Fv1`,\n});\n\n\u002F\u002F Vercel AI SDK - native integration\nimport { createWorkersAI } from 'workers-ai-provider';\nconst workersai = createWorkersAI({ binding: env.AI });\n```\n\n📄 **Full integration guide**: Load `references\u002Fintegrations.md` for OpenAI SDK, Vercel AI SDK, and REST API examples.\n\n---\n\n## Limits Summary\n\n| Feature | Limit |\n|---------|-------|\n| Concurrent requests | No hard limit (rate limits apply) |\n| Max input tokens | Varies by model (typically 2K-128K) |\n| Max output tokens | Varies by model (typically 512-2048) |\n| Streaming chunk size | ~1 KB |\n| Image size (output) | ~5 MB |\n| Request timeout | Workers timeout applies (30s default, 5m max CPU) |\n| Daily free neurons | 10,000 |\n| Rate limits | See \"Rate Limits & Pricing\" section |\n\n---\n\n## When to Load References\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fmodels-catalog.md` | Choosing a model, checking rate limits, comparing model capabilities |\n| `references\u002Fbest-practices.md` | Production deployment, error handling, cost optimization, security |\n| `references\u002Fintegrations.md` | Using OpenAI SDK, Vercel AI SDK, or REST API instead of native binding |\n\n---\n\n## References\n\n- [Workers AI Docs](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002F)\n- [Models Catalog](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fmodels\u002F)\n- [AI Gateway](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fai-gateway\u002F)\n- [Pricing](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Fpricing\u002F)\n","# Cloudflare Workers AI - Complete Reference\n\nProduction-ready knowledge domain for building AI-powered applications with Cloudflare Workers AI.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-21\n**Dependencies**: cloudflare-worker-base (for Worker setup)\n**Latest Versions**: wrangler@4.43.0, @cloudflare\u002Fworkers-types@4.20251014.0\n\n---\n\n## Table of Contents\n\n1. [Quick Start (5 minutes)](#quick-start-5-minutes)\n2. [Workers AI API Reference](#workers-ai-api-reference)\n3. [Model Selection Guide](#model-selection-guide)\n4. [Common Patterns](#common-patterns)\n5. [AI Gateway Integration](#ai-gateway-integration)\n6. [Rate Limits & Pricing](#rate-limits--pricing)\n7. [Production Checklist](#production-checklist)\n\n---\n\n## Quick Start (5 minutes)\n\n### 1. Add AI Binding\n\n**wrangler.jsonc:**\n```jsonc\n{\n  \"ai\": {\n    \"binding\": \"AI\"\n  }\n}\n```\n\n### 2. Run Your First Model\n\n```typescript\nexport interface Env {\n  AI: Ai;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const response = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n      prompt: 'What is Cloudflare?',\n    });\n\n    return Response.json(response);\n  },\n};\n```\n\n### 3. Add Streaming (Recommended)\n\n```typescript\nconst stream = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n  messages: [{ role: 'user', content: 'Tell me a story' }],\n  stream: true, \u002F\u002F Always use streaming for text generation!\n});\n\nreturn new Response(stream, {\n  headers: { 'content-type': 'text\u002Fevent-stream' },\n});\n```\n\n**Why streaming?**\n- Prevents buffering large responses in memory\n- Faster time-to-first-token\n- Better user experience for long-form content\n- Avoids Worker timeout issues\n\n---\n\n## Workers AI API Reference\n\n### Core API: `env.AI.run()`\n\n```typescript\nconst response = await env.AI.run(model, inputs, options?);\n```\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `model` | string | Model ID (e.g., `@cf\u002Fmeta\u002Fllama-3.1-8b-instruct`) |\n| `inputs` | object | Model-specific inputs (see model type below) |\n| `options.gateway.id` | string | AI Gateway ID for caching\u002Flogging |\n| `options.gateway.skipCache` | boolean | Skip AI Gateway cache |\n\n**Returns**: `Promise\u003CModelOutput>` (non-streaming) or `ReadableStream` (streaming)\n\n### Input Types by Model Category\n\n| Category | Key Inputs | Output |\n|----------|------------|--------|\n| **Text Generation** | `messages[]`, `stream`, `max_tokens`, `temperature` | `{ response: string }` |\n| **Embeddings** | `text: string \\| string[]` | `{ data: number[][], shape: number[] }` |\n| **Image Generation** | `prompt`, `num_steps`, `guidance` | Binary PNG |\n| **Vision** | `messages[].content[].image_url` | `{ response: string }` |\n\n📄 **Full model details**: Load `references\u002Fmodels-catalog.md` for complete model list, parameters, and rate limits.\n\n---\n\n## Model Selection Guide\n\n### Text Generation (LLMs)\n\n| Model | Best For | Rate Limit | Size |\n|-------|----------|------------|------|\n| `@cf\u002Fmeta\u002Fllama-3.1-8b-instruct` | General purpose, fast | 300\u002Fmin | 8B |\n| `@cf\u002Fmeta\u002Fllama-3.2-1b-instruct` | Ultra-fast, simple tasks | 300\u002Fmin | 1B |\n| `@cf\u002Fqwen\u002Fqwen1.5-14b-chat-awq` | High quality, complex reasoning | 150\u002Fmin | 14B |\n| `@cf\u002Fdeepseek-ai\u002Fdeepseek-r1-distill-qwen-32b` | Coding, technical content | 300\u002Fmin | 32B |\n| `@hf\u002Fthebloke\u002Fmistral-7b-instruct-v0.1-awq` | Fast, efficient | 400\u002Fmin | 7B |\n\n### Text Embeddings\n\n| Model | Dimensions | Best For | Rate Limit |\n|-------|-----------|----------|------------|\n| `@cf\u002Fbaai\u002Fbge-base-en-v1.5` | 768 | General purpose RAG | 3000\u002Fmin |\n| `@cf\u002Fbaai\u002Fbge-large-en-v1.5` | 1024 | High accuracy search | 1500\u002Fmin |\n| `@cf\u002Fbaai\u002Fbge-small-en-v1.5` | 384 | Fast, low storage | 3000\u002Fmin |\n\n### Image Generation\n\n| Model | Best For | Rate Limit | Speed |\n|-------|----------|------------|-------|\n| `@cf\u002Fblack-forest-labs\u002Fflux-1-schnell` | High quality, photorealistic | 720\u002Fmin | Fast |\n| `@cf\u002Fstabilityai\u002Fstable-diffusion-xl-base-1.0` | General purpose | 720\u002Fmin | Medium |\n| `@cf\u002Flykon\u002Fdreamshaper-8-lcm` | Artistic, stylized | 720\u002Fmin | Fast |\n\n### Vision Models\n\n| Model | Best For | Rate Limit |\n|-------|----------|------------|\n| `@cf\u002Fmeta\u002Fllama-3.2-11b-vision-instruct` | Image understanding | 720\u002Fmin |\n| `@cf\u002Funum\u002Fuform-gen2-qwen-500m` | Fast image captioning | 720\u002Fmin |\n\n---\n\n## Common Patterns\n\n### Pattern 1: Chat with Streaming\n\n```typescript\napp.post('\u002Fchat', async (c) => {\n  const { messages } = await c.req.json\u003C{ messages: Array\u003C{ role: string; content: string }> }>();\n  const stream = await c.env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', { messages, stream: true });\n  return new Response(stream, { headers: { 'content-type': 'text\u002Fevent-stream' } });\n});\n```\n\n### Pattern 2: RAG (Retrieval Augmented Generation)\n\n```typescript\n\u002F\u002F 1. Generate embedding for query\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', { text: [userQuery] });\n\u002F\u002F 2. Search Vectorize\nconst matches = await env.VECTORIZE.query(embeddings.data[0], { topK: 3 });\n\u002F\u002F 3. Build context\nconst context = matches.matches.map((m) => m.metadata.text).join('\\n\\n');\n\u002F\u002F 4. Generate with context\nconst stream = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', {\n  messages: [\n    { role: 'system', content: `Answer using this context:\\n${context}` },\n    { role: 'user', content: userQuery },\n  ],\n  stream: true,\n});\nreturn new Response(stream, { headers: { 'content-type': 'text\u002Fevent-stream' } });\n```\n\n📄 **More patterns**: Load `references\u002Fbest-practices.md` for structured output, image generation, multi-model consensus, and production patterns.\n\n---\n\n## AI Gateway Integration\n\nEnable caching, logging, and cost tracking with AI Gateway:\n\n```typescript\nconst response = await env.AI.run('@cf\u002Fmeta\u002Fllama-3.1-8b-instruct', { prompt: 'Hello' }, {\n  gateway: { id: 'my-gateway', skipCache: false },\n});\n```\n\n**Benefits**: Cost tracking, response caching (50-90% savings on repeated queries), request logging, rate limiting, analytics.\n\n---\n\n## Rate Limits & Pricing\n\n**Information last verified**: 2025-01-14\n\nRate limits and pricing vary significantly by model. Always check the official documentation for the most current information:\n\n- **Rate Limits**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Flimits\u002F\n- **Pricing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Fpricing\u002F\n\n**Free Tier**: 10,000 neurons\u002Fday\n**Paid Tier**: $0.011 per 1,000 neurons\n\n📄 **Per-model details**: See `references\u002Fmodels-catalog.md` for specific rate limits and pricing for each model.\n\n---\n\n## Production Checklist\n\n**Essential before deploying:**\n- [ ] Enable AI Gateway for cost tracking\n- [ ] Implement streaming for text generation\n- [ ] Add rate limit retry with exponential backoff\n- [ ] Validate input length (prevent token limit errors)\n- [ ] Add input sanitization (prevent prompt injection)\n\n📄 **Full checklist**: Load `references\u002Fbest-practices.md` for complete production checklist, error handling patterns, monitoring, and cost optimization.\n\n---\n\n## External SDK Integrations\n\nWorkers AI supports OpenAI SDK compatibility and Vercel AI SDK:\n\n```typescript\n\u002F\u002F OpenAI SDK - use same patterns with Workers AI models\nconst openai = new OpenAI({\n  apiKey: env.CLOUDFLARE_API_KEY,\n  baseURL: `https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Faccounts\u002F${env.CLOUDFLARE_ACCOUNT_ID}\u002Fai\u002Fv1`,\n});\n\n\u002F\u002F Vercel AI SDK - native integration\nimport { createWorkersAI } from 'workers-ai-provider';\nconst workersai = createWorkersAI({ binding: env.AI });\n```\n\n📄 **Full integration guide**: Load `references\u002Fintegrations.md` for OpenAI SDK, Vercel AI SDK, and REST API examples.\n\n---\n\n## Limits Summary\n\n| Feature | Limit |\n|---------|-------|\n| Concurrent requests | No hard limit (rate limits apply) |\n| Max input tokens | Varies by model (typically 2K-128K) |\n| Max output tokens | Varies by model (typically 512-2048) |\n| Streaming chunk size | ~1 KB |\n| Image size (output) | ~5 MB |\n| Request timeout | Workers timeout applies (30s default, 5m max CPU) |\n| Daily free neurons | 10,000 |\n| Rate limits | See \"Rate Limits & Pricing\" section |\n\n---\n\n## When to Load References\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fmodels-catalog.md` | Choosing a model, checking rate limits, comparing model capabilities |\n| `references\u002Fbest-practices.md` | Production deployment, error handling, cost optimization, security |\n| `references\u002Fintegrations.md` | Using OpenAI SDK, Vercel AI SDK, or REST API instead of native binding |\n\n---\n\n## References\n\n- [Workers AI Docs](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002F)\n- [Models Catalog](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fmodels\u002F)\n- [AI Gateway](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fai-gateway\u002F)\n- [Pricing](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fplatform\u002Fpricing\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"keywords":25},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],"workers ai","cloudflare ai","ai bindings","llm workers","@cf\u002Fmeta\u002Fllama","workers ai models","ai inference","cloudflare llm","ai streaming","text generation ai","ai embeddings","image generation ai","workers ai rag","ai gateway","llama workers","flux image generation","stable diffusion workers","vision models ai","ai chat completion","AI_ERROR","rate limit ai","model not found","token limit exceeded","neurons exceeded","ai quota exceeded","streaming failed","model unavailable","workers ai hono","ai gateway workers","vercel ai sdk workers","openai compatible workers","workers ai vectorize","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-workers-ai",{"tool":70,"command":71},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-workers-ai",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-workers-ai","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002FSKILL.md",true,[78,84,88,92,98,102,106,110,114],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fbest-practices.md","REFERENCE","参考文档",11515,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Freferences\u002Fbest-practices.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fintegrations.md",5729,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Freferences\u002Fintegrations.md",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fmodels-catalog.md",7491,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Freferences\u002Fmodels-catalog.md",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"templates\u002Fai-embeddings-rag.ts","SCRIPT","脚本",11881,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fai-embeddings-rag.ts",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"templates\u002Fai-gateway-integration.ts",9639,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fai-gateway-integration.ts",{"path":103,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":104,"sourceHtmlUrl":105},"templates\u002Fai-image-generation.ts",9868,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fai-image-generation.ts",{"path":107,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":108,"sourceHtmlUrl":109},"templates\u002Fai-text-generation.ts",11157,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fai-text-generation.ts",{"path":111,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":112,"sourceHtmlUrl":113},"templates\u002Fai-vision-models.ts",10528,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fai-vision-models.ts",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"templates\u002Fwrangler-ai-config.jsonc","OTHER","其他",2788,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-workers-ai\u002Fskills\u002Fcloudflare-workers-ai\u002Ftemplates\u002Fwrangler-ai-config.jsonc",[121,129,136,143,150,157],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":125,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]