Count tokens for an Anthropic message
Changed onCounts the input tokens a create-message request would consume, without running the model.
Request
- Base URLhttps://api.sailresearch.com/v1
- URLhttps://api.sailresearch.com/v1/messages/count_tokens
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Response
Input token count.
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
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
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
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
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
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
invalid_request_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
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
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
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
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
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 - 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 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 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 - info
added the required property
to the response with the status
- breaking