JianYingAPI
    JianYingAPI
    • 一分钟,了解 剪映API!
    • 如何下载草稿
    • 在线预览草稿
    • 获取API Key
    • 文本
      • 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
    • 图片
      • get_intro_animation_types
        GET
      • get_outro_animation_types
        GET
      • get_combo_animation_types
        GET
      • add_image
        POST
    • 视频
      • add_video
        POST
    • 转场
      • get_transition_types
        GET
    • 蒙版
      • get_mask_types
        GET
    • 音频
      • get_audio_effect_types
        GET
      • add_audio
        POST
    • 关键帧
      • add_video_keyframe
        POST
    • 特效
      • get_video_character_effect_types
        GET
      • get_video_scene_effect_types
        GET
      • add_effect
        POST
    • 贴纸
      • search_sticker
      • add_sticker
    • 云渲染
      • generate_video
      • task_status
    • create_draft
      POST
    • save_draft
      POST
    • get_duration
      POST

      get_duration

      POST
      /get_duration
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://open.capcutapi.top/cut_jianying/get_duration' \
      --header 'Authorization: Bearer your-api-key' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "url":"https://lf3-lv-music-tos.faceu.com/obj/tos-cn-ve-2774/oYACBQRCMlWBIrZipvQZhI5LAlUFYii0RwEPh"
      }'
      响应示例响应示例
      {
          "error": "string",
          "output": {
              "duration": 0,
              "video_url": "string"
          },
          "purchase_link": "string",
          "success": true
      }

      请求参数

      Header 参数

      Body 参数application/json

      示例

      返回响应

      🟢200成功
      application/json
      Body

      修改于 2025-08-08 01:14:31
      上一页
      save_draft
      Built with