◉RORK LABJP
●RESET — Since 11/23, Reset in the iPhone preview opens your app like a fresh install●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 6 days left. Check which model your AI features call●AUTH TAB — Expo users report Android apps being killed while the sign-in tab is open●NEW — New: Archive or delete? Where to draw the line when tidying projects●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 7 days left●COCOAPODS — With CocoaPods Trunk going read-only, developers are weighing a move to SwiftPM for Expo apps●RESET — Since 11/23, Reset in the iPhone preview opens your app like a fresh install●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 6 days left. Check which model your AI features call●AUTH TAB — Expo users report Android apps being killed while the sign-in tab is open●NEW — New: Archive or delete? Where to draw the line when tidying projects●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 7 days left●COCOAPODS — With CocoaPods Trunk going read-only, developers are weighing a move to SwiftPM for Expo apps
Articles/AI Models
◉ AI Models/2026-11-24Intermediate

On December 1, Your App's gemini-2.5-flash Calls Get Rerouted Without an Error. How to Compare the Answers Before That Happens

From December 1, calls to gemini-2.5-flash and gemini-2.5-pro are not shut off but automatically routed to successor models. Because nothing errors out, changes in answer shape and cost are easy to miss. Here is how to find the model names in a Rork-built app, compare answers against the successor now, and decide whether to switch yourself or let the routing happen.

Rork622Gemini API6Model MigrationDeadlineAI Features

I was reworking the part of my wallpaper app that suggests categories for new images when I opened the Gemini API deprecations page and stopped scrolling. The December 1 row did not say "shutdown." It said the calls would be automatically routed to another model.

I had been assuming that a deprecation means errors. Errors show up in Crashlytics, and I would catch them in the logs the next morning. Rerouting is different: the app keeps running as if nothing happened. What changes is the wording and length of the answers, and the price per token.

The one thing I want to say up front: a deadline that reroutes is harder to notice than a deadline that breaks. There are seven days left, counting today. If you added an AI feature to an app built with Rork, here is how I'd check it before then.

What happens on December 1

The Gemini API Deprecations page says that from December 1 the following calls are routed to successor models.

Model name your app calls todayRouted to from December 1
gemini-2.5-flashgemini-3.5-flash-lite
gemini-2.5-progemini-3.8-flash

Worth noting: once routed, you are billed at the successor model's rate. If you set a monthly budget around 2.5 pricing, that number needs another look too. On the developer forum someone has already asked for an extension because an audio relevance check behaved differently on the successor. My guess is that the more your code depends on the exact shape of an answer, the more likely it is to feel this.

If you use versioned names such as -001, or anything ending in -preview, check those rows on the same page. They may not be handled the same way.

Step 1: Find every model name your app calls

With Rork-built apps, it is common not to know exactly where the model name lives. I assumed it wasn't in the screen code, and it wasn't — it was hard-coded in a server function I had forgotten about.

The most reliable first move is to ask Rork's chat once:

List every place in this project that calls the Gemini API, as file name and model name. Do not change any code.

If you have the exported code locally, you can also search from a terminal:

# Run at the root of the exported project
grep -rnE "gemini-2\.5-(flash|pro)" --include='*.ts' --include='*.tsx' --include='*.js' --include='*.json' . \
  | grep -v node_modules

Sort each hit into inside the app binary or on a server (a Supabase Edge Function, Cloudflare Workers, and so on). That split decides Step 4. I wrote more about where these values should live in environment variables vs. an Edge Function for API keys.

Step 2: Send the same inputs to today's model and the successor

You don't have to wait for December 1. The successor models can be called by name today, so send the same inputs to both and put the answers side by side.

This script runs as-is on Node.js 18 or later. Put about ten real prompts your app sends into inputs.json.

// compare-models.mjs — send the same inputs to two models and compare shape and time
// Run: GEMINI_API_KEY=YOUR_API_KEY node compare-models.mjs inputs.json
import { readFile } from "node:fs/promises";
 
const PAIRS = [["gemini-2.5-flash", "gemini-3.5-flash-lite"]]; // add a row if you use 2.5-pro
const KEY = process.env.GEMINI_API_KEY;
if (!KEY) throw new Error("GEMINI_API_KEY is not set");
 
