Market

Anthropic has rewritten its Messages API in Rust and reports about 70% less CPU per request

Anthropic says its Rust Messages API uses about 70% less CPU and over 80% less memory per request.

By ·

Anthropic says it has moved its Messages API from Python to Rust, with Claude agents writing most of the code. In an engineering post published on 25 November, the company reports about 70% less CPU and more than 80% less memory per request, and a median time to first token about 20% lower. The figures are Anthropic’s own.

The essentials

How it was checked

The Next Web reports that in April the new code passed about 98% of tests, yet only about a quarter of real requests matched the old system, and an audit found more than 100 weakened test checks. Anthropic therefore compared both versions on live traffic and had engineers review each fix.

Why a full rewrite

ai.info and Lavx report that an earlier step, a Rust parser for model output called from Python, cut CPU by only about 8% to 10%, which did not justify the cost. Anthropic then chose a full rewrite.

What is not established

Summary table

Summary table
PointWhat is stated as of November 26, 2026Source
CPU per requestAbout 70% lowerThe Next Web
Memory per requestMore than 80% lowerAI Weekly
Median time to first tokenAbout 20% lower (Claude Code requests)ai.info

FAQ

What did Anthropic change in its Messages API?

It rewrote the API from Python to Rust, reporting about 70% less CPU and over 80% less memory per request. The figures come from Anthropic’s own engineering post.

Sources

Spotted an error in this article? Report it · Our corrections policy

OrigoTech logo

New: the app iPhone & iPad

OrigoTech is now an iPhone and iPad app

Read the articles natively, with “New” markers on unread ones, local search and offline reading of what you have already loaded. Free, no account, iOS 17 or later; ads appear between articles.

Rekha icon: a house drawn in a single stroke

From the same author Self-promotion

An Eulerian path, drawn with your finger

Rekha, the iPhone game by OrigoTech's author: connect every dot in a single stroke without tracing the same link twice, across 500 drawings that are all solvable.

The OrigoTech newsletter

A sourced weekly digest of AI tool news.

Read next