[KongchangAI]
ConceptAnthropic Messages API

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)

Nov 29

Anthropic migrated the Messages API from Python to Rust.

Unverified50%
Nov 29

Anthropic officially stated that after the migration each request uses about 70% less CPU, with no downtime throughout.

Unverified50%
Nov 28

DiHunting migrated the Messages API from Python to Rust and had the Code agent team investigate and fix the differences between the two versions.

Unverified50%
Nov 27

The evolution of agent product forms includes three stages: direct calls to the Messages API, a prebuilt agent harness, and managed agents.

Unverified50%
Nov 25

The original material does not disclose the specific motivations, performance data, or timeline for Anthropic's migration of the Messages API.

Unverified50%
Nov 25

Anthropic migrated the Messages API to Rust, even though the team had no prior Rust development experience.

Unverified50%
Nov 16

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.

Unverified50%
Nov 11

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.

Unverified50%
Nov 11

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.

Unverified50%
Nov 11

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.

Unverified50%

25 more timeline events

All Facts (20)

Verified

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%
Unverified

Anthropic uses the Messages API and has introduced a unique system prompt handling approach.

90%
Unverified

Anthropic's Messages API is stateless, and the application needs to send the full conversation history with each request.

60%
Unverified

The 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%
Unverified

Anthropic officially stated that after the migration each request uses about 70% less CPU, with no downtime throughout.

50%
Unverified

The evolution of agent product forms includes three stages: direct calls to the Messages API, a prebuilt agent harness, and managed agents.

50%
Unverified

The original material does not disclose the specific motivations, performance data, or timeline for Anthropic's migration of the Messages API.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

In 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%
Unverified

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.

50%
Unverified

The enforcement scope of the IP allowlist covers four API surfaces: the Messages API, Batches API, Files API, and Admin API.

50%
Unverified

In regular Claude API calls, each POST /v1/messages must carry the complete messages array, and the server does not remember prior turns.

50%
Unverified

In 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%
Unverified

Anthropic's Messages API is stateless, so every request must resend the full conversation history.

50%
Unverified

The 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%
Unverified

If 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%
Unverified

Anthropic has fully consolidated conversational capabilities into the Messages API, and the old text completion endpoint is no longer supported.

50%
Unverified

The 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%

Source Articles