AI Gateway
Proxy in front of model providers adding analytics, logging, caching, rate limiting and fallbacks.
- Provider
- cloudflare
- Kind
- API gateway
- Category
- Edge
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| auth | enum | none | api-key | jwt | oauth2 | mtls | no | none | ▸ none |
| cacheTtlSeconds | integer | — | no | 300 | inherited |
| caching | boolean | — | no | false | inherited |
| concurrencyLimit | boolean | — | no | false | inherited |
| fallbackModel | boolean | — | no | false | inherited |
| idempotencyKeys | boolean | — | no | false | inherited |
| instances | integer | — | no | — | inherited |
| keyTtlHours | integer | — | no | — | inherited |
| logging | boolean | — | no | true | inherited |
| managed | boolean | — | no | false | ▸ true |
| protocol | enum | http | grpc | websocket | fix | ouch | no | http | ▸ http |
| rateLimiting | boolean | — | no | false | ▸ false |
| tls | boolean | — | no | true | ▸ true |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
sync-chain-too-deep
Every consecutive synchronous hop from this entry point spends part of the stated p95 latency budget, and the chain's failures multiply. More than three hops is a budget nobody is tracking.
- — all of these hold:
- — the design requirement `latency.p95Ms` has a value
- — the longest chain of synchronous calls starting at the node is more than 3 hops long
nodes:
- { id: "ai-gateway", component: "cloudflare-ai-gateway" }API Gatewayalibaba-api-gatewayAmazon API Gatewayaws-api-gatewayAWS AppSync GraphQL APIaws-appsyncAzure API Managementazure-api-managementCloudflare API Shieldcloudflare-api-shieldMCP Server Portalcloudflare-mcp-portalCloudflare Privacy Gatewaycloudflare-privacy-gatewayGeneric API gatewayapi-gatewayApache APISIXapisixApollo GraphOSapollo-graphosEasegresseasegressEmissary-ingressemissaryEnvoy Gatewayenvoy-gatewayGloo GatewayglooHasurahasuraHelicone AI Gatewayhelicone-gatewayHigresshigressKong GatewaykongKong AI Gatewaykong-ai-gatewayKong Konnectkong-konnectKrakenDkrakendLiteLLM ProxylitellmMartian GatewaymartianNot Diamondnot-diamondPortkey AI GatewayportkeyRequestyrequestySpring Cloud Gatewayspring-cloud-gatewayTyk GatewaytykUnifyunify-aiVercel AI Gatewayvercel-ai-gatewayWSO2 API Managerwso2-api-managerZuulzuulApigeeapigeeAgent Gatewaygoogle-agent-gatewayAPI Gatewaygoogle-api-gatewayApigee hybridgoogle-apigee-hybridCloud Endpointsgoogle-cloud-endpointsFirebase Data Connectgoogle-firebase-data-connectIBM API Connectibm-api-connectOCI API Gatewayoci-api-gateway
# yaml-language-server: $schema=../../schema/component.schema.json # AI Gateway: proxy in front of model providers that adds analytics, logging, caching, # rate limiting, retries and fallbacks ("AI Gateway overview"). Caching is off until # configured ("Caching": "Caching is disabled by default"); rate limiting is opt-in too. schemaVersion: "1" type: "component" id: "cloudflare-ai-gateway" kind: "api-gateway" provider: "cloudflare" docs: "https://developers.cloudflare.com/ai-gateway/configuration/caching/" defaults: managed: true protocol: "http" tls: true auth: "none" rateLimiting: false properties: caching: type: "boolean" default: false cacheTtlSeconds: type: "integer" default: 300 logging: type: "boolean" default: true fallbackModel: type: "boolean" default: false