Skip to content
Dashboard

AI Gateway vs. calling the OpenAI API directly

Copy link to headingKey takeaways

Copy link to headingWhat is Vercel AI Gateway?

Copy link to headingWhat calling the OpenAI API directly gives you

Copy link to headingHow AI Gateway and the direct OpenAI API compare

Copy link to headingWhen to route through AI Gateway

Copy link to headingWhen to call the OpenAI API directly

Copy link to heading1. Single-provider prototypes

Copy link to heading2. Load-bearing prompt caching

Copy link to heading3. Fine-tuned or provider-specific models

Copy link to headingMove off your direct OpenAI integration with AI Gateway

Copy link to headingFAQs about AI Gateway vs. OpenAI API

Copy link to headingDoes AI Gateway add cost on top of what I'd pay OpenAI directly?

Copy link to headingHow much latency does routing through the gateway add?

Copy link to headingCan I use the gateway with my existing OpenAI Python SDK?

Copy link to headingDoes BYOK mean I pay provider prices with no markup?

Copy link to headingDoes AI Gateway work outside the Vercel platform?

Ready to deploy?