Research2026-11-25

Anthropic migrated its Messages API from Python to Rust. The API is the primary way customers and Anthropic apps reach Claude. Traffic grew 1,800 times from early 2024 to fall 2026. Python added overhead to every step of request processing. Rust reduced CPU usage by about 70% per request. It also cut median time to first token by about 20%. The migration shipped without downtime or freezing feature development. Claude wrote a first version of the API’s core request path in about a week. Verification was the main challenge because the Python API kept changing. Tests were coupled to the Python implementation and incomplete. Production data was used as the oracle for parity. Only about 24% of inputs matched between Python and Rust in April. The match rate rose to 99.6% by August.

What changed

Messages API was written in Python with high CPU overhead and shared dependencies.

What it unlocks

Running the Messages API with 70% lower CPU usage and 20% faster median time to first token.

  • 1,800x API traffic growth (early 2024 to fall 2026)
  • 70% less CPU per request
  • 20% faster median time to first token
  • 99.6% input match rate by August 2026

Send this to someone who needs it

Shares the story and its sources. Nothing about you.

What does this mean for your job?

This is the story as everyone gets it. Once a week we send you the version written for your role — what changed, why it matters for the work you actually do, and one thing to try. Free while we tune it.