messages

Create a message (Anthropic Messages API)

Changed on
post/v1/messages

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/v1/messages
  • Auth
    HTTP bearer

Request body

cache_controlobject
max_tokensinteger
modelstring
output_formatobject

OutputFormat is the deprecated top-level form of output_config.format.

stop_sequencesstring[]
streamboolean
temperaturenumber
top_kinteger
top_pnumber

Response

JSON response or SSE stream when stream=true

idstring
modelstring
rolestring
stop_reasonstring
stop_sequencestring
typestring

Changes