README.md

Created about 12 hours ago

attributes
source_pathreferences/ai-gateway/README.md
source_sha25687498b44d8f22ef991b426b8d779ab58ab40f781bbcf917c8224ecb348caee80
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/ai-gateway/README.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Cloudflare AI Gateway

Use AI Gateway to observe and control requests to AI providers through caching, rate limiting, logging, and routing.

Fetch the linked documentation before choosing endpoints, authentication headers, SDK options, model names, or limits. Keep implementation details in the current docs.

Choose a task

Task Reference
Create a gateway or choose authentication and provider credentials Configuration
Integrate an SDK, direct HTTP, or a Worker binding SDK integration
Configure caching, rate limits, security, billing, or logging Features
Add fallbacks, conditional routing, or traffic splits Dynamic routing
Diagnose failed requests, caching, or missing logs Troubleshooting

For new single-model calls, start with the REST API or Workers bindings, depending on the runtime. Preserve provider-native integrations when their API shape is needed; use the corresponding provider guide.

The legacy Unified API is deprecated for single-model calls but remains required for dynamic routes. Check the task before changing an existing endpoint.

Gateway authentication and upstream provider credentials are separate concerns. Choose the endpoint first, then follow its authentication and billing requirements in configuration.

Related references

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.