外观
生成文生视频
POST
https://www.aipro2.com/openapi/v2/video/text/generate通过prompt 进行文生视频的生成
请求体参数
application/jsonaspect_ratio*string1. 基础提供 "16:9","9.16","4:3","3:4","1:1" 画幅比
2. v6,c1 支持 "16:9","9.16","4:3","3:4","1:1","2:3","3:2","21:9"camera_movementstring可以在文/图生视频添加运镜(支持v4,v4.5版本)
支持参数: "horizontal_left","horizontal_right","vertical_up","vertical_down",
"zoom_in","zoom_out","crane_up",
"quickly_zoom_in","quickly_zoom_out","smooth_zoom_in",
"camera_rotation","robo_arm","super_dolly_out","whip_pan","hitchcock",
"left_follow","right_follow","pan_left","pan_right","fix_bg"duration*integer视频生成时长
视频生成时长
v.3.5/v4/v4.5 : 5/8 (v3.5 1080p 无法使用 8)
v5 : 5/8
v5.5/5.6 : 5/8/10 (1080p 无法使用 10)
v6/c1 : 1~15 任意时长generate_audio_switchboolean支持 v5.5,v5.6,v6,c1
/ 控制开关Audio. true: Audio on , false: Audio offgenerate_multi_clip_switchboolean支持:v5.5,v6
控制单镜头, 多镜头 true: 多镜头 , false: 单镜头/lip_sync_tts_contentstring~140Chracters (UTF-8). 可输入想要的tts 内容lip_sync_tts_speaker_idstring获取TTS 音色后的idlip_sync_tts_switchbooleantrue, false
如果想一起使用对口型 请传为truemodel*string模型 "v3.5","v4","v4.5", "v5","v5.5","v5.6","v6","c1"motion_modestring"normal","fast". "fast" 不支持 8s, "v5" 以上版本不支持此字段prompt*string5000 Characters 以内quality*string"360p","540p","720p","1080p"seedinteger可传随机数 0 - 2147483647sound_effect_contentstringv5 以下 or 有template_id时可使用.可输入想要的音效, 如果不填写会根据视频内容生成音效sound_effect_switchbooleanv5 以下 or 有template_id时可使用. true, false
如果想一起使用sound_effect 请传为truetemplate_idinteger模版(特效)ID , 使用之前需要激活
响应
成功
application/json无响应结构说明
