外观
生成图生视频
POST
https://www.aipro2.com/openapi/v2/video/img/generate通过图片进行图生视频的生成. 生成前必须传图片, 用img_id来进行请求.
请求体参数
application/jsoncamera_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: 单镜头img_id*integer上传图片后获取的img_idimg_ids*array<integer>多图模版时使用此字段. ex) "img_ids ":[0,0]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*string2048 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 请传为truestylestring风格,可选:"anime"、"3d_animation"、"day"、"cyberpunk"、"comic",如非必要可不传template_idinteger模版IDthinking_typestring支持v5.5,v5.6,v6/ 是否使用系统优化提示词功能 "enabled" : 打开 "disabled" : 关闭. "auto" or omitted: 让模型自动决定
响应
成功
application/json无响应结构说明
