public class ImageServiceImpl extends Object implements ImageService
| Constructor and Description |
|---|
ImageServiceImpl(AbstractAiClient zAiClient) |
| Modifier and Type | Method and Description |
|---|---|
ImageResponse |
createImage(CreateImageRequest createImageRequest)
Creates an image based on the provided generation request.
|
AsyncImageResponse |
createImageAsync(CreateImageRequest createImageRequest)
Asynchronously creates an image based on the provided generation request.
|
AsyncImageResponse |
queryAsyncResult(String taskId)
Queries the status and result of an async image generation task.
|
public ImageServiceImpl(AbstractAiClient zAiClient)
public ImageResponse createImage(CreateImageRequest createImageRequest)
ImageServicecreateImage in interface ImageServicecreateImageRequest - the image generation requestpublic AsyncImageResponse createImageAsync(CreateImageRequest createImageRequest)
ImageServicecreateImageAsync in interface ImageServicecreateImageRequest - the image generation requestpublic AsyncImageResponse queryAsyncResult(String taskId)
ImageServicequeryAsyncResult in interface ImageServicetaskId - the async task ID returned by createImageAsyncCopyright © 2026. All rights reserved.