GeminiDotnet 0.1.2

dotnet add package GeminiDotnet --version 0.1.2                
NuGet\Install-Package GeminiDotnet -Version 0.1.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GeminiDotnet" Version="0.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeminiDotnet --version 0.1.2                
#r "nuget: GeminiDotnet, 0.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GeminiDotnet as a Cake Addin
#addin nuget:?package=GeminiDotnet&version=0.1.2

// Install GeminiDotnet as a Cake Tool
#tool nuget:?package=GeminiDotnet&version=0.1.2                

GeminiDotnet

This package provides the tools to interact with the Google Gemini models in .NET.

This package aims to be lightweight, with no dependencies and direct mappings to the Gemini API. For an API you can use with other models, and for a nicer API, you should consider interacting with this library through the GeminiDotnet.Extensions.AI library, which exposes an Microsoft.Extensions.AI.IChatClient implementation. For more information about why this may be preferred, you can read the Microsoft.Extensions.AI announcement blog post.

Getting Started

If you want to use the minimal API, you can install this package into your project as follows.

dotnet add package GeminiDotnet

Then, you can create and use the GeminiClient to interact with Gemini as follows.

using GeminiDotnet;

var options = new GeminiClientOptions
{
    ApiKey = "<your-api-key>"
};

var client = new GeminiClient(options);
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GeminiDotnet:

Package Downloads
GeminiDotnet.Extensions.AI

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.2 53 1/23/2025
0.1.1 57 1/23/2025
0.1.0 51 1/23/2025