Cloudflare Enablement
AI Gateway
Testing
Edit this page on GitHub
Set theme to dark (⇧+D)

OpenAI

https://gateway.ai.cloudflare.com/v1/ACCOUNT_TAG/GATEWAY/openai

When making requests to OpenAI, replace https://api.openai.com/v1 in the URL you’re currently using with https://gateway.ai.cloudflare.com/v1/ACCOUNT_TAG/GATEWAY/openai.

If you’re using a library like openai-node, set the baseURL to your OpenAI endpoint like this: