Chat Completion

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

Changes with the parameters; the exact charge shows after Run.

up to $1.0000per callMaximum per call. Actual charge metered from response.

About this endpoint

Create a chat completion model that generates AI replies for given conversation messages. It supports multimodal inputs (text, images, audio, video, file), offers configurable parameters (like temperature, max tokens, tool use), and supports both streaming and non-streaming output modes.

Body parameters