Thursday, November 26, 2026
Translate
PrivacySubmit newsShare your story Newsletter Advertise
Breaking
AI news

Anthropic Cuts Messages API CPU Usage 70% With Rust Migration

Anthropic migrated its Messages API from Python to Rust using Claude, cutting CPU usage and latency.

Anthropic Cuts Messages API CPU Usage 70% With Rust Migration
Image: Anthropic

Anthropic announced it successfully migrated its Messages API from Python to Rust, utilizing Claude to verify and fix parity differences. The overhaul reduced CPU usage by about 70 percent per request.

Why it matters

Anthropic said its Messages API is the primary way customers and its own apps reach Claude, with traffic growing roughly 1,800 times from early 2024 to fall 2026. As traffic expanded, Python's overhead added costs to validation, tokenization, and safety screening, making a more efficient service necessary.

The Rust Migration

Claude wrote an initial version of the API core request path in about a week. To ensure parity between the Python and production APIs, Anthropic turned the production Messages API into a verifier to test the Rust version on live traffic.

The TechUpscale Brief. The day's cyber, AI and tech news in one short email, every weekday morning. Free. Unsubscribe anytime.

The resulting Rust API uses about 70 percent less CPU per request and cuts median time to first token by about 20 percent. Anthropic achieved this without taking the service offline or freezing feature development.

Key facts and where they come from
  • The Rust migration reduced CPU usage per request by about 70% and cut median time to first token by about 20%.
    This allowed us to ship an API on Rust that uses about 70% less CPU per request and cuts median time to first token by about 20%
  • API traffic grew roughly 1,800 times from early 2024 to fall 2026.
    From early 2024 to fall 2026, API traffic grew roughly 1,800 times.

The catch

  • The announcement does not say how much total engineering time was spent managing the agent workflows.
  • Anthropic noted that the Python API continued changing throughout the migration, making parity a moving target.

Add TechUpscale as a preferred source on Google

The TechUpscale Brief

The day's cyber, AI and tech news in one short email, every weekday morning. Free. Unsubscribe anytime.

I'm most interested in

Join the conversation

Comments are moderated. Be civil and stay on the story: no personal attacks, hate, spam or ads, and no one else's private details. Your email is never shown. Privacy policy.

More AI