public final class VideoSynthesis extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VideoSynthesis.Duration
Video synthesis duration
|
static class |
VideoSynthesis.Models |
static class |
VideoSynthesis.Resolution |
static class |
VideoSynthesis.Size
Video synthesis size
|
| 构造器和说明 |
|---|
VideoSynthesis()
default VideoSynthesis constructor
|
VideoSynthesis(String baseUrl)
Create with custom baseUrl
|
VideoSynthesis(String baseUrl,
String task)
Create with custom baseUrl
|
| 限定符和类型 | 方法和说明 |
|---|---|
VideoSynthesisResult |
asyncCall(VideoSynthesisParam param)
Async call
|
VideoSynthesisResult |
call(VideoSynthesisParam param)
Call the server to get the result.
|
VideoSynthesisResult |
cancel(String taskId,
String apiKey)
Cancel the task.
|
VideoSynthesisResult |
cancel(VideoSynthesisResult taskInfo,
String apiKey)
Cancel the task.
|
VideoSynthesisResult |
fetch(String taskId,
String apiKey)
Fetch the result.
|
VideoSynthesisResult |
fetch(VideoSynthesisResult taskInfo,
String apiKey)
Fetch the result.
|
VideoSynthesisListResult |
list(AsyncTaskListParam param)
List the tasks.
|
VideoSynthesisListResult |
list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize) |
VideoSynthesisResult |
wait(String taskId,
String apiKey)
Wait for the task to complete.
|
VideoSynthesisResult |
wait(VideoSynthesisResult taskInfo,
String apiKey)
Wait for the task to complete.
|
public VideoSynthesis()
public VideoSynthesis(String baseUrl)
baseUrl - The service base url.public VideoSynthesisResult asyncCall(VideoSynthesisParam param) throws ApiException, NoApiKeyException, InputRequiredException
param - The input param of class VideoSynthesisParamNoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.InputRequiredException - Check the input param.public VideoSynthesisResult call(VideoSynthesisParam param) throws ApiException, NoApiKeyException, InputRequiredException
param - The input param of class `VideoSynthesisParam`.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.InputRequiredException - Check the input param.public VideoSynthesisListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException
param - The input param of class `AsyncTaskListParam`.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException
startTime - startTimeendTime - endTimemodelName - modelNameapiKeyId - apiKeyIdregion - regionstatus - statuspageNo - pageNopageSize - pageSizeNoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException
taskId - The task id.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult fetch(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
taskInfo - The task info.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException
taskId - The task id.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult cancel(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
taskInfo - The task info.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException
taskId - The task id.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public VideoSynthesisResult wait(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
taskInfo - The task info.apiKey - The api key.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.Copyright © 2025. All rights reserved.