Class ImageSynthesis
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.imagesynthesis.ImageSynthesis
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Image edit functionstatic classDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default test2imageImageSynthesis(String task) Deprecated.The task of the image synthesis image2image or test2image.ImageSynthesis(String task, String baseUrl) Deprecated.Create with task and custom baseUrl -
Method Summary
Modifier and TypeMethodDescriptionasyncCall(ImageSynthesisParam param) Deprecated.Deprecated.call(ImageSynthesisParam param) Deprecated.Call the server to get the result.call(SketchImageSynthesisParam param) Deprecated.Call the server to get the result.cancel(ImageSynthesisResult taskInfo, String apiKey) Deprecated.Deprecated.fetch(ImageSynthesisResult taskInfo, String apiKey) Deprecated.Deprecated.list(AsyncTaskListParam param) Deprecated.list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) Deprecated.syncCall(ImageSynthesisParam param) Deprecated.Synchronously generate images on the legacy image-synthesis endpoint.wait(ImageSynthesisResult taskInfo, String apiKey) Deprecated.Deprecated.
-
Constructor Details
-
ImageSynthesis
public ImageSynthesis()Deprecated.Default test2image -
ImageSynthesis
Deprecated.The task of the image synthesis image2image or test2image.- Parameters:
task- The task of image synthesis(image2image|text2image).
-
ImageSynthesis
Deprecated.Create with task and custom baseUrl- Parameters:
task- The task of image synthesis(image2image|text2image).baseUrl- The service base url.
-
-
Method Details
-
asyncCall
public ImageSynthesisResult asyncCall(ImageSynthesisParam param) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
syncCall
public ImageSynthesisResult syncCall(ImageSynthesisParam param) throws ApiException, NoApiKeyException Deprecated.Synchronously generate images on the legacy image-synthesis endpoint. Model availability is governed by the server; multimodal-generation-only models are not served here — useImageGenerationfor those.- Throws:
ApiExceptionNoApiKeyException
-
call
Deprecated.Call the server to get the result.- Parameters:
param- The input param of class `ImageSynthesisParam`.- Returns:
- The image synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
asyncCall
public ImageSynthesisResult asyncCall(SketchImageSynthesisParam param) throws ApiException, NoApiKeyException Deprecated.- Parameters:
param- The input param of class `SketchImageSynthesisParam`- Returns:
- The image synthesis result `ImageSynthesisResult`
- Throws:
ApiException- The dashscope exception.NoApiKeyException- No api key provide.
-
call
public ImageSynthesisResult call(SketchImageSynthesisParam param) throws ApiException, NoApiKeyException Deprecated.Call the server to get the result.- Parameters:
param- The input param of class `SketchImageSynthesisParam`.- Returns:
- The image synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
list
public ImageSynthesisListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
list
public ImageSynthesisListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public ImageSynthesisResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public ImageSynthesisResult fetch(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public ImageSynthesisResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public ImageSynthesisResult cancel(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public ImageSynthesisResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public ImageSynthesisResult wait(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-