CapCutAPI
  1. keyframes
CapCutAPI
  • Quick Start!
  • How to get CapCut draft folder?
  • Preview Draft Online
  • Get Your API Key
  • text
    • ArtistEffectText
    • get_text_intro_types
      GET
    • get_text_outro_types
      GET
    • get_text_loop_anim_types
      GET
    • get_font_types
      GET
    • add_text
      POST
    • add_subtitle
      POST
    • search_artist
      POST
  • image
    • get_intro_animation_types
      GET
    • get_outro_animation_types
      GET
    • get_combo_animation_types
      GET
    • add_image
      POST
  • video
    • add_video
      POST
  • transition
    • get_transition_types
      GET
  • audio
    • get_audio_effect_types
      GET
    • add_audio
      POST
  • keyframes
    • add_video_keyframe
      POST
  • effect
    • get_video_scene_effect_types
      GET
    • get_video_character_effect_types
      GET
    • add_effect
      POST
  • create_draft
    POST
  • save_draft
    POST
  • get_duration
    POST
  1. keyframes

add_video_keyframe

POST
/add_video_keyframe
Add keyframes to the specified track and support batch operations.

Request

Header Params

Body Params application/json

Example
{
    "draft_id": "dfd_cat_1753709045_3a033ea7",  // Draft ID (Required, specifies the draft to operate on)
    "track_name": "video_main",  // Track name (Optional, default "video_main", specifies the track to which keyframes will be added)
    
    // Single keyframe parameters (for backward compatibility, used to add a single keyframe)
    "property_type": "alpha",  // Property type (Optional, default "alpha" for opacity, optional values include "scale_x", "rotation", etc.)
    "time": 0.0,  // Keyframe time (seconds, Optional, default 0.0 seconds)
    "value": "1.0",  // Property value (Optional, default "1.0", type should be adjusted according to property_type, such as numbers, strings, etc.)
    
    // Batch keyframe parameters (new, preferred, used to add multiple keyframes at once)
    "property_types": ["alpha", "scale_x"],  // List of property types (Optional, array format, corresponding to times and values)
    "times": [0.0, 2.0],  // List of times (Optional, array format, corresponding to property_types and values)
    "values": ["1.0", "0.8"]  // List of values (Optional, array format, corresponding to property_types and times)
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.capcutapi.top/cut_capcut/add_video_keyframe' \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "draft_id": "dfd_cat_1753709045_3a033ea7",  // Draft ID (Required, specifies the draft to operate on)
    "track_name": "video_main",  // Track name (Optional, default "video_main", specifies the track to which keyframes will be added)
    
    // Single keyframe parameters (for backward compatibility, used to add a single keyframe)
    "property_type": "alpha",  // Property type (Optional, default "alpha" for opacity, optional values include "scale_x", "rotation", etc.)
    "time": 0.0,  // Keyframe time (seconds, Optional, default 0.0 seconds)
    "value": "1.0",  // Property value (Optional, default "1.0", type should be adjusted according to property_type, such as numbers, strings, etc.)
    
    // Batch keyframe parameters (new, preferred, used to add multiple keyframes at once)
    "property_types": ["alpha", "scale_x"],  // List of property types (Optional, array format, corresponding to times and values)
    "times": [0.0, 2.0],  // List of times (Optional, array format, corresponding to property_types and values)
    "values": ["1.0", "0.8"]  // List of values (Optional, array format, corresponding to property_types and times)
}'

Responses

🟢200OK
application/json
Body

Example
{
    "error": "",
    "output": {
        "added_keyframes_count": 2,
        "draft_id": "dfd_cat_1753845370_c15177cb",
        "draft_url": "https://www.capcutapi.top/draft/downloader?draft_id=dfd_cat_1753845370_c15177cb"
    },
    "purchase_link": "https://www.coze.cn/store/project/7498257920212647946?entity_id=1&bid=6g6miqtbk3009",
    "success": true
}
Modified at 2025-08-11 14:13:48
Previous
add_audio
Next
get_video_scene_effect_types
Built with