AI Gateway
The AI Gateway for developers. Route to hundreds of AI models through a centralized interface.
Back to Knowledge BaseUsing AI Gateway
Run AI prompts in your GitHub Actions with the Vercel AI Action
Use the vercel/ai-action@v2 GitHub Action to call the AI Gateway from a workflow. Generate text or structured JSON, set system messages, and handle untrusted input safely.
Build AI agents with AI Gateway and AI SDK
Build AI agents on Vercel with AI Gateway and AI SDK, then make them reliable, capable, and durable with Sandbox, Chat SDK, Vercel Connect, and Workflow.
How to build an AI agent for Slack with Chat SDK and AI SDK
Build a Slack AI agent using Chat SDK, AI SDK's ToolLoopAgent, and Vercel AI Gateway. Covers project setup, tool definitions, streaming responses, deployment to Vercel, and scaling tool selection with toolpick.
Cost-aware model routing through AI Gateway
Route easy requests to a cheap model and escalate only hard ones to a frontier model through one AI Gateway endpoint, with budgets and spend monitoring.
How I use OpenCode with Vercel AI Gateway to build features fast
How to route different AI models to different coding tasks automatically, cutting token costs by ~70% without losing quality on the work that matters.
How to build a durable AI code agent on Vercel
Build an AI agent that generates code, writes its own tests, and executes them in an isolated microVM with automatic retries.
Deploy an Agent with Vercel Connect
Build your own Slackbot with Vercel Connect
Learn how to build your very own Slackbot with Chat SDK and AI SDK. Vercel Connect supplies runtime Slack tokens and forwards triggers, so you never store a long-lived bot token.
Build a GitHub agent with Vercel Connect
Build a GitHub agent that helps your team work through issues and PRs. Chat SDK handles the interactivity and AI SDK runs the tool-calling loop.
Build a Linear agent with Vercel Connect
Build a native Linear Agent that helps your team manage issues. Mention it on any issue and it responds in real time, powered by Chat SDK and AI SDK.
Build an agent with eve
Draft content in your voice from Slack with eve
Deploy the eve content agent template, a Slack bot that drafts blog posts, LinkedIn posts, release notes, and newsletters in your house voice from Notion, using Vercel Connect, Vercel Blob, and AI Gateway.
How to build a GitHub agent with eve and GitHub Tools
Build a GitHub agent with eve, GitHub Tools, and Vercel Connect. Register AI-callable GitHub tools, gate writes behind durable approval, and reply to @mentions in issues and pull requests with no stored GitHub credentials.
Manage your Sanity project from Slack with eve
A Slack-based Sanity copilot built on eve. It queries and edits content with GROQ, shapes schemas, manages releases, and drafts long-form pieces into Notion.
Give your eve agent an email inbox with Resend
Connect an eve agent to email using the Chat SDK channel and the Resend adapter. Handle inbound email, threaded replies, attachments, and proactive sends.
Draft documentation fixes from reader feedback with Sanity and eve
Build an autonomous agent that drafts fixes in Sanity, stages them for human review, and calls the model through AI Gateway.
All AI Gateway Guides
- Ship social posts from Slack with eve and Typefully
- Manage your Sanity project from Slack with eve
- How to build a Slack bot that manages files in Vercel Blob
- Build a Linear agent with Vercel Connect
- Build a GitHub agent with Vercel Connect
- Draft documentation fixes from reader feedback with Sanity and eve
- Investigate GitHub issues with
HarnessAgentand Vercel Sandbox - Build a web research agent with Workflow SDK
- Cost-aware model routing through AI Gateway
- Build your first Slack agent with eve