Create Message

POST/messages

Listed by OrthogonalReliablePublished by OpenRouter
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "openrouter",
"path": "/messages",
"method": "POST",
"body": {
"model": "",
"messages": [
{
"role": "",
"content": ""
}
]
}
}'

The final charge depends on what comes back. It shows after Run.

up to$5.00per call

Response-basedThe price is worked out from the usage reported in the response, never more than $5.00 per call.

You aren't charged for failed calls. A wallet payment for a failed call is refunded.

API-wide: 99.9% success · 882 ms median · 30 days

About this endpoint

Create a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.

Body parameters

More from OpenRouter

  1. List ModelsGET/modelsFree
  2. Generate ImagePOST/imagesUp to $5.00 per callResponse-based
  3. RerankPOST/rerankUp to $0.10 per callResponse-based
  4. List ProvidersGET/providersFree
  5. Create ResponsePOST/responsesUp to $5.00 per callResponse-based
  6. Chat CompletionPOST/chat/completionsUp to $5.00 per callResponse-based
  7. Generate VideoPOST/videosFrom $0.12 per callRequest-based
  8. Create EmbeddingPOST/embeddingsUp to $0.10 per callResponse-based
  9. Get ModelGET/model/{author}/{slug}Free
  10. Text to SpeechPOST/audio/speechUp to $0.50 per callResponse-based
  11. Transcribe AudioPOST/audio/transcriptionsUp to $0.10 per callResponse-based
  12. List Image ModelsGET/images/modelsFree
All 20 OpenRouter endpoints