Orchestrator API
Create Message
Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set stream: true to receive server-sent events. Authenticate with your Perplexity API key — both Authorization: Bearer and the Anthropic SDK’s default x-api-key header are accepted.
POST
Create Message
Authenticate with your Perplexity API key. Both
Authorization: Bearer and the Anthropic SDK’s default x-api-key header are accepted, so the stock SDK api_key parameter works unchanged. No anthropic-version header is required.Parameter support
Parameter support
Honored:
model, max_tokens (required), messages, system, stream, temperature, top_p, top_k, stop_sequences, thinking (only {"type": "disabled"}), tools, tool_choice. Message content and tool_result.content accept text, image, document, and search_result blocks. Document sources can be base64, plain text, or URLs and may include title and context.Accepted but not forwarded to the model: metadata.Rejected with a 400: service_tier, thinking with {"type": "enabled"}, cache_control on content blocks or tools, plus any unrecognized top-level field. A tool’s description is optional.Errors
Errors
Errors use the Anthropic envelope:An overloaded model returns HTTP
429 with type overloaded_error and a Retry-After header. Requests that fail before producing output are not billed.Body
application/json
Request body for POST /orchestrator/v1/messages.
Response
Successful response. JSON for non-streaming requests; a text/event-stream of typed events (message_start through message_stop) when stream is true.
Non-streaming response body and the message_start payload.
Create Message