Create a message
Anthropic-compatible Messages endpoint. Accepts the Anthropic Messages request shape and routes to any catalogued model.
Also served at /v1/anthropic/v1/messages; both paths accept the same requests. This bare path is what the Anthropic SDK builds from a bare-host base URL, so pointing the SDK at https://api-gateway.merge.dev works with no other changes.
Authentication
AuthorizationBearer
Your production key sent as a bearer token.
Request
This endpoint expects an object.
model
max_tokens
messages
system
stream
temperature
top_p
top_k
stop_sequences
tools
tool_choice
metadata
service_tier
Response
Successful Response
id
type
role
model
content
usage
stop_reason
stop_sequence
Errors
422
Unprocessable Entity Error