|
|
|
@ -25,7 +25,7 @@ public class JmImage2Video extends JmCommon {
|
|
|
|
|
* 提交图生视频任务(使用图片URL)
|
|
|
|
|
*
|
|
|
|
|
* @param imageUrls 图片URL数组
|
|
|
|
|
* @param prompt 提示词
|
|
|
|
|
* @param prompt 提示词
|
|
|
|
|
* @return 任务结果
|
|
|
|
|
* @throws Exception 异常信息
|
|
|
|
|
*/
|
|
|
|
@ -47,7 +47,7 @@ public class JmImage2Video extends JmCommon {
|
|
|
|
|
/**
|
|
|
|
|
* 从URL下载文件到指定路径
|
|
|
|
|
*
|
|
|
|
|
* @param fileUrl 文件URL
|
|
|
|
|
* @param fileUrl 文件URL
|
|
|
|
|
* @param saveFilePath 保存路径
|
|
|
|
|
* @throws Exception 下载过程中的异常
|
|
|
|
|
*/
|
|
|
|
@ -88,6 +88,8 @@ public class JmImage2Video extends JmCommon {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
|
//玩法:
|
|
|
|
|
//https://www.volcengine.com/docs/85621/1544774
|
|
|
|
|
List<String> imageUrls = new ArrayList<>();
|
|
|
|
|
imageUrls.add("https://dsideal.obs.myhuaweicloud.com/HuangHai/%E5%A4%87%E4%BB%BD/%E5%B0%8F%E4%B9%94%E5%A4%B4%E5%83%8F.jpg");
|
|
|
|
|
String prompt = "";
|
|
|
|
|