Chat Completions

POST/chat/completions

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

$0.01per call

Every call costs the same.

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

99.9% success · 4,134 ms median · 30 days

About this endpoint

Generates a model’s response for the given chat conversation.

Body parameters

More from Perplexity

  1. SearchPOST/search$0.01 per callFixed
  2. List Async Chat CompletionsGET/async/chat/completions$0.01 per callFixed
  3. Get Async Chat Completion ResponseGET/async/chat/completions/{request_id}$0.01 per callFixed
  4. Sonar Chat Completions APIPOST/async/chat/completions$0.01 per callFixed
All 5 Perplexity endpoints

Similar endpoints

  1. Baseten · Chat CompletionsPOST/v1/chat/completions$0.60 per 1M tokensResponse-based · up to $0.20
  2. Massive Web · AI CompletionGET/ai$0.0625 per callFixed
  3. OpenRouter · Chat CompletionPOST/chat/completionsUp to $5.00 per callResponse-based
  4. Z.ai · Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749