curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "openrouter",
"path": "/chat/completions",
"method": "POST",
"body": {
"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.
99.9% success · 853 ms median · 30 days
About this endpoint
Send a chat conversation to any supported LLM and get a completion response. Supports streaming, tool calling, vision, and more.
Body parameters
modelstringModel identifier (e.g. openai/gpt-4o, anthropic/claude-sonnet-4, google/gemini-2.5-flash)messagesrequiredarrayList of messages for the conversation. Each message has role (system/user/assistant/tool) and content.max_tokensnumberMaximum tokens in the completion responsetemperaturenumberSampling temperature (0-2)top_pnumberNucleus sampling threshold (0-1)streambooleanWhether to stream the responsetoolsarrayList of tools/functions the model can calltool_choicestringControls tool calling behavior: auto, none, required, or specific functionfrequency_penaltynumberFrequency penalty (-2.0 to 2.0)presence_penaltynumberPresence penalty (-2.0 to 2.0)stoparrayStop sequences to halt generationresponse_formatobjectFormat constraint (e.g. json_object, json_schema)More from OpenRouter
- List ModelsGET/modelsFree
- Generate ImagePOST/imagesUp to $5.00 per callResponse-based
- RerankPOST/rerankUp to $0.10 per callResponse-based
- List ProvidersGET/providersFree
- Create ResponsePOST/responsesUp to $5.00 per callResponse-based
- Generate VideoPOST/videosFrom $0.12 per callRequest-based
- Create EmbeddingPOST/embeddingsUp to $0.10 per callResponse-based
- Get ModelGET/model/{author}/{slug}Free
- Create MessagePOST/messagesUp to $5.00 per callResponse-based
- Text to SpeechPOST/audio/speechUp to $0.50 per callResponse-based
- Transcribe AudioPOST/audio/transcriptionsUp to $0.10 per callResponse-based
- List Image ModelsGET/images/modelsFree
Similar endpoints
- Z.ai · Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
- Baseten · Chat CompletionsPOST/v1/chat/completions$0.60 per 1M tokensResponse-based · up to $0.20
- Perplexity · Chat CompletionsPOST/chat/completions$0.01 per callFixed
- MiniMax · Chat Completions (MiniMax-M3)POST/v1/chat/completions/minimax-m3From $0.72 per 1M tokensResponse-based · up to $1.80
- Massive Web · AI CompletionGET/ai$0.0625 per callFixed