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.
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
- The Next Web reports that public traffic moved to the Rust version in September without taking the service offline.
- AI Weekly reports that API traffic grew roughly 1,800 times between early 2024 and now.
- ai.info notes that the CPU chart covers one region and that the time-to-first-token figure concerns Claude Code requests over a shorter period.
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
- Independent verification of the performance figures: not stated in the sources.
- The final rate of matching behavior between the old and new versions: not stated in the sources.
- Results for regions other than the one charted: not stated in the sources.
Summary table
| Point | What is stated as of November 26, 2026 | Source |
|---|---|---|
| CPU per request | About 70% lower | The Next Web |
| Memory per request | More than 80% lower | AI Weekly |
| Median time to first token | About 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
- The Next Web: Anthropic rewrites its Claude Messages API in Rust (verified 2026-11-26)
- AI Weekly: Anthropic Rust Rewrite Cuts Messages API CPU 70%, Memory 80% (verified 2026-11-26)
- ai.info: Anthropic moves Messages API from Python to Rust (verified 2026-11-26)
- Lavx: Anthropic migrates Messages API to Rust (verified 2026-11-26)
Spotted an error in this article? Report it · Our corrections policy