# OpenAI-compatible API endpoints now supported in AI Gateway

By Steven Van · 2025-07-21

AI Gateway now supports OpenAI Chat Completions endpoints for chat, streaming, tool calling, and embeddings via a base URL change.

AI Gateway now speaks the OpenAI Chat Completions API directly, so requests can go through https://ai-gateway.vercel.sh/v1 instead of a provider-specific endpoint. Existing OpenAI client libraries and the AI SDK's @ai-sdk/openai-compatible package work by pointing their base URL at the gateway and authenticating with an AI Gateway API key or Vercel OIDC token, no code rewrites needed.

- Supports GET /models and GET /models/{model} to list or retrieve available models

- POST /chat/completions handles chat completions, including streaming, file attachments, tool calling, and structured outputs

- POST /embeddings generates vector embeddings

- Responses follow standard OpenAI formats for models, errors, and HTTP status codes

Because [Vercel](<https://creatorstoolbox.com/tools/vercel>)'s AI Gateway sits in front of the request, switching to it also brings provider failover, uptime, and observability without changing how the client code calls the model. Full details are in the [AI Gateway docs](<https://vercel.com/docs/ai-gateway/openai-compat>).

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

[Original source](<https://vercel.com/docs/ai-gateway/openai-compat>)

[Read OpenAI-compatible API endpoints now supported in AI Gateway on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-openai-compatible-api-endpoints-now-supported-in-ai-gateway>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-openai-compatible-api-endpoints-now-supported-in-ai-gateway
