Anthropic moves its Messages API from Python to Rust with help from Claude
Reported by Anthropic and Crypto Briefing2 sources ↓
Anthropic says it migrated its customer-facing Messages API from Python to Rust, using the production service to check behavioral parity. The company reports about 70% less CPU per request and 20% lower median time to first token.
Key points
- Anthropic reports the Rust API uses about 70% less CPU per request
- Anthropic reports median time to first token fell about 20%
- The API serves customers and Anthropic apps including Claude Code and Cowork
- The migration was tested on production traffic without taking the service offline or freezing feature work
Sources
Details
Anthropic says its Messages API handles requests from customers and its own apps, including Claude Code and Cowork.
Claude wrote a first version of the API’s core request path in about a week, according to Anthropic. The company says the harder task was checking that the new version matched the changing Python service: model responses can vary, the Python API continued to gain features, and Anthropic could not read customer requests to inspect differences directly.
Anthropic says it used the production API as an oracle, testing the Rust version against production traffic and identifying differences for agents to fix. It reports that the completed migration reduced CPU use by about 70% per request and median time to first token by about 20%; these figures come from Anthropic’s account.
Written from coverage as of
Images
- Anthropic
- Anthropic
- Anthropic
- Anthropic
Stocks in this story
Change since open: 27 Nov 2026, 9:00 AM to 10:00 PM
Last refresh