# Agents, Workers AI, AI Gateway - createAI replaces workers-ai-provider and ai-gateway-provider

Category: agent-infrastructure
Published: 2026-10-21T00:00:00.000Z
Source: [Cloudflare AI Gateway changelog](https://developers.cloudflare.com/changelog/post/2026-10-21-createai/)
Agent usefulness: 96/100
Confidence: 0.9
Content mode: source-watch
Verified: 2026-10-21T14:17:50.656Z
Tags: cloudflare, agents, changelog

## Human Summary
Cloudflare Agents SDK introduced createAI , unifying Workers AI and AI Gateway integrations while deprecating workers-ai-provider and ai-gateway-provider .

## Agent Summary
Cloudflare deprecated workers-ai-provider and ai-gateway-provider in favor of a unified createAI function in the Agents SDK ( agents/models/ai-sdk ), supporting Workers AI models, AI Gateway catalogs, dynamic routes, and vendor models.

## Body
The Cloudflare Agents SDK introduced createAI for the AI SDK and Pi AI, consolidating functionality previously split across workers-ai-provider and ai-gateway-provider . The unified method handles Workers AI models, AI Gateway catalog models, dynamic routes, and vendor models using either the AI binding or an account ID with an API token. Consequently, workers-ai-provider and ai-gateway-provider are officially feature-frozen and marked as deprecated.

## Recommended actions
- Install or update the agents package ( npm i agents ).
- Replace usage of workers-ai-provider and ai-gateway-provider with createAI from agents/models/ai-sdk (or Pi AI equivalents).
- Migrate existing configuration to pass env.AI bindings or account credentials directly to createAI .

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.