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/files",
"method": "POST",
"body": {
"purpose": "",
"file": ""
}
}'
{
"success": true,
"data": {
"id": "{id}",
"object": "{object}",
"bytes": 1,
"filename": "{filename}",
"purpose": "{purpose}",
"created_at": 1
}
}
Example values, built from the documented fields.
$0.000109per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
This API is designed for uploading auxiliary files (such as glossaries, terminology lists) to support the translation service. It allows users to upload reference materials that can enhance translation accuracy and consistency.
Body parameters
purposerequiredstringUpload purposefilerequiredstringFile to upload. agent limit to 100MB, user_data limit to 1T. agent allowed formats: pdf, doc, xlsx, ppt, txt, jpg, png, user_data allowed formats: pptx, ppt, docx, doc, xlsx, xls, pdf.Response types
idUnique identifier of the uploaded file.stringobjectObject type.stringbytesFile size in bytes.integerfilenameName of the uploaded file.stringpurposePurpose of the uploaded file.stringcreated_atTimestamp of file creation.integerMore from Z.ai
- Web page readerPOST/api/paas/v4/reader$0.0109 per callFixed
- Agent taskPOST/api/v1/agentsFrom $0.763 per 1M tokens · varies by agentResponse-based · up to $1.09
- Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
- Async image generationPOST/api/paas/v4/async/images/generations$0.01635 per callFixed
- Web searchPOST/api/paas/v4/web_search$0.0109 per callFixed
- Image/video job resultGET/api/paas/v4/async-result/{id}Free
- Token countPOST/api/paas/v4/tokenizer$0.000109 per callFixed
- Video generationPOST/api/paas/v4/videos/generations$0.218 per callFixed
- Agent job resultPOST/api/v1/agents/async-resultFree
- Speech to textPOST/api/paas/v4/audio/transcriptions$0.001308 per callFixed
- Document OCR parsingPOST/api/paas/v4/layout_parsing$0.0327 per 1M tokensResponse-based · up to $0.00981
- Slides conversation exportPOST/api/v1/agents/conversationFree