Anthropic has moved its Messages API from Python to Rust, and the company says the new version uses about 70% less CPU per request and cuts the median wait for the first token by about 20%. The API is the main route customers, Claude Code, and Cowork use to reach Claude. Anthropic says the switch happened without taking the service offline or freezing new features. Public traffic moved onto the Rust API in September 2026.
The service started in 2023 as what one engineer called basically a request forwarder. By late 2025 every call had to be checked, turned into a prompt, tokenized, and screened by safety classifiers, and each reply had to be sorted into text, thinking, and tool calls. Traffic on Anthropic's own platform grew roughly 1,800 times from early 2024 to fall 2026. An early attempt to rewrite only the output parser in Rust cut CPU use by about 8% to 10%, but each token then crossed between Python and Rust three times. Anthropic judged that the extra complexity was not worth the gain.