# Anthropic — Claude Messages API now runs on Rust, median time to first token down about 20%

- Company: Anthropic
- Type: Other
- Importance: Low
- Evidence: mixed
- Announced: 25 Nov 2026
- Published: November 25, 2026 · 20:04 CET

## What changed

The Claude Messages API moved from Python to Rust; Anthropic reports about 70% less CPU per request and about 20% lower median time to first token.

Previously: Messages API served by a Python service

## Why it matters

- **Technical:** Median time to first token on the Claude Messages API is about 20% lower after the move to Rust, per Anthropic.
- **AI agents:** The Messages API that Claude Code and Cowork call now runs on Rust with about 70% less CPU per request, per Anthropic.

_AI-drafted from official sources._

## Claims

- Anthropic migrated its Messages API from Python to Rust. _(official)_
  > We ran into this problem when we migrated our Messages API from Python to Rust.
- Anthropic reports the Rust API uses about 70% less CPU per request and cuts median time to first token by about 20%. _(vendor claim)_
  > 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% without ever taking the service offline or freezing feature development.
- The Messages API is the primary way customers and Anthropic's own apps, such as Claude Code and Cowork, reach Claude. _(official)_
  > This API is the primary way that customers—as well as our own apps, like Claude Code and Cowork—reach Claude.
- API traffic grew roughly 1,800 times from early 2024 to fall 2026. _(official)_
  > From early 2024 to fall 2026, API traffic grew roughly 1,800 times.
- Claude wrote a first version of the API's core request path in about a week. _(official)_
  > Claude wrote a first version of the API’s core request path in about a week.

## Affected

- Roles: Technical, AI agents
- Products: Claude API
- What to watch:
  - Latency change by model or region not given

## Sources

- [Anthropic Engineering — Migrating our Messages API to Rust](https://www.anthropic.com/engineering/migrating-api-to-rust) — official
- [@AnthropicAI on X](https://x.com/AnthropicAI/status/2125627317263466739) — official

## History

- November 25, 2026 · 20:04 CET — Published (v1)

---

Event page: https://ai24updates.com/events/anthropic-messages-api-rust-migration-2026-11-25
Issue: https://ai24updates.com/updates/2026-11-25-2000
JSON: https://ai24updates.com/api/v1/events/anthropic-messages-api-rust-migration-2026-11-25
