Skip to main content

Cloudflare AI Gateway

Use this when Cloudflare AI Gateway owns the upstream route and you want the gateway path, account id, and gateway name to remain operator-visible.

At A Glance

Minimal Config

Verify It

If runtime models list is unreliable for this account or region, pin an explicit provider.model or add preferred_models instead of leaving recovery implicit.

Auth And Routing Contract

Operator Notes

  • cloudflare_ai_gateway requires tenant-scoped base_url configuration: replace <account_id> and <gateway_name> in provider.base_url with your real Cloudflare AI Gateway path; current template: https://gateway.ai.cloudflare.com/v1/<account_id>/<gateway_name>/openai/compat.