Discussions

Ask a Question
Back to All

How to create a video file based on Talkphoto through API v2?

When I use the API to create a video based on talkPhoto, the following error is displayed.
{"data":null,"error":{"code":"invalid_parameter","message":"0.type.video_inputs.character is invalid: unexpected value; permitted: 'avatar'"}}
the api version is v2
request body:
2023-10-31 08:17:28.786 INFO 42309 --- [ main] okhttp3.OkHttpClient : {"test":true,"caption":false,"title":"接口测试","dimension":{"width":1024,"height":768},"aspect_ratio":null,"callback_id":null,"video_inputs":[{"character":{"type":"talking_photo","scale":1.0,"offset":{"x":0.0,"y":0.0},"matting":false,"expression":null,"avatar_id":null,"avatarStyle":"normal","talking_photo_id":"969f0b3269a9432da3c6e348e595a212","talking_photo_style":null,"talking_style":null,"super_resolution":false},"voice":{"type":"text","voice_id":"00c8fd447ad7480ab1785825978a2215","input_text":"我这是在测试使用接口测试,测试一个测试视频","audio_url":null,"audio_asset_id":null},"background":{"type":"color","value":"#3fd920","url":null,"image_asset_id":null,"video_asset_id":null,"play_style":null}}]}