Messages API
A conversational interface provided by Anthropic that models input as a list of role-based messages, expressing model behavior uniformly through content blocks and stop_reason. It is stateless, so the full history must be sent with each request.
Core Facts
Timeline (last 90 days)
Anthropic migrated the Messages API from Python to Rust.
Anthropic officially stated that after the migration each request uses about 70% less CPU, with no downtime throughout.
DiHunting migrated the Messages API from Python to Rust and had the Code agent team investigate and fix the differences between the two versions.
The evolution of agent product forms includes three stages: direct calls to the Messages API, a prebuilt agent harness, and managed agents.
The original material does not disclose the specific motivations, performance data, or timeline for Anthropic's migration of the Messages API.
Anthropic migrated the Messages API to Rust, even though the team had no prior Rust development experience.
The Messages API memory tool allows the model to read and write an application-hosted memory store through tool calls, with the storage backend controlled by the developer.
Ling-3.2-flash is a model recently released publicly by Ant Group's Ling team, and its Messages API places tool_use and tool_result as explicit content blocks in the message history.
Explicitly retaining tool calls and results in the message history accelerates history growth and increases context window usage, so callers need to trade off traceability against token overhead.
Ling's Messages API also exposes two separate fields, the tool list and the tool choice strategy, which respectively control the set of available tools and how the model selects tools.
25 more timeline events
All Facts (20)
The Messages API is an interface style that carries multi-turn conversations in an ordered messages array, where each message consists of role and content, and content can be a string or an array of typed content blocks; Anthropic's Claude API is an early representative of this style and was the first to express tool calls as tool_use and tool_result content blocks.
65%UnverifiedAnthropic uses the Messages API and has introduced a unique system prompt handling approach.
90%UnverifiedAnthropic's Messages API is stateless, and the application needs to send the full conversation history with each request.
60%UnverifiedThe Anthropic Messages API stream carries the input token count in the message_start event (message.usage), and output tokens arrive later via the message_delta event.
60%UnverifiedAnthropic officially stated that after the migration each request uses about 70% less CPU, with no downtime throughout.
50%UnverifiedThe evolution of agent product forms includes three stages: direct calls to the Messages API, a prebuilt agent harness, and managed agents.
50%UnverifiedThe original material does not disclose the specific motivations, performance data, or timeline for Anthropic's migration of the Messages API.
50%UnverifiedThe Messages API memory tool allows the model to read and write an application-hosted memory store through tool calls, with the storage backend controlled by the developer.
50%UnverifiedExplicitly retaining tool calls and results in the message history accelerates history growth and increases context window usage, so callers need to trade off traceability against token overhead.
50%UnverifiedLing's Messages API also exposes two separate fields, the tool list and the tool choice strategy, which respectively control the set of available tools and how the model selects tools.
50%UnverifiedIn Ling's Messages API, a tool_use block contains the tool name, a unique call identifier, and structured parameters, and a tool_result block is associated with the tool_use via the corresponding call identifier and can mark whether execution errored.
50%UnverifiedLing-3.2-flash is a model recently released publicly by Ant Group's Ling team, and its Messages API places tool_use and tool_result as explicit content blocks in the message history.
50%UnverifiedThe enforcement scope of the IP allowlist covers four API surfaces: the Messages API, Batches API, Files API, and Admin API.
50%UnverifiedIn regular Claude API calls, each POST /v1/messages must carry the complete messages array, and the server does not remember prior turns.
50%UnverifiedIn the Messages API, a stop_reason of tool_use means the model is requesting a tool call, and the response contains a tool_use content block carrying the tool name, input parameters, and a unique tool_use_id.
50%UnverifiedAnthropic's Messages API is stateless, so every request must resend the full conversation history.
50%UnverifiedThe Text Completions interface accepts a single prompt and returns a continuation; the Messages API request body consists of a system prompt and a messages array, with each message containing a role and content.
50%UnverifiedIf the project makes heavy use of Text Completions or temperature, the migration cost is relatively high and you can wait for a more complete transition plan; if it only makes standard Messages API calls, the upgrade path is relatively smooth.
50%UnverifiedAnthropic has fully consolidated conversational capabilities into the Messages API, and the old text completion endpoint is no longer supported.
50%UnverifiedThe usage field in the Messages API has always been used to return the token statistics of the current call (such as input_tokens, output_tokens).
50%