Vercel announced four AI Gateway inference tools for Vercel MCP on December 2, 2026: text generation, image generation, decision-making, and structured extraction. They use an existing Vercel MCP sign-in, and calls draw on the AI Gateway credits of the team tied to the request or connection. Vercel names Claude Code as an example client in its announcement.

MCP, short for Model Context Protocol, connects an AI client to tools. If you’re new to that setup, our guide to MCP servers for Claude Code explains the connection itself; Vercel’s announcement concerns the inference tasks available through it.

Before you build a workflow, match the task to the right tool—and account for the team that will pay for its calls.

What each Vercel MCP tool does

The four tools divide work by task. Vercel says agents can chain tools in one session, including generating images and then scoring them with the decision tool.

ToolTaskDocumented input or behavior
generate_ai_gateway_textGenerate text from a conversation using a selected AI Gateway text model.Accepts 1–50 user or assistant messages; each message can contain up to 100,000 characters.
generate_ai_gateway_imageGenerate images from a text prompt.Can create up to four images per prompt, with size, quality, and output-format options.
generate_ai_gateway_decisionClassify, choose among options, or score an input on an ordered scale.Accepts 1–20 typed questions about the same input; optional image inputs must be base64 data URLs, with up to four images.
generate_ai_gateway_extractionExtract typed fields from text, PDFs, and images.Returns values in the requested field types.

The decision tool suits a workflow that needs structured judgments about one input. It can also accept optional JSON data. Its image inputs must be sent as base64 data URLs; external image URLs are not supported. If a confidence fallback runs, the additional inference is billed too. Vercel’s decision-tool documentation describes the input formats and response types.

The text tool is narrower: it handles text only and neither sends nor receives files, images, or tool calls. Vercel’s text-tool documentation sets a 200,000-character combined limit across messages and optional system text. Its output limit defaults to 8,000 tokens and can be configured up to 32,000, including reasoning tokens.

Which team pays, and what happens when text calls are interrupted?

Calls use the existing Vercel MCP sign-in; they do not require a separate AI Gateway API key. The team specified by teamId pays with its AI Gateway credits. If the connection is already bound to a team, that team is billed instead.

Vercel documents a 100-second time limit for the text tool. A timeout, dropped connection, or provider error can return partial text, with a finish reason indicating timeout, interrupted, or error; the call may still be billed in full. A response can include the text, finish reason, model, token usage, and generation ID. That makes an incomplete response different from a guarantee that no result or charge was produced.

For model identifiers and prices, Vercel points developers to list_ai_gateway_models. The team-credit billing rule identifies whose credits are used; model-specific rates depend on the selected model.

Hy4 Flash on Vercel AI Gateway: pricing, setup, and routing