Chat Completions

POST/v1/chat/completions

VerifiedPublished by Baseten
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": [
{
"role": "",
"content": ""
}
],
"model": ""
}
}'
{
"success": true,
"data": {
"id": "{id}",
"model": "{model}",
"usage": { … },
"object": "{object}",
"choices": [ 1 item ],
"created": 1
}
}
Example values, built from the documented fields.

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

$0.60per 1M tokens

Response-basedYou pay for the tokens the call uses, read from the response, never more than $0.20 per call.

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

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.

Body parameters

Response types

More from Baseten

  1. List ModelsGET/v1/modelsFree
All 2 Baseten endpoints

Similar endpoints

  1. OpenRouter · Chat CompletionPOST/chat/completionsUp to $5.00 per callResponse-based
  2. Z.ai · Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
  3. Perplexity · Chat CompletionsPOST/chat/completions$0.01 per callFixed
  4. MiniMax · Chat Completions (MiniMax-M2.7)POST/v1/chat/completions/minimax-m2.7From $0.36 per 1M tokensResponse-based · up to $0.30