API Reference
Messages API
Anthropic-compatible /v1/messages endpoint — point an Anthropic SDK at Morph by changing the base URL
POST
Create a message
Overview
POST /v1/messages mirrors Anthropic’s Messages API. Clients built on an Anthropic SDK switch to Morph by changing the base URL and API key — no request or response rewriting.
POST /v1/chat/completions instead; both routes serve the same models.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Body
application/json
Anthropic-compatible message request
Anthropic-shaped Messages request served by a Morph model.
Response
Message response
Anthropic-shaped Messages response produced by a Morph model.