Skip to content
Wed, 2 Dec 202609:42:09 CET
AI-News

AI-News

Menu
  • Home
  • Basics
  • Posts
Searching...
No results found
  • Home
  • Tools
  • Anthropic Rewrites Its Messages API in Rust, Cutting CPU Use
  • Tools

Anthropic Rewrites Its Messages API in Rust, Cutting CPU Use

EditorialNovember 29, 20264 min read
A minimalist wooden desk with a brass lamp beside a window at dawn, with the Anthropic logo in the lower left corner

Contents

  • TL;DR
  • Anthropic swaps Python for Rust in Messages API
  • The figures behind the CPU and latency gains
  • What the result means for teams on the API
  • What Anthropic and AIM leave unsettled
  • Sources

TL;DR

Anthropic says it moved its Messages API from Python to Rust. The company says the new version needs about 70% less CPU for each request and kept the service online. Anthropic says the Rust version cleared about 98% of its tests in April, but only about a quarter of live inputs matched the old API.

  • Speed: Anthropic says median time to first token fell by about 20%.
  • Scale: Anthropic says API traffic grew roughly 1,800 times between early 2024 and fall 2026.
  • Draft: Anthropic says Claude drafted the first version of the core request path in about a week.
  • Timeframe: AIM says the migration was completed in September.
  • Limit: AIM reports that human engineers still signed off on fixes before deployment.

Anthropic swaps Python for Rust in Messages API

Anthropic says it migrated its Messages API from Python to Rust. AIM reports that the rebuild covers the infrastructure customers use to reach Claude, including Claude Code and Cowork.

AIM reports that the migration was completed in September. Anthropic says the shift happened without taking the service offline or pausing feature work.

The figures behind the CPU and latency gains

Anthropic says each request now needs about 70% less CPU, and median time to first token drops by about 20%. AIM reports that the roughly 70% CPU reduction was measured in one production region.

AIM also reports more than 80% lower memory use per request across production. AIM says median time to first token fell by about 20% for Claude Code customer requests.

Anthropic says API traffic grew roughly 1,800 times from early 2024 to fall 2026. Anthropic says Claude produced a first version of the core request path in about a week.

Anthropic says the Rust version cleared about 98% of its tests in April, but only about a quarter of live inputs matched the old API. AIM says the share of matching production inputs reached 99.6% by August.

Anthropic says it started with an existing set of about 700 integration tests. An audit of the ported tests found more than 100 weakened assertions, the company says.

What the result means for teams on the API

AIM reports that Claude Code and Cowork are among the products served by the rebuilt infrastructure. The reported gains in CPU, memory and response start time matter most to teams that run the Messages API at high volume.

Anthropic says tests and written rules were not enough, so it used the existing API as the reference for checking parity. Anthropic puts the lesson this way, “Verification, not generation, had become the bottleneck.”

AIM reports that human engineers kept reviewing pull requests and approving changes before deployment. According to AIM, automated checks could confirm matching outputs but could not decide whether a fix suited production.

AIM reports that the company sees a lesson for other teams, namely that coding agents can handle big production rewrites if independent checks verify the output.

What Anthropic and AIM leave unsettled

AIM ties the roughly 70% CPU reduction to one production region, and its report gives no figure for other regions. Anthropic's own post states the 20% gain in median time to first token without naming a customer group. AIM limits the same 20% figure to Claude Code customer requests.

AIM presents these results as figures Anthropic reported itself, and the sources show no independent measurement. AIM quotes Anthropic as saying, “The verifier rewarded matching outputs, and the agent found the cheapest way to produce them.”

The reported week covers only the first draft, and the sources give no total cost of the full migration. Speculation, not a finding: teams without comparable live traffic may find this verification method harder to reuse.

Sources

  • anthropic.com, Migrating our Messages API to Rust (2026-11-25): https://www.anthropic.com/research/migrating-api-to-rust
  • AIM, Anthropic Ditches Python for Rust in Messages API, Cuts CPU Usage by 70% and Memory by Over 80% (2026-11-27): https://analyticsindiamag.com/ai-news/anthropic-ditches-python-for-rust-in-messages-api-cuts-cpu-usage-by-70-and-memory-by-over-80

Share this article

Add AI-News as a preferred source on Google

Add AI-News as a preferred source on Google

Post navigation

Previous: SAP reportedly plans to cut at least 10,000 jobs in AI shift
Next: Amazon to buy Decart's AI optimization technology and team

Related stories

Vast hall of tall shelves stacked with countless identical grey stone blocks stretching into misty distance under pale
  • Science

Anthropic Mathematician Releases Lean Proof of Riemann Hypothesis

EditorialDecember 2, 2026
A brass speed governor and a heavy valve on an industrial machine in a dim server hall, with the Anthropic logo in the lower
  • Safety

Anthropic CEO Amodei urges speed limits and delays next AI model

EditorialDecember 1, 2026
A heavy steel vault door standing slightly ajar in a dim server hall beside rows of server racks
  • Safety

Cryptographers form review group as AI encryption rumours spread

EditorialNovember 30, 2026

Never miss an article

Subscribe via RSS

