Class GoogleGenAiBatchImageModel
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiBatchImageModel
- All Implemented Interfaces:
dev.langchain4j.model.image.BatchImageModel
@Experimental
public final class GoogleGenAiBatchImageModel
extends Object
implements dev.langchain4j.model.image.BatchImageModel
Provides an interface for interacting with the Google GenAI Batch API for Image generation models.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidvoiddeleteBatchJob(String batchId) Deletes a batch job from the system.dev.langchain4j.model.batch.BatchPage<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> list(dev.langchain4j.model.batch.BatchPagination pagination) dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> Creates a batch of image generation requests from an uploaded file.dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> Creates and enqueues a batch of image generation requests for asynchronous processing.
-
Method Details
-
builder
-
submit
public dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> submit(dev.langchain4j.model.batch.BatchRequest<String> request) - Specified by:
submitin interfacedev.langchain4j.model.image.BatchImageModel
-
retrieve
public dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> retrieve(String batchId) - Specified by:
retrievein interfacedev.langchain4j.model.image.BatchImageModel
-
cancel
- Specified by:
cancelin interfacedev.langchain4j.model.image.BatchImageModel
-
list
public dev.langchain4j.model.batch.BatchPage<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> list(dev.langchain4j.model.batch.BatchPagination pagination) - Specified by:
listin interfacedev.langchain4j.model.image.BatchImageModel
-
submit
public dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> submit(String displayName, List<String> prompts) Creates and enqueues a batch of image generation requests for asynchronous processing.- Parameters:
displayName- a user-defined name for the batchprompts- a list of image generation prompt strings to be processed in the batch- Returns:
- a
BatchResponserepresenting the initial state of the batch operation
-
submit
public dev.langchain4j.model.batch.BatchResponse<dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image>> submit(String displayName, com.google.genai.types.File file) Creates a batch of image generation requests from an uploaded file.- Parameters:
displayName- a user-defined name for the batchfile- the Google GenAI File object representing the uploaded file containing batch requests- Returns:
- a
BatchResponserepresenting the initial state of the batch operation
-
deleteBatchJob
Deletes a batch job from the system.
-