Anthropic ports Messages API from Python to Rust, trimming CPU 70% and memory 80%+
Reported by AIM
Original author: Supreeth Koundinya
Originally published: 27 Nov 2026, 17:30 IST On World AI Daily:

Anthropic has ported the Messages API, the gateway customers use to access Claude, from Python to Rust. The company reports a drop of about 70% in CPU use for each request in a single production region, plus more than 80% lower memory use per request across production. For Claude Code customers, median time to first token fell by roughly 20%. Anthropic says API traffic rose about 1,800 times from early 2024 to autumn 2026. The service it built in 2023 grew costly as it absorbed validation, tokenization, safety classification, streaming and usage tracking for billing. Claude produced a first draft of the core request path in around a week, but confirming it behaved like the live service was far harder. In April the Rust version passed roughly 98% of tests, yet only about a quarter of production inputs matched. A shadow-testing setup that replayed model outputs lifted the match rate to 99.6% by August. Human engineers still reviewed every pull request. Anthropic says the project shows AI coding agents can take on big production rewrites when independent verification supports them.
Key facts
- The company reports about 70% lower CPU use per request in one production region.
- Memory consumption per request fell by more than 80% across production.
AI-assisted summary Editorial standards