Add the feed address to a feed reader and new articles arrive on their own.

Related categories

  • Basics
  • Business
  • Hardware
  • Models
  • Policy
  • Safety
  • Science
  • Tools

2nmABB RoboticsAcquisitionAcquisitionsAcrobatAdobeAgent harnessAgentic AIAgentic CommerceAgentsAI AgentsAI chipsAI Coding AgentsAI Data CentersAI generated musicAI GovernanceAI InferenceAI InfrastructureAI InvestmentAI ModeAI ModelsAI PrivacyAI RegulationAI SafetyAI securityAI stocksAI Training DataAI ValuationAir Traffic ControlAlpamayoAlphabetAlphaGenomeAmazonAmazon Web ServicesAMDAndroid GoAnthropicAPIApiiroApplied ComputeApplied DigitalAttention KernelsAuditingAutonomous DrivingAutopilotAWSAWS QuickAzureBallot MeasuresBankingBankruptcyCaliforniaCapitalGCarbon EmissionsCaterpillarCEO SuccessionCerebrasCharacter.AIChatGPT WalletChild SafetyChinaChina ChipsChip smugglingCIRGCitibankClaudeClaude CodeClaude ShipCloud OneCloud SecurityCode ReviewCodingCoding ModelsColette KressCompilersComputer UseConfidential ComputingCopilotCorporate GovernanceCrowdStrikeCrusoeCryptographyCyberattacksCybersecurityDario AmodeiData Center CPUsData CentersData PrivacyDDR6DecartDeciderDecision ModelsDeepMindDeepSeekDeveloper APIDonald TrumpDrug DiscoveryDynamoEarningsElon MuskEmbeddingsEncryptionEnterprise AIEntity ListEPYCEUExport controlsFAAFCCFine-tuningFlashInferFlight DisruptionFRCFunction CallingFundingGas turbinesGeminiGemini 4 CarbonGemini 4 HydrogenGemini 4 NeonGemini APIGemini appGemini for healthcareGemini RoboticsGenie 4GenomicsGitHubGLM-5.4GoogleGoogle AntigravityGoogle ClassroomGoogle CloudGoogle DeepMindGoogle SearchGoogle Threat IntelligenceGoogle TPUGoogle WalletGPT-6 AstraGPUGravitonGrokHallucinationHBMHealthcare AIHistoryHugging FaceHumanoid robotsHy4HyperscalersIBMInferenceIntelIntel FoundryInteractive ConnectorsIPOIsomorphic LabsJavaJEDECJensen HuangJet enginesJouleKimiKPMGKV CacheL3HarrisLangChainLanguage ModelsLayoffsLeanLLMLocateLoop TransformerLuxmacOSMCPMCP AppsMegaspeedMemoryMessages APIMetaMeta AIMicrosoftMicrosoft 365Microsoft CopilotMidterm electionsMLCommonsMLPerfMobile AIMoratoriumMultimodalMuseMusic streamingNasdaqNational SecurityNet ZeroNetwork OutageNighthawkNitroNVFP4NVIDIANVIDIA BlackwellOffice in CopilotOpen DataOpen weight modelsOpen-weightOpenAIOpenJDKOrbital Data CentersOutageOutlookPalo Alto NetworksPerplexityPersonal IntelligencePetitionPower generationProductivity SoftwareProject GeniePromptingPythonQuantum ComputingQuantum HardwareQwenRAGReasoningRecursive Self-ImprovementRegulationRiemann hypothesisRobot SafetyRoboticsRubin HPCRustSafetySAPSearchSEC InvestigationSecuritySemiconductorsSingle-cell biologySMART SystemSoftBankSoutheast AsiaSpaceXStarmindStationeryBenchSunoSupercomputersSupercomputingTencentTexasTidalTogether AITokensTool RetrievalTOP500TrainiumTransformerTSMCUnreleased ModelsUS Air ForceUS CongressUS MidtermsValuationVera RubinVision Language ActionWeather ForecastingWeatherNextWells FargoWorld ModelsWyomingxAIZ.aiZen 6Zscaler

You may have missed

Rows of black server racks with blue fiber cables overhead in a dark data center aisle
  • Hardware

AWS adds Trainium3SR inference chip and Nitro v7 card

EditorialDecember 2, 2026
Two rows of black server racks in a dim data center aisle with a polished silicon wafer on a stand in front, with the Nvidia
  • Hardware

Cerebras and NVIDIA team up to speed up AI agent inference

EditorialDecember 2, 2026
A tall glass and steel skyscraper facade seen from below against an evening sky
  • Business

Tidal to delete fully AI generated songs starting December 9

EditorialDecember 1, 2026
Quiet open plan office at dawn with empty desks around a shared central drafting table, with the Amazon logo in the lower
  • Tools

Amazon adds Docs, Sheets and Slides to its AWS Quick assistant

EditorialDecember 1, 2026
AI-News

AI-News for the web

Navigation

  • Home
  • Basics
  • Posts

Subscribe

  • RSS feed
  • Add AI-News as a preferred source on Google

    Add AI-News as a preferred source on Google

About

A blog about software, design, and the occasional stray thought.

© 2026 AI-News.