Menu

Messages

Last updated

Create messages using the Anthropic Messages API format.

Endpoint

Create a non-streaming message.

Example request
Response format

Create a streaming message that delivers tokens as they are generated.

Example request

Streaming responses use Server-Sent Events (SSE). The key event types are:

  • - Initial message metadata
  • - Start of a content block (text, tool use, etc.)
  • - Incremental content updates
  • - End of a content block
  • - Final message metadata (stop reason, usage)
  • - End of the message

Was this helpful?

supported.