v1
latestOpenAPI 3.1.02026-07-26105141.0 KBMessages API
Create an Anthropic message
Anthropic-compatible Messages endpoint supporting system prompts, tool calling, and streaming (SSE).
post/messages
Headers
anthropic-idempotency-keystring
Anthropic-compatible idempotency header. Same semantics as Idempotency-Key; used on the /messages endpoint to match Anthropic's conventions.
Request body
Response
Anthropic-compatible message response. Returns a single JSON object by default, or an Anthropic Server-Sent Events stream when stream: true.