JianYingAPI
  1. 图片
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
  1. 图片

add_image

POST
/add_image
向草稿中添加图片
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.capcutapi.top/cut_jianying/add_image' \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
  "image_url": "https://cdn.wanx.aliyuncs.com/wanx/1719234057367822001/text_to_image_v2/d6e33c84d7554146a25b1093b012838b_0.png?x-oss-process=image/resize,w_500/watermark,image_aW1nL3dhdGVyMjAyNDExMjkwLnBuZz94LW9zcy1wcm9jZXNzPWltYWdlL3Jlc2l6ZSxtX2ZpeGVkLHdfMTQ1LGhfMjU=,t_80,g_se,x_10,y_10/format,webp",
  "start": 0,
  "end": 5.0,
  "width": 1920,
  "height": 1080,
  "draft_id": "",
  "transform_x": 0.2,
  "transform_y": 0.2,
  "scale_x": 1,
  "scale_y": 1,
  "track_name": "video_main",
  "relative_index": 99,
  "intro_animation": "放大",
  "intro_animation_duration": 0.5,
  "outro_animation": "闪现",
  "outro_animation_duration": 0.5,
  "transition": "上移",
  "transition_duration": 0.5,
  "mask_type": "矩形",
  "mask_center_x": 0.5,
  "mask_center_y": 0.5,
  "mask_size": 0.7,
  "mask_rotation": 45.0,
  "mask_feather": 2,
  "mask_invert": true,
  "mask_rect_width": 8,
  "mask_round_corner": 10
}'
响应示例响应示例
{
    "error": "string",
    "output": {
        "draft_id": "string",
        "draft_url": "string"
    },
    "purchase_link": "string",
    "success": true
}

请求参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Body

修改于 2025-08-08 01:12:09
上一页
get_combo_animation_types
下一页
add_video
Built with