Technology

Vercel lets Claude Code and Codex call image, extraction, and scoring models without an API key

Vercel lets Claude Code and Codex call image, extraction, and scoring models without an API key
Image: The New Stack

Developers working in Claude Code, Codex, or other supported coding agents can now invoke AI models through Vercel’s AI Gateway without configuring a separate API key or switching the model powering their coding session.

Four inference tools arriveOn Wednesday, Vercel introduced four inference tools to its MCP server. The four tools — generate_ai_gateway_text, generate_ai_gateway_image, generate_ai_gateway_decision and generate_ai_gateway_extraction — support text and image generation, decision-making, and structured data extraction, with inference requests authenticated through an existing Vercel MCP connection and billed against the team’s AI Gateway credits.…the company has been surprised by how much MCP is being used for applications it had not traditionally considered part of its business.

Vercel CTO Malte Ubl tells The New Stack that the opportunity is “primarily not about other LLMs.” He points instead to bringing specialized models into coding workflows and says the company has been surprised by how much MCP is being used for applications it had not traditionally considered part of its business.

Developers could previously give coding agents access to external models through custom integrations. The company now offers that capability through the protocol many developers already use to connect agents to tools.

Claude Code, for example, could call an image generation model to create an application’s visual assets and use the decision tool to evaluate the results without requiring a developer to integrate either model’s API.

Calling models through MCPAccording to Vercel’s technical documentation, the text generation tool accepts a conversation and a model ID but does not support tool calling by the invoked model.

The decision tool can evaluate multiple questions about the same input in a single inference request and returns probabilities for boolean questions, selections from predefined options, or scores against an ordered scale. The extraction tool supports typed fields from PDFs, images, and text.

While Ubl did not disclose cost or performance improvement figures, the decision tool supports confidence-based fallback. Vercel bills for both inference requests when an evaluation falls below the specified threshold and triggers a second model.

Limits, latency, and costText generation calls time out after 100 seconds and have a default output limit of 8,000 tokens, expandable to 32,000, inclusive of reasoning tokens. Vercel advises against retrying an unchanged request because the original call may have already incurred the full inference cost.

Agents manage AI GatewayCoding agents gained administrative access to AI Gateway with Vercel’s November 24 update. Agents with the appropriate team permissions can configure routing policies and manage spending limits down to the individual user level.

Through MCP, teams can also modify virtual models to change providers or data retention settings without updating individual coding harness configurations.

Asynchronous inference through MCPIn a Wednesday post on X, Vercel CEO Guillermo Rauch points to further applications for the integration, including “getting callbacks on image/video generation, scheduling batch AI inference” once MCP Events are more widely deployed.“getting callbacks on image/video generation, scheduling batch AI inference.”Agents can subscribe to deployment events since the company’s October 30 MCP update, with filters at the team, project, and environment levels. The server manages expiring webhook subscriptions and delivers signed event payloads.

Wednesday’s release does not extend that mechanism to inference completion callbacks or batch scheduling.

vercelclaude codecodexai gatewayapi key

This summary is from The New Stack, published Dec 3, 2026. NewsFusion links to the original reporting and groups related coverage.

Open Source app icon

Find more in the app

Keep reading in Open Source

Get every Open Source story as it breaks, follow the topics you care about, and get alerts the moment something big happens. Free on iPhone and Android.

  • Breaking-news alerts
  • Follow topics & teams
  • Related coverage grouped by AI