Create Anthropic Message
Anthropic Messages API — native pass-through via litellm.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
How to pick between the providers that serve the requested model. Applies only when model is a model name with no provider prefix (e.g. 'gpt-5.5'); ignored for a concrete 'provider/model' id, which already names its provider. This does not choose the model — for that see router_candidates with model='@edenai'.
List of fallback model IDs to try if the primary model fails. Models are tried in order. Example: ['anthropic/claude-3-opus', 'openai/gpt-4o']
3Identifies a conversation, so its requests keep reaching the provider that holds its prompt cache. Any stable string you choose — a thread id, a ticket number, an agent run. Also accepted as the x-session-id header, for clients that cannot add body fields; the body field wins if both are sent. Without one, a conversation is recognised from its opening messages instead.
256Models the '@edenai' router may choose BETWEEN — it picks the model, whereas routing picks the provider for a model you already named. Used only when model='@edenai'. Each entry should be 'provider/model', e.g. ['openai/gpt-4o', 'anthropic/claude-3-5-sonnet-20241022']. If not provided, defaults to all available models.
x >= 00 <= x <= 20 <= x <= 1Response
Successful Response
Response body for POST /v1/messages (non-streaming).
Unique identifier for the message.
Model that generated the message.
Ordered list of content blocks produced by the model.
Token usage for the request.
Object type. Always 'message' for this endpoint.
"message"Conversational role of the response.
"assistant"Reason generation stopped, if known.
end_turn, max_tokens, stop_sequence, tool_use Custom stop sequence that triggered the stop, if any.