The Brief #26.49 · Chrome's Prompt API, AlloyDB, and CSS ident()

Want more of these in your Google results?
Liquid AI’s d1.3-ultra took the top score among decision models. Chrome is also removing its Writer and Rewriter APIs, because the Prompt API can do the same job with one instruction you write yourself.
Then there’s CSS ident() and random-item(), Gemini 2.5 Pro and Flash moving to newer models, secure views for AI-written SQL in AlloyDB, and Cloudflare’s Search for Agents.
d1.3-ultra and the rankings
Let’s start with decision models. Liquid AI’s d1.3-ultra has the top score on Artificial Analysis’ Decision Index, with 76 for $133.04 per million tasks. Bison 31B, the one I covered last week, also has 76, but it costs $344.96, which is more than twice as much.
There’s no post about d1.3-ultra yet, though. Liquid AI only lists it on its models page so far. And if you’re wondering where d1.2-ultra went, Artificial Analysis hides it now as the older version.
In the generative ranking, the two new models are StepFun’s Step 5, with 40 for $2.53 a task, and Amazon’s Ergo, an open-weights model, with 38 for $1.67.
By the way, Antigravity’s CLI with Gemini 4 Neon is still first on Artificial Analysis’ Coding Agent Index, with 58.6 for $6.86 a task.
Oh, and Gemini 4 Carbon and Argon cost $4 input / $20 output per million tokens in the API now, since their introductory price ended on November 30.
| # | Model | Intelligence Index | Cost per Index task |
|---|---|---|---|
| 1 | Claude Fable 5.2 (max) | 65 | $26.54 |
| 2 | GPT-6.2 Astra (max) | 62 | $4.00 |
| 3 | Claude Fable 5.2 (high) | 62 | $9.08 |
| 4 | Gemini 4 Neon (xhigh) | 62 | $6.44 |
| 5 | Gemini 4 Carbon (high) | 60 | $7.76 |
| 6 | Claude Opus 5.5 (max) | 59 | $10.04 |
| 7 | GPT-6.2 Sol (max) | 57 | $1.01 |
| 8 | Claude Sonnet 5.5 (max) | 55 | $10.02 |
| 9 | Gemini 4 Hydrogen (xhigh) | 54 | $3.16 |
| 10 | Claude Opus 5.5 (high) | 52 | $3.46 |
| 17 | Step 5New | 40 | $2.53 |
| 18 | Amazon ErgoNew | 38 | $1.67 |
| # | Model | Decision Index | Cost per million tasks |
|---|---|---|---|
| 1 | d1.3-ultraNew | 76 | $133.04 |
| 2 | Bison 31B | 76 | $344.96 |
| 3 | Drex Max v1.1 | 73 | $102.68 |
| 4 | SubQ Snap 1.2 | 73 | $136.90 |
| 5 | GLiDE v1.2 | 73 | $780.40 |
| 6 | Mammoth 27B | 71 | $263.57 |
| 7 | Decider v1.3 | 70 | $68.04 |
| 8 | d1.2 | 69 | $63.35 |
| 9 | Microsoft-Decision-1.1 | 68 | $139.64 |
| 10 | Elephant 9B | 66 | $92.25 |
| Chrome’s Decisions API (Gemma 4 on CPU) | Not scored | $0 |
Writer and Rewriter APIs in Chrome
Chrome announced on November 26 that it’s going to remove the Writer and Rewriter APIs, from Chrome 161 at the earliest, in January. In case you haven’t heard of them, they let a site use the AI model on the visitor’s computer to write something or rewrite it, like making a text shorter or more formal.
They were never on for everyone, though. Sites had to sign up for an origin trial to use them, and after the trial they were only behind a flag. That means nothing breaks for the people using your site.
According to the Chrome team, the two APIs were basically a fixed instruction on top of the same model the Prompt API uses. The models that run in Chrome (Gemini Nano and Gemma 4) also got a lot better. So you can just write that instruction yourself.
The Prompt API has worked on any site in Chrome on computers since version 148. This is how you’d make a text more formal with it:
js
async function makeFormal( text ) {
// Browsers without the Prompt API don't have LanguageModel at all.
if ( ! ( 'LanguageModel' in self ) ) {
return null;
}
// 'unavailable' means this computer can't run the model.
const availability = await LanguageModel.availability();
if ( availability === 'unavailable' ) {
return null;
}
// If the model still has to download, this needs a click from the person first.
// The system prompt does what the Rewriter API used to do.
const session = await LanguageModel.create( {
initialPrompts: [
{
role: 'system',
content: 'Rewrite the text in a more formal tone. Keep every fact and number.',
},
],
} );
return session.prompt( text );
}Like with the rest of Chrome’s built-in AI, the model runs on the visitor’s computer, which means each call is free and the text never leaves it.
If you already used the Writer or Rewriter API, Google published a polyfill that keeps your code working on top of the Prompt API, with the same instructions Chrome used.
Chrome is keeping the Summarizer and Translator APIs. They also said they’ll focus on new things like embeddings, tool calling and decisions. I wrote about that last one in my article about decision models, if you want to try it.
CSS ident() and random-item()
There’s news on two CSS functions, although you can’t use them in a stable browser yet.
The first one is ident().
Firefox plans to turn it on in version 163, in January.
Chrome is still working on it, but the Safari 27.3 beta already has it.
Some properties, like view-transition-name, need a different name for every element you animate.
Before, that meant one rule for each element.
ident() builds the name for you out of pieces, like the element’s id plus a word.
This example is based on the one in the spec:
css
.card[id] {
--id: attr( id );
/* card1, card2, card3... */
view-transition-name: ident( var( --id ) );
h1 {
/* card1-title, card2-title, card3-title... */
view-transition-name: ident( var( --id ) "-title" );
}
}The second one is random-item(), which Chrome started building on December 1.
Remember random() from last week, the one that gives each element a random number between a minimum and a maximum?
random-item() is similar, but it picks one of the values you give it.
For example, a different color for each sticky note:
css
.note {
/* auto gives each note its own pick. */
background: random-item( auto, #fde68a, #bbf7d0, #bfdbfe );
}Safari 27.3 beta has this one too.
Also, the CSS Typed Object Model and the media pseudo-classes like :playing and :muted became Baseline Newly available.
That means they work in Chrome, Edge, Firefox and Safari now.
Gemini 2.5 Pro and Flash
If your app still calls Gemini 2.5 Pro or 2.5 Flash, this one’s for you.
Since December 1, the Gemini API sends your calls to newer models, at their price. Calls to Gemini 2.5 Pro go to Gemini 3.8 Flash, and calls to Gemini 2.5 Flash go to Gemini 3.5 Flash-Lite. The good news is that your app keeps getting answers instead of errors.
The newer models work a bit differently, though.
They ignore temperature, top_p and top_k, and take thinking_level instead of thinking_budget.
And if your request ends with a message you wrote as if the model had said it (a prefilled turn), you get an error.
So I’d change the model name myself and follow Google’s migration checklist for Gemini 3.8 Flash or Gemini 3.5 Flash-Lite, instead of letting the API pick for me.
Gemini 3.8 Flash costs $0.75 input / $3.75 output per million tokens until December 31, and $1.50 / $7.50 after that. Gemini 3.5 Flash-Lite costs $0.30 / $2.50. Both have a free tier, too.
Google isn’t the only one retiring older models, though. Anthropic retired Claude Sonnet 4.5 on the Claude API on November 30, but there the calls don’t go to a newer model. You get an error until you change it, and Anthropic recommends Claude Sonnet 5.5.
OpenAI’s gpt-5 and o3 are next, and they stop working on December 11.
AlloyDB and BigQuery
Say you have an app where people ask questions in their own words, and an AI model turns them into SQL. The problem is that the model can write a query that reads other people’s data too, whether someone tried that on purpose or just asked an honest question.
AlloyDB (Google Cloud’s database that works like PostgreSQL) has parameterized secure views for that, and they became generally available on November 30. With a secure view, the database only returns the signed-in user’s rows, whatever SQL the model wrote.
You add a parameter for the user to the view, give your app’s database role access to the view but not to the table behind it, and send the user’s id from your backend with each query:
sql
-- $@app_end_userid is the signed-in user's id, sent by your backend.
CREATE VIEW secure_checked_items WITH ( security_barrier ) AS
SELECT bag_id, timestamp, location
FROM checked_items t
WHERE customer_id = $@app_end_userid;According to Google’s docs, one database role can serve all your users this way, instead of one per person.
Google also made EmbeddingGemma generally available in BigQuery (Google Cloud’s data warehouse) on November 24, as a built-in model called embeddinggemma-300m.
An embedding is a list of numbers that captures what a text means.
You need them to search by meaning instead of by exact words.
BigQuery makes them for a whole column right inside a query, when you call AI.EMBED with that model.
You don’t need another service for it, and you don’t pay anything extra for the model.
Search for Agents on Cloudflare
Cloudflare launched Search for Agents on November 25. If your site is on Cloudflare, you turn on one switch and AI agents get a search endpoint on your own domain, instead of reading your pages one by one.
Cloudflare indexes your site, answers at /.well-known/search, and adds a few meta tags to your HTML so agents know it’s there.
An agent would send a request like this one:
bash
curl --get "https://example.com/.well-known/search" \
--data-urlencode "q=How do I verify webhook signatures?"Cloudflare doesn’t write an answer with AI. It just sends back the parts of your pages that match, in Markdown, for the agent to use with its own model.
It’s on every plan and counts as AI Search usage.
Want more of these in your Google results?