跳到主要内容

OpenAPI 源码(右侧)

这是剪映小助手插件的 OpenAPI 规范代码,需要粘贴到 Coze 插件创建页面的右侧区域。

使用说明

复制下面的完整代码,粘贴到插件创建页面右侧的代码编辑器中。此配置由 火灵 精心设计,包含所有API接口定义。

📋 完整 OpenAPI 配置

components:
examples:
Add_Audios:
value:
ReqExample:
ids: https://www.cozeos.com/jy_down?ids=751b7aef-69a5-6960-8074-67b70f8670d3/20274310-dae3-40da-81cd-00f2933dadeb
mp3_urls:
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/080a1cc9d1af4ceb90357e8f8d3e5ee6.mp3
timelines:
- end: 5000000
start: 0
RespExample:
code: 200
message: 音频添加成功
Add_Captions:
value:
ReqExample:
ids: https://www.cozeos.com/jy_down?ids=e997ffa7-fa26-9cce-01a6-ed819740fc5d/7f939e76-8504-4a31-8f5d-69bf4567a16a
texts:
- 文本
timelines:
- end: 5000000
start: 0
RespExample:
code: 200
message: 操作成功
Add_Effects:
value:
ReqExample:
effects:
- 黑色噪点
ids: https://www.cozeos.com/jy_down?ids=e997ffa7-fa26-9cce-01a6-ed819740fc5d/7f939e76-8504-4a31-8f5d-69bf4567a16a
timelines:
- end: 5000000
start: 0
RespExample:
code: 200
message: 操作成功
Add_Images:
value:
ReqExample:
ids: https://www.cozeos.com/jy_down?ids=e997ffa7-fa26-9cce-01a6-ed819740fc5d/7f939e76-8504-4a31-8f5d-69bf4567a16a
images:
- https://www.cozeos.com/test.jpg
timelines:
- end: 5000000
start: 0
RespExample:
code: 200
message: 操作成功
Add_Videos:
value:
ReqExample:
ids: https://www.cozeos.com/jy_down?ids=e997ffa7-fa26-9cce-01a6-ed819740fc5d/7f939e76-8504-4a31-8f5d-69bf4567a16a
timelines:
- end: 5000000
start: 0
video_urls:
- https://www.cozeos.com/video.mp4
RespExample:
code: 200
message: 操作成功
Audios_Timelines:
value:
ReqExample:
links:
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/080a1cc9d1af4ceb90357e8f8d3e5ee6.mp3
RespExample:
all_timelines:
- end: 5232000
start: 0
timelines:
- end: 5232000
start: 0
Create_Draft:
value:
ReqExample:
height: 1920
width: 1080
RespExample:
code: 200
ids: https://www.cozeos.com/jy_down?ids=87baa86b-065d-a701-773a-d471dc4e0bd3/ad04a518-ee67-4e86-82db-dcdbdd15fc53
message: 草稿创建成功
Str_Array:
value:
ReqExample:
string: 文本
RespExample:
array:
- 文本
add_audios:
value:
ReqExample:
ids: ae665fac-f456-fcf9-e81f-d753789b427f/5545c650-bf7a-4107-9b77-6c3d3dd2a8da
mp3_urls:
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/fbbd51acfc4d4c1c975458d667b85546.mp3
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/cbac5cf2a0324e319262191010891905.mp3
timelines:
- end: "2280000"
start: "0"
- end: "3384000"
start: "2280000"
RespExample: {}
add_captions:
value:
ReqExample:
ids: 4c7b1629-d2ca-30d9-bddc-62cc0d7b6819/84dff872-d811-48e4-9f1f-e42b0122bc16
texts:
- 啊啊啊
timelines:
- end: 1000000
start: 0
RespExample: {}
add_effects:
value:
ReqExample:
effects:
- 细闪
ids: 4c7b1629-d2ca-30d9-bddc-62cc0d7b6819/84dff872-d811-48e4-9f1f-e42b0122bc16
timelines:
- end: 1000000
start: 0
RespExample: {}
add_images:
value:
ReqExample:
ids: 5136756a-c069-bf81-ee65-e01e1340fca6/0e9ecb60-53d7-4466-94fc-41bc8047975a
images:
- https://s.coze.cn/t/DXtNEEizVdg/
timelines:
- end: 1000000
start: 0
RespExample: {}
audios_timelines:
value:
ReqExample:
links:
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/fbbd51acfc4d4c1c975458d667b85546.mp3
- https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/fbbd51acfc4d4c1c975458d667b85546.mp3
RespExample:
timelines:
- end: 2280000
start: 0
- end: 4560000
start: 2280000
create_draft:
value:
ReqExample:
height: 1080
width: 1920
RespExample:
ids: 077819a7-263b-6796-6109-eb4ded704c65/200f812d-815a-4766-a996-a0d1f6fc79a3
info:
description: |-
剪映小助手[开源文档地址:https://jy.0x0.chat](https://jy.0x0.chat)

- 首款完全免费的剪映小助手,为AIGC做出贡献。
- 不同于其他剪映小助手多节点构建,简单便捷
- 剪映小助手完全零代码操作,无需代码基础
- 虽为免费公益项目,剪映小助手仍会向前进步
title: 剪映小助手
version: v1
openapi: 3.0.1
paths:
/add_audios.php:
post:
operationId: Add_Audios
requestBody:
content:
application/json:
schema:
properties:
audio_effect:
description: 特效音
type: string
ids:
description: 草稿ids
type: string
mp3_urls:
description: 音频链接
items:
description: 音频链接
type: string
type: array
timelines:
description: 时间线
items:
description: 时间线
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
required:
- start
- end
type: object
type: array
volume:
description: 音量
type: number
required:
- ids
- mp3_urls
- timelines
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 添加音频。- 开发文档:https://jy.0x0.chat
/add_captions.php:
post:
operationId: Add_Captions
requestBody:
content:
application/json:
schema:
properties:
alignment:
description: 对齐方式:左对齐0 居中1 右对齐2
type: number
border:
description: 描边粗细
type: string
border_color:
description: 描边颜色
type: string
font:
description: 字体
type: string
font_size:
description: 字体大小
type: integer
ids:
description: 草稿ids
type: string
in_animation:
description: 入场动画
type: string
in_animation_duration:
description: 入场时长
type: integer
letter_spacing:
description: 字间距
type: number
line_spacing:
description: 行间距
type: number
out_animation:
description: 出场动画
type: string
out_animation_duration:
description: 出场时长
type: integer
text_color:
description: 字体颜色
type: string
texts:
description: 文本数组
items:
description: 文本内容
type: string
type: array
timelines:
description: 时间线
items:
description: 时间线数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
required:
- start
- end
type: object
type: array
transform_x:
description: x位置
type: number
transform_y:
description: y位置
type: number
required:
- ids
- texts
- timelines
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 添加字幕。- 开发文档:https://jy.0x0.chat
/add_effects.php:
post:
operationId: Add_Effects
requestBody:
content:
application/json:
schema:
properties:
effects:
description: 特效名称
items:
description: 特效名称
type: string
type: array
ids:
description: 草稿ids
type: string
timelines:
description: 时间线
items:
description: 时间线数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
required:
- start
- end
type: object
type: array
required:
- ids
- timelines
- effects
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 添加特效。- 开发文档:https://jy.0x0.chat
/add_images.php:
post:
operationId: Add_Images
requestBody:
content:
application/json:
schema:
properties:
height:
description: 高度
type: number
ids:
description: 草稿ids
type: string
images:
description: 图片
items:
description: 图片地址
type: string
type: array
in_animation:
description: 入场动画
type: string
in_animation_duration:
description: 入场时长
type: integer
loop_animation:
description: 组合动画
type: string
loop_animation_duration:
description: 组合时长
type: integer
out_animation:
description: 出场动画
type: string
out_animation_duration:
description: 出场时长
type: integer
scale_x:
description: 图片X缩放
type: number
scale_y:
description: 图片Y缩放
type: number
timelines:
description: 时间线
items:
description: 时间线数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
required:
- start
- end
type: object
type: array
transform_x:
description: 图片X位置
type: integer
transform_y:
description: 图片Y位置
type: integer
width:
description: 宽度
type: number
required:
- ids
- timelines
- images
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 添加图片。- 开发文档:https://jy.0x0.chat
/add_video.php:
post:
operationId: Add_Videos
requestBody:
content:
application/json:
schema:
properties:
ids:
description: 草稿ids
type: string
scale_x:
description: 缩放x
type: string
scale_y:
description: 缩放y
type: string
timelines:
description: 时间线
items:
description: 时间线数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
required:
- start
- end
type: object
type: array
transform_x:
description: x位置
type: string
transform_y:
description: y位置
type: string
video_urls:
description: 视频数组
items:
description: 视频链接
type: string
type: array
volume:
description: 音量静音0,开启1(默认1)
type: number
required:
- ids
- timelines
- video_urls
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 添加视频。- 开发文档:https://jy.0x0.chat
/audio_timeline.php:
post:
operationId: Audios_Timelines
requestBody:
content:
application/json:
schema:
properties:
links:
description: 音频链接数组
items:
description: 音频链接
type: string
type: array
required:
- links
type: object
description: new desc
responses:
"200":
content:
application/json:
schema:
properties:
all_timelines:
description: 整体时间
items:
description: 数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
type: object
type: array
timelines:
description: 时间线
items:
description: 时间线数组
properties:
end:
description: 结束时间
type: integer
start:
description: 起始时间
type: integer
type: object
type: array
type: object
description: new desc
default:
description: ""
summary: 音频取时间线。- 开发文档:https://jy.0x0.chat
/create_draft.php:
post:
operationId: Create_Draft
requestBody:
content:
application/json:
schema:
properties:
height:
description: 高度
type: number
width:
description: 宽度
type: number
required:
- width
- height
type: object
responses:
"200":
content:
application/json:
schema:
properties:
code:
type: number
ids:
type: string
message:
type: string
type: object
description: new desc
default:
description: ""
summary: 创建草稿画布。- 开发文档:https://jy.0x0.chat
/str_array.php:
post:
operationId: Str_Array
requestBody:
content:
application/json:
schema:
properties:
string:
description: 文本
type: string
required:
- string
type: object
responses:
"200":
content:
application/json:
schema:
properties:
array:
description: 数组
items:
description: 内容
type: string
type: array
type: object
description: new desc
default:
description: ""
summary: 文本转数组。- 开发文档:https://jy.0x0.chat
servers:
- url: https://jy-api.0x0.chat/v1

🎯 下一步

配置完成后:

  1. 保存配置:确保左右两侧都已配置
  2. 开始测试:按照 插件配置教程 测试接口
  3. 发布插件:测试通过后发布到商店

🆘 遇到问题?

如果遇到配置问题:

配置完成后,您就可以开始测试插件功能了!🎉