Create an Anthropic message
Changed onAnthropic-compatible Messages endpoint supporting system prompts, tool calling, and Anthropic SSE framing after generation completes.
Request
- Base URLhttps://api.sailresearch.com/v1
- URLhttps://api.sailresearch.com/v1/messages
- Auth
- HTTP bearer
- or API key in header x-api-key
Headers
Identifies one Messages submission within your organization and API key. Reuse the same value and request body when retrying; use a new value for new work. See Idempotency.
Completion window for this request, for clients that cannot set metadata.completion_window in the body. A window in the body takes precedence. See Completion windows.
Request body
Response
Anthropic-compatible message response. Returns a single JSON object by default, or an Anthropic Server-Sent Events stream when stream: true.
Changes
- breaking
removed the enum value
priorityof the request property/ - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
api_errorenum value to the/response property for the response status - warning
added the new
api_errorenum value to the/response property for the response status - warning
added the new
api_errorenum value to the/response property for the response status - warning
added the new
authentication_errorenum value to the/response property for the response status - warning
added the new
authentication_errorenum value to the/response property for the response status - warning
added the new
authentication_errorenum value to the/response property for the response status - warning
added the new
billing_errorenum value to the/response property for the response status - warning
added the new
billing_errorenum value to the/response property for the response status - warning
added the new
billing_errorenum value to the/response property for the response status - warning
added the new
conflict_errorenum value to the/response property for the response status - warning
added the new
conflict_errorenum value to the/response property for the response status - warning
added the new
conflict_errorenum value to the/response property for the response status - warning
added the new
invalid_request_errorenum value to the/response property for the response status - warning
added the new
invalid_request_errorenum value to the/response property for the response status - warning
added the new
invalid_request_errorenum value to the/response property for the response status - warning
added the new
model_context_window_exceededenum value to theresponse property for the response status (media type: application/json) - warning
added the new
not_found_errorenum value to the/response property for the response status - warning
added the new
not_found_errorenum value to the/response property for the response status - warning
added the new
not_found_errorenum value to the/response property for the response status - warning
added the new
overloaded_errorenum value to the/response property for the response status - warning
added the new
overloaded_errorenum value to the/response property for the response status - warning
added the new
overloaded_errorenum value to the/response property for the response status - warning
added the new
permission_errorenum value to the/response property for the response status - warning
added the new
permission_errorenum value to the/response property for the response status - warning
added the new
permission_errorenum value to the/response property for the response status - warning
added the new
rate_limit_errorenum value to the/response property for the response status - warning
added the new
rate_limit_errorenum value to the/response property for the response status - warning
added the new
rate_limit_errorenum value to the/response property for the response status - warning
added the new
request_too_largeenum value to the/response property for the response status - warning
added the new
request_too_largeenum value to the/response property for the response status - warning
added the new
request_too_largeenum value to the/response property for the response status - warning
added the new
timeout_errorenum value to the/response property for the response status - warning
added the new
timeout_errorenum value to the/response property for the response status - warning
added the new
timeout_errorenum value to the/response property for the response status - info
the endpoint scheme security
AnthropicApiKeywas added to the API - info
the endpoint scheme security
BearerAuthwas added to the API - info
added the new optional
headerrequest parameterX-Sail-Completion-Window - info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
- info
added the new
balancedenum value to the request property/ - info
added to the
////request propertyoneOflist - info
added to the
///////////request propertyoneOflist - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
/to the response with the status (media type: application/json) - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
/to the response with the status (media type: application/json) - info
added the required property
/to the response with the status (media type: application/json)
- breaking