主题切换
GEN_VIDEO_ACTIVE_COUNT API Documentation
🌐 Language Switch
Interface Information
GET /openapi/capcut-mate/v1/gen_video_active_countFunction Description
Return how many draft exports are currently queued or rendering, i.e. tasks in pending or processing. Completed and failed tasks are not counted. Useful for checking export load before calling gen_video.
Request Parameters
This interface takes no parameters.
Response Format
Success Response (200)
json
{
"code": 0,
"message": "success",
"count": 3
}Response Field Description
| Field | Type | Description |
|---|---|---|
| count | integer | Number of tasks in pending or processing |
Error Response
json
{
"code": 9998,
"message": "Internal server error"
}Usage Examples
cURL Examples
1. Query Active Export Count
bash
curl -X GET https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/gen_video_active_countError Code Description
| Error Code | Error Message | Description | Solution |
|---|---|---|---|
| 9998 | Internal server error | Unexpected error while counting tasks | Retry later or contact technical support |
Notes
- No Parameters: the interface takes no request body and no query string
- Counted States:
pending(queued) andprocessing(rendering);completedandfailedare excluded - Free: no
apiKeyis required - Use Together with gen_video: the export worker has a concurrency limit, so a high count means a newly submitted task waits longer
Workflow
- Read the in-memory export task list
- Count the tasks whose status is
pendingorprocessing - Return the count
Related Interfaces
📚 Project Resources
GitHub: https://github.com/Hommy-master/capcut-mate
Gitee: https://gitee.com/taohongmin-gitee/capcut-mate
