Messages
Create a message
Changed onpost/messages
Request
- Base URLhttps://api.orcarouter.ai/v1
- URLhttps://api.orcarouter.ai/v1/messages
- AuthHTTP bearer
Headers
X-OrcaRouter-Include-Coststring
Example:true
Opt in to per-request cost reporting. When true (or 1, case-insensitive), the billed cost of the call is added to the response's usage object — usage.cost_usd on the OpenAI and Anthropic formats, usageMetadata.costUsd on the Gemini format. On streams it rides the frame carrying final usage (send stream_options: {"include_usage": true} on the OpenAI format). Absent or any other value means off. See Per-request cost.
Request body
Example request
{
"model": "anthropic/claude-sonnet-4.6"
}Response
OK
Changes
- info
added the new optional
headerrequest parameterX-OrcaRouter-Include-Cost
- info