CapCutAPI
    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

    Preview Draft Online

    An excellent idea for building your videos step by step through APIs, or even using AI to assist in designing your workflow, is a great idea. But how can you keep track of the status of each API execution?
    We've designed an online draft preview feature for all our interfaces to help you monitor the video generation process.
    Let's walk through a example.

    Splicing Two Videos#

    You can add two consecutive videos to a draft by calling add_video. Here's how to preview the process of adding them.
    1
    Step 1: Add the first video
    Call add_video to add a video.
    {
        "video_url": "https://us-stock5.xpccdn.com/75b9381a-e86c-40fb-915d-136338b0ab3c.mp4"
    }
    From the request result, you can get the preview url from the draft_url field.
    image.png
    Open this link in your browser, and you will see the preview page.
    image.png
    Below, you'll see the track information. Above, you'll find detailed information about the materials and download options. Once you've checked everything on this page, you can enter the CapCut draft directory and download this draft. You can also continue editing based on this draft.
    2
    Step 2: Add the second video
    Using the draft_id generated in the previous step and the video duration obtained with get_duration (which is 21.033333 in this example), we'll add another video to this draft using add_video.
    {
        "video_url": "https://us-stock5.xpccdn.com/75b9381a-e86c-40fb-915d-136338b0ab3c.mp4",
        "draft_id": "draft_id from the previous step",
        "target_start": 21.033333
    }
    image.png
    At this point, you should see that the returned draft_id and draft_url have not changed.
    Drafts are only kept in the backend for 10 minutes. If you don't perform any operations for an extended period, the draft will be released. So, if you find that the draft_id in your request is different from the draft_id returned, it means the draft has been released.
    Go back to the previous webpage and refresh it. You'll now see the new preview result.
    image.png

    Step 2: Add the second video#


    The preview capability is a very important and practical feature. Using it flexibly can greatly simplify the difficulty of your development workflow.
    Modified at 2025-08-06 13:55:45
    Previous
    How to get CapCut draft folder?
    Next
    Get Your API Key
    Built with