Anthropic Messages

Relayed to a Claude model as sent, apart from model.

post/v1/messages

Request

Headers

X-AgentLab-Routing'auto' | 'auto:cost' | 'auto:balanced' | 'auto:quality'

Let the Gateway choose the model although the body names one, with that preference.

Idempotency-Keystring

Request body

modelstring required
max_tokensinteger required

Response

The model's answer, or a text/event-stream when stream is true.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.