Description

Google's Gemini API allows developers to build generative AI applications using Gemini models.

Gemini is built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information. including language, images, audio, video, and code.

Use cases for the Gemini API include reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.

Supported Operations

Generative Language API

Lists models available through the API.

Generates multiple embeddings from the model given input text in a synchronous call.

Runs a model's tokenizer on input content and returns the token count.

Generates an embedding from the model given an input `Content`.

Generates a response from the model given an input `GenerateContentRequest`. Input capabilities differ between models, including tuned models. See the [model guide](https://ai.google.dev/models/gemini) and [tuning guide](https://ai.google.dev/docs/model_tuning_guidance) for details.

Generates a streamed response from the model given an input `GenerateContentRequest`.

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

Details
Preview

This item is available for early access. It is still in development and may contain experimental features or limitations.

Last Update

8 months ago

Includes
google-gemini-api-client