OpenAI Compatibility · Cloudflare AI Gateway docs (opens in a new tab)
Cloudflare's AI Gateway offers an OpenAI-compatible /chat/completions endpoint, enabling integration with multiple AI providers using a single URL. This feature simplifies the integration process, allowing for seamless switching between different models without significant code modifications. https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/compat/chat/completions Replace {account_id} and {gateway_id} with your Cloudflare account and gateway IDs.