Anthropic

Create a message

Changed on

Create a message using the Anthropic-compatible API. Supports tool use and sseStreaming.

post/anthropic/v1/messages

Request

  • Base URL
    https://api.neosantara.xyz
  • URL
    https://api.neosantara.xyz/anthropic/v1/messages
  • Auth
    HTTP bearer

Request body

modelstring required
max_tokensinteger required
temperaturenumber
top_pnumber
top_kinteger
streamboolean
stop_sequencesstring[]
metadataobject
tool_choiceunknown
effort'low' | 'medium' | 'high' | 'max'
speed'fast' | 'standard'

Response

Successful response or SSE stream

idstring nullable
type'message' required
role'assistant' | 'null' nullable
modelstring nullable
stop_reasonstring nullable
stop_sequencestring nullable

Changes

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property const value assistant was removed for the status

    • breaking

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 subschema #8 subschema #9 subschema #10 subschema #11 subschema #12 subschema #13 subschema #14 subschema #15 subschema #16 subschema #17 to the / response property oneOf list for the response status

    • warning

      added the new assistant enum value to the response property for the response status

    • warning

      added the new undefined enum value to the response property for the response status

    • info

      added the media type text/event-stream for the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status