Skip to content
当前页导航

GEN_VIDEO API Documentation

🌐 Language Switch

中文版 | English

Interface Information

POST /openapi/capcut-mate/v1/gen_video

Function Description

Submit video generation task. This interface uses asynchronous processing mode, immediately returning task submission status, with video generation performed in the background. Supports task queuing to ensure system stability.

More Documentation

📖 For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn

Request Parameters

json
{
  "draft_url": "https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_draft?draft_id=2025092811473036584258"
}

Parameter Description

ParameterTypeRequiredDefaultDescription
draft_urlstring-Complete URL of the target draft

Parameter Details

Draft URL Parameter

  • draft_url: Complete URL address of the draft
    • Format: https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_draft?draft_id={draft_ID}
    • Example: "https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_draft?draft_id=2025092811473036584258"
    • Acquisition Method: Obtained via Create Draft or Save Draft interfaces

Response Format

Success Response (200)

json
{
  "message": "Video generation task submitted, please use draft_url to check progress"
}

Response Field Description

FieldTypeDescription
messagestringResponse message

Error Response (4xx/5xx)

json
{
  "detail": "Error message description"
}

Usage Examples

cURL Examples

1. Basic Video Generation

bash
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/gen_video \
  -H "Content-Type: application/json" \
  -d '{
    "draft_url": "YOUR_DRAFT_URL"
  }'

Error Code Description

Error CodeError MessageDescriptionSolution
400draft_url is requiredMissing draft URL parameterProvide a valid draft_url
400Invalid draft_url formatURL format is incorrectCheck if URL format is correct
404Draft does not existSpecified draft cannot be foundConfirm that draft URL is correct and exists
400Draft content is emptyDraft contains no exportable contentEnsure draft contains video, audio or image materials
400Material inaccessibleMaterial files in draft cannot be downloadedCheck if material URLs are valid
500Video rendering failedError occurred during video processingCheck draft content or contact technical support
500Audio processing failedError occurred during audio mixingCheck audio format or contact technical support
500Encoding failedFinal video encoding failedContact technical support
503Service busyRendering server overloadedRetry later
504Processing timeoutVideo generation timed outSimplify draft content or retry later
500Video generation task submission failedInternal processing errorContact technical support

Notes

  1. Processing Time: Video generation is time-consuming, may take minutes to tens of minutes
  2. File Size: Draft complexity and number of materials affect processing time
  3. Network Stability: Ensure material URLs are stably accessible
  4. Timeout Settings: Suggest setting longer timeout or using polling mechanism
  5. Concurrency Limit: Avoid generating large numbers of videos simultaneously
  6. Storage Space: Generated video files may be large, pay attention to storage space
  7. URL Validity: Generated video_url may have time-based restrictions
  8. System Requirements: Video generation feature only available on Windows systems

Workflow

  1. Validate draft_url parameter
  2. Parse draft configuration file
  3. Download all required material files
  4. Arrange and process materials according to timeline
  5. Apply visual effects and transitions
  6. Mix audio tracks
  7. Render final video
  8. Encode and upload video file
  9. Return video URL

Language Switch

中文版 | English