If your product calls one AI model, the price of every task it does is set in someone else's contract negotiation. Replit has just shown the other side of that: when a product can run on more than one model, the default model becomes something you can change at renewal. This article covers how to build for that: one model interface, prompts per model, an evaluation set and a cost log, with a short sketch of each.

What Replit changed

The Information reported that Replit, the AI coding platform, moved most of its AI spending from Anthropic to OpenAI in recent months, under a contract worth more than $100 million a year with a model price discount of more than 30%. Runtime Wire, summarising that report on October 25, noted that Replit, OpenAI and Anthropic haven't publicly confirmed the financial terms, so treat those figures as reported.

The move itself is on the record. Amjad Masad, Replit's chief executive, said on stage at TechCrunch Disrupt this month that Replit was no longer working with Anthropic, and gave his reasons:

"It was a decision based on both cost, partnership, and performance."

He added: "I think ChatGPT is better now." Afterwards he narrowed it, telling TechCrunch that "Replit remains model agnostic," and that "OpenAI is now our preferred partner for powering Replit Agent." TechCrunch reported that customers can still choose Anthropic's models but that ChatGPT is now the default, which could significantly reduce Replit's Anthropic spending because most customers keep the default. One person familiar with the matter, who asked not to be named, told TechCrunch that the partnership was still in place.

The concrete change is the default, and most of the spend follows the default.

Why a switch is usually expensive

Most coverage reads this as a price war between two labs. For a team building an AI product, the useful question is narrower: could you do what Replit did, if a better offer arrived?

In many products the answer is no, and the reason is a pile of small dependencies. The prompts were tuned against one model's habits. Tool calls use one vendor's schema. The output parser expects one model's formatting. And nobody wrote down what a good answer looks like beyond "it works today". Each of those has to be found and fixed before a switch, which can easily add up to a quarter of work, and the vendor knows that when renewal comes round.

Put one interface between the product and the vendor

Every model call goes through one module the product owns. The vendor SDKs live behind it and nowhere else, and which model serves which task is configuration. A sketch of how we would set it up in TypeScript:

// models.ts: the only file that knows which vendor serves which task.
type Task = 'agent' | 'summarise' | 'classify';

interface Route {
  provider: 'openai' | 'anthropic';
  model: string;   // read from config, so changing it is a config change
  prompt: string;  // a prompt file tuned for this model
}

const routes: Record<Task, { primary: Route; candidate: Route }> = {
  agent: {
    primary: {
      provider: 'openai',
      model: config('AGENT_MODEL'),
      prompt: 'prompts/agent.openai.md',
    },
    candidate: {
      provider: 'anthropic',
      model: config('AGENT_MODEL_CANDIDATE'),
      prompt: 'prompts/agent.anthropic.md',
    },
  },
  // summarise and classify have the same shape
};

export async function run(task: Task, input: Message[]): Promise<Result> {
  // e.g. send 10% of traffic to the candidate during a trial
  const route = pickRoute(routes[task]);
  // text or tool calls come back in our own shape, never the vendor's
  return adapters[route.provider].complete(route, input);
}

Three details carry the weight. Prompts are per model, because models read the same instruction differently, and one shared prompt is how a switch quietly makes the product worse. Results come back in the product's own shape, so the parser and the tool handlers never see a vendor format. And routing is a setting, so a new default can serve a slice of traffic first and be rolled back the same afternoon.

Make "better" a number

"I think ChatGPT is better now" is a judgement. To make the same call about your own product with confidence, you need an evaluation set: a few dozen real tasks from your product, each with what a good answer must contain, scored automatically against every model you support.

// evals/duplicate-charge.ts: one case, written from a real support ticket.
export default {
  input: 'I was charged twice for order A-1043. Please refund one of them.',
  mustCallTool: 'issueRefund',
  mustInclude: ['A-1043'],
  mustNotInclude: ['refund both'],
};

Run the set on every supported model before changing a default, and after every prompt change. Building it is the slow part. It's also the part that helps first, because it catches regressions from your own prompt edits whichever model you use.

Log cost per task, not per token

A price per token is the vendor's unit. Your unit is a finished task. A model with a lower token price can still cost more per task if it needs more turns, longer prompts or more retries to reach the same result. For every completed task, log the model, the tokens in and out, the number of calls and the total cost, then compare models on cost per successful task from the evaluation set. That figure, more than the rate card, is what you bring to a renewal.

Where this doesn't pay

None of this is free. An adapter layer and a second set of prompts are code to maintain, and an evaluation set takes real work to build and keep honest. There's also a lowest-common-denominator risk: if you only use features every vendor shares, you give up the ones that make one model better for your task.

Our view is to keep one primary model and use its strengths fully, while keeping the evaluation set and one tested alternative ready. A switch is then a week of checking rather than a rebuild. A very early product with one prompt and no users can skip all of this for now.

Summary

  • Replit's reported move shows that the default model is where AI spend concentrates, and that the default can change.
  • Being able to change yours takes four things: one model interface, prompts per model, an evaluation set from your own tasks, and cost logged per task.
  • Start with the evaluation set: write 20 real tasks, run them once on a second model, and record the quality, time and cost of each. That tells you what a switch would really take.

If you're building an AI product and want a second opinion on how tied it is to one model, book a conversation.

Sources