Create a new CapCut draft. This interface is used to create a new video editing draft, supporting custom resolution, frame rate, background color, and other parameters. It is suitable for video editing, content creation, template production, and other scenarios.
More Documentation
๐ For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn
Request Parameters
Request Body (application/json)
Parameter Name
Type
Required
Default Value
Description
title
string
โ
"Untitled Draft"
Draft title, supports Chinese, English, numbers, and special characters
resolution
object
โ
{"width": 1920, "height": 1080}
Video resolution configuration
fps
number
โ
30
Video frame rate, supports 24/25/30/48/50/60
background_color
string
โ
"#000000"
Background color, supports hex color codes
duration
number
โ
60
Default duration (seconds), range: 1-3600
aspect_ratio
string
โ
"16:9"
Aspect ratio, supports preset ratios or custom ratios
quality
string
โ
"high"
Video quality level
audio_sample_rate
number
โ
48000
Audio sampling rate (Hz)
audio_channels
number
โ
2
Number of audio channels
Resolution Configuration
{"resolution":{"width":1920,"height":1080}}
Resolution Options
Resolution
Width
Height
Application Scenario
1080p
1920
1080
Standard HD, universal choice
720p
1280
720
Standard definition, small file size
4K
3840
2160
Ultra HD, high quality
1440p
2560
1440
2K HD, balanced choice
Vertical 1080p
1080
1920
Short video, mobile optimization
Square
1080
1080
Social media, square format
Aspect Ratio Options
Aspect Ratio
Description
Application Scenario
16:9
Widescreen
Standard video, YouTube
9:16
Vertical screen
Short video, TikTok
1:1
Square
Instagram, social media
4:3
Standard screen
Traditional video
21:9
Ultra-wide
Movie, wide screen
custom
Custom ratio
Special needs
Quality Options
Quality Level
Description
File Size
Processing Speed
low
Low quality
Small
Fast
medium
Medium quality
Medium
Medium
high
High quality
Large
Slow
ultra
Ultra high quality
Very large
Very slow
Frame Rate Options
Frame Rate
Description
Application Scenario
24
Movie standard
Film production
25
PAL standard
European TV
30
NTSC standard
American TV, network video
48
High frame rate
Smooth motion
50
PAL high frame rate
Sports broadcast
60
Game standard
Game recording, smooth motion
Audio Configuration
Parameter Name
Options
Description
audio_sample_rate
44100, 48000, 96000
Sampling rate, 48000 recommended
audio_channels
1, 2, 6
1=mono, 2=stereo, 6=5.1 surround
Response Format
Success Response (200)
{"draft_url":"https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_draft?draft_id=2025092811473036584258","draft_id":"2025092811473036584258","title":"My Video Draft","resolution":{"width":1920,"height":1080},"fps":30,"duration":60,"created_at":"2024-09-28T11:47:30Z","updated_at":"2024-09-28T11:47:30Z","tip_url":"https://help.assets.jcaigc.cn/draft-usage"}
Response Field Description
Field Name
Type
Description
draft_url
string
Draft access URL, used for subsequent operations
draft_id
string
Unique identifier of the draft
title
string
Draft title
resolution
object
Video resolution configuration
fps
number
Video frame rate
duration
number
Video duration (seconds)
created_at
string
Creation time (ISO 8601 format)
updated_at
string
Last update time (ISO 8601 format)
tip_url
string
Draft usage help document URL
Error Response (4xx/5xx)
{"detail":"Error message description"}
Usage Examples
cURL Example
1. Create basic draft
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/create_draft \-H"Content-Type: application/json"\-d'{
"title": "My First Video",
"resolution": {"width": 1920, "height": 1080},
"fps": 30,
"duration": 120
}'
// Create draft functionconstcreateDraft=async (draftConfig)=>{constresponse=awaitfetch('/openapi/capcut-mate/v1/create_draft',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(draftConfig)});returnresponse.json();};// Usage example(async ()=>{// Create standard HD draftconststandardDraft=awaitcreateDraft({title:"My Video Project",resolution:{width:1920,height:1080},fps:30,duration:90});console.log('Draft created successfully:',standardDraft);// Create short video draftconstshortVideoDraft=awaitcreateDraft({title:"Short Video Content",resolution:{width:1080,height:1920},aspect_ratio:"9:16",fps:30,background_color:"#FF6B35",duration:30});console.log('Short video draft created:',shortVideoDraft);})();
Python Example
importrequestsdefcreate_draft(draft_config):"""Create a new CapCut draft"""response=requests.post('https://api.assets.jcaigc.cn/openapi/capcut-mate/v1/create_draft',headers={'Content-Type':'application/json'},json=draft_config)returnresponse.json()# Usage example
# 1. Create basic video draft
basic_config={"title":"Basic Video Draft","resolution":{"width":1920,"height":1080},"fps":30,"duration":60}basic_draft=create_draft(basic_config)print(f"Basic draft created: {basic_draft['draft_url']}")# 2. Create social media draft
social_config={"title":"Instagram Video","resolution":{"width":1080,"height":1080},"aspect_ratio":"1:1","fps":30,"quality":"high","duration":30}social_draft=create_draft(social_config)print(f"Social media draft created: {social_draft['draft_url']}")# 3. Create professional 4K draft
professional_config={"title":"Professional 4K Video","resolution":{"width":3840,"height":2160},"fps":60,"aspect_ratio":"16:9","quality":"ultra","audio_sample_rate":48000,"audio_channels":2,"duration":120}professional_draft=create_draft(professional_config)print(f"Professional 4K draft created: {professional_draft['draft_url']}")
Error Code Description
Error Code
Error Message
Description
Solution
400
Invalid resolution format
Resolution parameter format error
Use correct resolution object format
400
Invalid fps value
Frame rate value is out of range
Use preset frame rate values
400
Invalid background_color format
Background color format error
Use valid hex color codes
400
Invalid duration value
Duration value is out of range
Duration should be between 1-3600 seconds
400
Invalid aspect_ratio format
Aspect ratio format error
Use preset ratio values
400
Invalid quality value
Quality level error
Use preset quality values
400
Invalid audio_sample_rate
Audio sampling rate error
Use preset sampling rate values
400
Invalid audio_channels
Number of audio channels error
Use 1, 2, or 6
500
Draft creation failed
Internal service error
Contact technical support or try again later
503
Service unavailable
System under maintenance
Try again later
Notes
Title Setting: Use a descriptive title to facilitate subsequent management and search
Resolution Selection: Choose appropriate resolution based on target platform and usage scenario
Frame Rate Setting: Choose appropriate frame rate based on content type and target platform
Quality Balance: Balance video quality and file size, choose appropriate quality level
Duration Planning: Set reasonable default duration to avoid overly long or too short
Background Color: Choose appropriate background color to match video content style
Aspect Ratio: Choose appropriate aspect ratio based on target platform requirements
Audio Configuration: Set appropriate audio parameters to ensure sound quality
Top comments (0)