public final class ImageSynthesis extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ImageSynthesis.ImageEditFunction
Image edit function
|
static class |
ImageSynthesis.Models |
| 构造器和说明 |
|---|
ImageSynthesis()
Default test2image
|
ImageSynthesis(String task)
The task of the image synthesis image2image or test2image.
|
ImageSynthesis(String task,
String baseUrl)
Create with task and custom baseUrl
|
public ImageSynthesis()
public ImageSynthesis(String task)
task - The task of image synthesis(image2image|text2image).public ImageSynthesisResult asyncCall(ImageSynthesisParam param) throws ApiException, NoApiKeyException
public ImageSynthesisResult syncCall(ImageSynthesisParam param) throws ApiException, NoApiKeyException
public ImageSynthesisResult call(ImageSynthesisParam param) throws ApiException, NoApiKeyException
param - The input param of class `ImageSynthesisParam`.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public ImageSynthesisResult asyncCall(SketchImageSynthesisParam param) throws ApiException, NoApiKeyException
param - The input param of class `SketchImageSynthesisParam`ApiException - The dashscope exception.NoApiKeyException - No api key provide.public ImageSynthesisResult call(SketchImageSynthesisParam param) throws ApiException, NoApiKeyException
param - The input param of class `SketchImageSynthesisParam`.NoApiKeyException - Can not find api key.ApiException - The request failed, possibly due to a network or data error.public ImageSynthesisListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException
public ImageSynthesisListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException
public ImageSynthesisResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageSynthesisResult fetch(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
public ImageSynthesisResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageSynthesisResult cancel(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
public ImageSynthesisResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageSynthesisResult wait(ImageSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
Copyright © 2025. All rights reserved.