AsyncModels

public final class AsyncModels

Async module of Models

Constructors

Link copied to clipboard
public void AsyncModels(ApiClient apiClient)

Functions

Link copied to clipboard
Asynchronously computes tokens given a GenAI model and a text string.
Asynchronously computes tokens given a GenAI model and a list of content.
Link copied to clipboard
Asynchronously counts tokens given a GenAI model and a text string.
Asynchronously counts tokens given a GenAI model and a list of content.
Link copied to clipboard
Asynchronously fetches information about a model by name.
Link copied to clipboard
public CompletableFuture<EditImageResponse> editImage(String model, String prompt, List<ReferenceImage> referenceImages, EditImageConfig config)
Asynchronously edits an image given a GenAI model, a prompt, and a list of reference images.
Link copied to clipboard
Asynchronously embeds content given a GenAI model and a content object.
Asynchronously embeds content given a GenAI model and a text string.
Asynchronously embeds content given a GenAI model and a list of text strings.
Link copied to clipboard
Asynchronously generates content given a GenAI model and a content object.
Asynchronously generates content given a GenAI model and a text string.
Asynchronously generates content given a GenAI model and a list of content.
Link copied to clipboard
Asynchronously generates content with streaming support given a GenAI model and a content object.
Asynchronously generates content with streaming support given a GenAI model and a text string.
Asynchronously generates content with streaming support given a GenAI model and a list of content.
Link copied to clipboard
Asynchronously generates images given a GenAI model and a prompt.
Link copied to clipboard
Asynchronously generates videos given a GenAI model, and a GenerateVideosSource source.
Asynchronously generates videos given a GenAI model, and an input (text, image).
Asynchronously generates videos given a GenAI model, and an input (text, image, or video).
Link copied to clipboard
public CompletableFuture<Model> get(String model, GetModelConfig config)
Asynchronously fetches information about a model by name.
Link copied to clipboard
Asynchronously makes an API request to list the available models.
Link copied to clipboard
Asynchronously recontextualizes an image.
Link copied to clipboard
Asynchronously segments an image, creating a mask of a specified area.
Link copied to clipboard
Asynchronously updates a tuned model by its name.
Link copied to clipboard
public CompletableFuture<UpscaleImageResponse> upscaleImage(String model, Image image, String upscaleFactor, UpscaleImageConfig config)
Asynchronously upscales an image given a GenAI model and an image and an upscale factor.