public final class ImageGeneration extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ImageGeneration.Models |
| 构造器和说明 |
|---|
ImageGeneration() |
ImageGeneration(String protocol) |
ImageGeneration(String protocol,
String baseUrl) |
ImageGeneration(String protocol,
String baseUrl,
ConnectionOptions connectionOptions) |
public ImageGeneration()
public ImageGeneration(String protocol)
public ImageGeneration(String protocol, String baseUrl, ConnectionOptions connectionOptions)
public ImageGenerationResult call(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException
param - The input param of class `ImageGenerationParam`.NoApiKeyException - Can not find api keyUploadFileException - Fail upload failed.ApiExceptionpublic void call(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) throws ApiException, NoApiKeyException, UploadFileException
param - The input param of class `ImageGenerationParam`.callback - The callback to receive response, the template class is
`ImageGenerationResult`.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.UploadFileException - File upload failed.public ImageGenerationResult asyncCall(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException
param - The input param of class `ImageGenerationParam`.NoApiKeyException - Can not find api keyUploadFileException - Fail upload failed.ApiExceptionpublic ImageGenerationListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException
public ImageGenerationListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException
public ImageGenerationResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageGenerationResult fetch(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
public ImageGenerationResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageGenerationResult cancel(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
public ImageGenerationResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException
public ImageGenerationResult wait(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException
public io.reactivex.Flowable<ImageGenerationResult> streamCall(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException
param - The input param of class `ImageGenerationParam`.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.UploadFileException - File upload failed.public void streamCall(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException, UploadFileException
param - The input param of class `ImageGenerationParam`.callback - The result callback.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.InputRequiredException - The input field is missing.UploadFileException - File upload failed.Copyright © 2026. All rights reserved.