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/videos/generations",
"method": "POST",
"body": {
"model": "",
"prompt": "",
"quality": "",
"size": "",
"fps": ,
"duration":
}
}'
{
"success": true,
"data": {
"id": "20261121070515183551e959054b68",
"model": "cogvideox-3",
"request_id": "20261121070515183551e959054b68",
"task_status": "PROCESSING"
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.218per 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
CogVideoX is a video generation large model developed by Z.AI, equipped with powerful video generation capabilities. Simply inputting text or images allows for effortless video creation.
Body parameters
modelrequiredstringThe model code to be called.promptstringText description of the video, maximum input length of 512 characters. Either image_url or prompt must be provided, or both.qualitystringOutput mode, default is speed.with_audiobooleanWhether to generate AI sound effects. Default: false.image_urlstringImage(s) (URL or Base64) the video is generated from.sizestringVideo resolution.fpsintegerVideo frame rate. Default: 30.durationintegerVideo duration in seconds. Default: 5.request_idstringUnique request ID, 6-64 characters.user_idstringUnique ID of the end user, 6-128 characters.Response types
modelModel name used in this call.stringidTask order number generated by the Z.AI, use this order number when calling the request result interface.stringrequest_idTask number submitted by the user during the client request or generated by the platform.stringtask_statusProcessing status, PROCESSING (processing), SUCCESS (success), FAIL (failure). Results need to be obtained via query.stringMore 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
- 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
- Image generationPOST/api/paas/v4/images/generations$0.01635 per callFixed