async function ask(model, text) {
  const started = Date.now();
  const res = await fetch(
    `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent`,
    {
      method: "POST",
      headers: { "Content-Type": "application/json", "x-goog-api-key": KEY },
      body: JSON.stringify({ contents: [{ parts: [{ text }] }] }),
    }
  );
  const ms = Date.now() - started;
  if (!res.ok) return { model, ms, error: `${res.status} ${await res.text()}` };
  const data = await res.json();
  const out = data.candidates?.[0]?.content?.parts?.map((p) => p.text ?? "").join("") ?? "";
  let isJson = false;
  try { JSON.parse(out.replace(/^\x60{3}(json)?\s*|\x60{3}\s*$/g, "")); isJson = true; } catch {}
  return { model, ms, chars: out.length, isJson, tokens: data.usageMetadata?.totalTokenCount, head: out.slice(0, 60) };
}
 
const inputs = JSON.parse(await readFile(process.argv[2], "utf8"));
for (const [oldModel, newModel] of PAIRS) {
  for (const [i, text] of inputs.entries()) {
    const [a, b] = [await ask(oldModel, text), await ask(newModel, text)];
    console.log(`#${i + 1}`, JSON.stringify(a), "\n   ", JSON.stringify(b));
  }
}

Before judging whether the answers are better or worse, check whether the shape is the same. isJson turning false on only one side, the character count nearly doubling, a new preamble sentence at the top — when a screen or a parser breaks, it is almost always one of those three. Looking at latency (ms) and token count on the same line also gives you a rough idea of the cost change.

Step 3: Pin the answer shape on your side

If the shape wobbles, tighten the request before changing models. In the Gemini API you can pass responseMimeType: "application/json" and a responseSchema in generationConfig to ask for JSON in a fixed structure. Anywhere you only wrote "please reply in JSON" in the prompt is a good place to switch over.

If you cache AI answers, check that the model name is part of the cache key. Otherwise old answers keep showing up after the switch. I covered that in sweeping the cache on the day you swap models.

Step 4: Switch yourself, or let the routing happen?

This is where the Step 1 split matters.

  • The name lives on a server: if the comparison looks fine, I'd change the model name yourself before December 1. You'll know exactly when it changed, and you keep the decision to roll back.
  • The name lives inside the app binary: changing it means an app review, and a build submitted this week may not clear in time. In that case, assume the routing will happen, ship the Step 3 shape pinning first, and plan to move the model name to the server side.

The line I draw for my own apps: Google sets the date; I set the moment of the switch. If I wait for the routing, I can't watch the change happen.

Claude API's Sonnet 4.5 also retires on November 30, the same week. If your app uses both, checking alongside the Sonnet 4.5 model ID sweep saves you a second pass.

What to do next

If you can, make the Step 1 list today and split each hit into "app binary" or "server." Once that list exists, the comparison itself is not heavy work. As an indie developer, the one thing I try to hold to — even for small apps — is not letting the day my answers change arrive without my knowing.

Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

◉ AI Models2026-11-19
Your GPT-6 Astra Became 6.2 Overnight: Three Checks Before You Rebuild Anything
Since November 18, Rork projects that had GPT-6 Astra or GPT-6.1 Sol selected now build with the 6.2 versions at the same effort. If the answers suddenly feel different, here are three checks to run before rebuilding a screen, plus a small yardstick request for measuring the change.
◉ AI Models2026-11-14
I asked Rork for the same screen in Japanese and in English — three things about UI text to decide before you prompt
Prompting Rork for the same settings screen in Japanese and in English, the real differences were not visual. They were where the text lives, how long it is allowed to be, and how dates are formatted. Here are three constraints to add to any prompt, a copy-ready prompt, and a script that lists hard-coded strings.
◉ AI Models2026-10-29
Connected, but the Body Stops Halfway. Measuring Header-Only, Total, and Idle Timeouts on the Same Response
You added a timeout to fetch, yet the loading indicator never goes away. I reproduced a response whose body stalls halfway on a local server and measured header-only, total, and idle timeouts under identical conditions. Runnable test code included.