VercelDev & Eng

Content type: Hands-on

5 min read

Vercel adds Ergo 1.0, Amazon's reasoning model, to AI Gateway

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

Vercel's AI Gateway now offers Ergo 1.0, Amazon's open-weight mixture-of-experts model built for agentic coding, with a 1M-token context window and adjustable reasoning effort.

Vercel added amazon/ergo-1.0 to the AI Gateway catalog, according to the company's official changelog. It's an open-weight model created by Amazon specifically for agentic coding: the scenario in which an AI agent plans its own steps, calls tools, and then checks whether the result is correct, without a human confirming each step.

For those who develop front-end and already use copilots or agents like Claude Code, Cursor, or Codex on a daily basis, the news isn't "just another model on the list." It's one more option with architecture and behavior specifically suited to long tasks, the kind of work that trips up generic copilots today: implementing an entire feature from a design doc, for example, instead of just autocompleting a function.

A giant MoE that still runs light

Ergo 1.0 is a mixture-of-experts (MoE) model with 1.1 trillion total parameters, but only 55 billion activated per token. This is the same logic behind other large MoEs on the market: the model has a huge set of internal "experts," but only a small fraction is activated on each pass, which keeps inference cost closer to that of a much smaller model.

In practice, this usually means more reasonable latency and cost per token than a dense model of the same nominal size, without giving up capacity accumulated during training. Vercel's changelog doesn't include a speed or cost benchmark compared to other models in the Gateway, so this is an architectural reading, not a tested number.

Reasoning always on, with adjustable effort

A core feature of Ergo 1.0: it always reasons before responding. There's no "direct answer" mode that turns off reasoning. What you can control is reasoning effort, from low to maximum ("max"), a parameter similar to what already exists in other reasoning models on the market.

For those building with agents, this dial matters more than it seems. A code review or support triage agent can run at low effort to respond fast and cheap; an agent that needs to implement an entire feature from a design doc, with multiple tool calls and its own verification of the result, benefits from max effort, even at the cost of more latency.

1M-token context and what it unlocks

The model has a context window of 1 million tokens, with support for tool calling, structured outputs, prompt caching, and text input. Served via Amazon Bedrock, it arrives in AI Gateway with no price markup: Vercel passes through the provider's price and doesn't charge a platform fee on inference, not even on BYOK (Bring Your Own Key) requests.

A 1M-token window changes the kind of task worth handing off to the model. Instead of slicing a repository into chunks to fit the context, you can put the entire design doc, the design system schema, and several related component files into the same call, letting the model itself decide what's relevant to the task.

How to integrate with the AI SDK

Integration follows the same pattern as any model in AI Gateway: just swap the model identifier. Using the AI SDK, a call with streamText looks like this:

ts
import { streamText } from 'ai';

const result = streamText({
  model: 'amazon/ergo-1.0',
  prompt: 'Write a Python function that checks whether a string is a palindrome.',
});

There's no specific reasoning effort parameter in the official example, which suggests this control should come through provider configuration or additional SDK options not yet detailed in the changelog. It's worth checking the model's details page in the Gateway dashboard before assuming default behavior in production.

Running inside Claude Code, Codex, and Cursor

For those already working with coding agents outside Vercel's own web editor, the path is via CLI. With the latest version of the Vercel CLI installed, the setup is:

npx vercel ai-gateway setup

The command guides model selection inside the chosen agent; just point it to amazon/ergo-1.0. This means you can swap the model behind Claude Code or Cursor without rewriting the project's prompt logic, since AI Gateway works as an abstraction layer between the agent and the provider.

Where this makes sense in the front-end workflow

The cases cited by Vercel (implementing a feature from a design doc, invoice reconciliation, support triage) are generic, but they offer clues as to where native reasoning pays off despite the extra latency cost:

  • Migrating a legacy component to a new design system, when the agent needs to understand the old pattern, map props, and generate the new equivalent with tests.
  • Generating a complete feature (UI + API call + state) from a text specification, with the agent checking its own output before returning it.
  • Automated triage of user-reported bugs, cross-referencing stack traces with relevant code snippets within the 1M-token window.

Where it probably isn't worth it: single-line autocomplete, trivial refactoring, or any interaction that needs a millisecond response. The model always reasons before responding, and that has a latency cost that a smaller, faster model handles better for this kind of task.

What's still unknown

The changelog doesn't include price per token, a benchmark of generated code quality, or a direct comparison with other reasoning models already available in Gateway, such as those from the GPT or Claude families. Before swapping the default model in a production pipeline, it's worth running your own team's representative set of tasks against Ergo 1.0 in Vercel's playground and measuring cost and quality with the project's real numbers, not the announcement's promise.

Translated from the Brazilian Portuguese original · Read the original

Read also