← Back
Cloudflare
Cloudflare AI Gateway now auto-provisions on first API call

Zero-Setup AI Gateway Access

Cloudflare has removed a significant friction point from AI Gateway adoption. Previously, developers had to manually create and configure a gateway before using the service. Now, using default as your gateway ID automatically provisions a gateway on the first API call.

How It Works

Simply set your gateway ID to default and make your first request. AI Gateway will:

  • Automatically create a gateway instance for your account
  • Enable logging, caching, and rate limiting out of the box
  • Provide access to multiple AI providers through a unified endpoint

Getting Started

Developers need only:

  1. Create an API token with AI Gateway - Read, AI Gateway - Edit, and Workers AI - Read permissions
  2. Make a POST request to https://gateway.ai.cloudflare.com/v1/$CLOUDFLARE_ACCOUNT_ID/default/compat/chat/completions
  3. Start sending requests immediately

This change reduces onboarding friction and enables faster experimentation with Cloudflare's AI capabilities, particularly useful for teams integrating AI features into edge workers and serverless applications.