
Chat Completions
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "baseten",
"path": "/v1/chat/completions",
"method": "POST",
"body": {
"messages": ,
"model": ""
}
}'
{
"success": true,
"data": {
"id": "example",
"model": "example",
"usage": { … },
"object": "example",
"choices": [ 1 item ],
"created": 123
}
}
Example values, built from the documented fields.
Changes with the parameters.
Priced per callThe price depends on the request.
About this endpoint
Send a conversation to a model and get a completion back. Works exactly like the OpenAI chat completions endpoint. Pass messages and a model slug, get a response with the assistant's reply. Supports streaming for real-time token delivery, tool calling for function execution, structured outputs via response_format, and controllable reasoning depth on supported models.