VercelDev & Eng

Content type: Hands-on

5 min read

Vercel's AI Gateway now offers StepFun's Step 5 model for code agents

Article · Dev & Eng
Reading
5 min
Tables
1
Code
2
In short

Vercel's AI Gateway added Step 5, from China's StepFun, to the catalog of models available for front-end agents. The news matters less for the model's name and more for what it reveals about how to integrate, swap, and compare LLMs without rewriting code.

Vercel's AI Gateway added Step 5, from StepFun, to the catalog of models available for front-end agents. The news matters less for the model's name and more for what it reveals about how to integrate, swap, and compare LLMs without rewriting code.

Vercel updated the AI Gateway changelog to announce that Step 5, a StepFun model, is now available in the service's catalog. The source doesn't give a date for the announcement, but the entry appears as a recent item in the official changelog. For those building generative AI products on the front end, the relevant fact isn't the model itself: it's what this addition exposes about Vercel's strategy of treating the language model as an interchangeable piece, not as a locked-in architectural decision.

What the AI Gateway is and why it exists

The AI Gateway is Vercel's layer that sits between the application and model providers. Instead of integrating the OpenAI, Anthropic, Google, and StepFun APIs separately, the front-end team points the code at a single endpoint and switches models by changing a string.

According to Vercel, the Gateway reflects the original provider's price, with no markup and no platform fee on inference, even on requests made with your own key (Bring Your Own Key). This changes the cost calculation for those running agents in production: token spending is the same as going directly to StepFun, but with telemetry, failover, and retry built in.

Expert views

What people are saying about it.

New command shifts to the application the decision of whether to wait for a replica, promising to end the stalled commits of traditional synchronous replication.

Roberto Dinizin an iMasters article · Read the article: PostgreSQL 19 brings WAIT FOR LSN as an alternative to synchronous replication

The This Week in Rails bulletin from November 27, 2026 brings a command to audit secrets without revealing them, the end of a per-attachment query in Action Text, and an Action Mailer that no longer needs to drag Active Job along at boot.

Bisneto Bragain an iMasters article · Read the article: Rails gets credentials:keys, batched Action Text, and Action Mailer without Active Job

The package includes:

  • Customizable usage and cost reports (built-in custom reporting)
  • Support for Zero Data Retention, for those who can't leave prompts stored with the provider
  • Configurable budgets per key
  • Routing rules between models and providers
  • Automatic failover to keep uptime above what a single provider delivers on its own

What's different about Step 5

Step 5 is StepFun's production model, the most recent version, succeeding Step 5 Preview. According to Vercel, the model was built for agentic work: writing and debugging code, testing, producing long reports, building web interfaces, and sustaining interactive applications by using the application's own tools to carry a long task through to completion.

Two technical points stand out for those working in front-end:

  1. A 1-million-token context window. This allows you to drop an entire codebase, a full design system, or a long conversation history into the prompt without truncating it.
  2. Video input, in addition to text and image. A UI agent can receive a screen recording showing a visual bug and work from it, not just from a text description or a static screenshot.

Vercel also states that Step 5 completes complex tasks using fewer tokens than Step 5 Preview. There's no benchmark figure in the source, and this claim is worth treating as changelog marketing until independent measurement appears.

How to integrate with the AI SDK

Integration follows the same pattern as any Gateway model: swap the model identifier in the AI SDK's streamText(). The example Vercel publishes is straightforward:

typescript
import { streamText } from 'ai';

const result = streamText({
 model: 'stepfun/step-5',
 prompt: 'Write a TypeScript function that debounces another function.',
});

for await (const text of result.textStream) {
 process.stdout.write(text);
}

There's no change to the SDK, the return type, or how the stream is consumed. It's the same code that already worked with anthropic/claude or openai/gpt-4o, now pointing at stepfun/step-5. This uniformity is the Gateway's real selling point: the cost of trying out a new model drops to a single line of configuration.

Using it in command-line agents

For those who already work with Claude Code, Codex, or Cursor, Vercel offers a path that doesn't involve writing code: install the latest CLI and run the Gateway setup.

npx vercel ai-gateway setup

The command guides model selection within the agent itself; just select stepfun/step-5 from the list. It's the same flow documented in Vercel's coding agents guide. Anyone who wants to test without touching a terminal can use Vercel's own model playground before deciding.

What changes in practice for builders

For front-end teams that already use agents to generate components, write tests, or review pull requests, Step 5's arrival in the catalog doesn't require any migration: it's just one more option on the list of models already supported by the Gateway. The concrete gain comes down to three points.

AspectWhat changes
Model swapChange model: 'stepfun/step-5' without rewriting the integration
CostProvider pricing with no markup, visible in the Gateway's report
Multimodal inputVideo as input, useful for visual bugs and UI flows

The 1M-token context is the kind of number that seems irrelevant until the agent stalls midway through a large refactor for lack of room for the code's history. In that scenario, swapping models via the Gateway is an afternoon's test, not a migration project.

When it's not worth switching

StepFun is a provider with less Western production track record than OpenAI, Anthropic, or Google, and the source provides no independent data on the quality of generated code. Teams that already have an agent pipeline calibrated around a specific model (tuned prompts, tested few-shot examples) gain nothing just from swapping the model's name: the cost of recalibrating prompts usually outweighs the promised token savings.

It's also worth remembering that Zero Data Retention and per-key budgets are Gateway features, not Step 5 features: anyone already using these with another model doesn't need to switch providers to keep them. The addition of Step 5 expands options; it doesn't, on its own, solve any productivity problem that already existed before it.

Translated from the Brazilian Portuguese original · Read the original