Mscc.GenerativeAI 3.1.0

dotnet add package Mscc.GenerativeAI --version 3.1.0
                    
NuGet\Install-Package Mscc.GenerativeAI -Version 3.1.0
                    
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="Mscc.GenerativeAI" Version="3.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mscc.GenerativeAI" Version="3.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Mscc.GenerativeAI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mscc.GenerativeAI --version 3.1.0
                    
#r "nuget: Mscc.GenerativeAI, 3.1.0"
                    
#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.
#:package Mscc.GenerativeAI@3.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mscc.GenerativeAI&version=3.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Mscc.GenerativeAI&version=3.1.0
                    
Install as a Cake Tool

Gemini API Client for .NET and ASP.NET Core

GitHub GitHub last commit MsccGenerativeAI GitHub stars

<picture> <img alt="Gemini SDK for .NET" src="./docs/images/GeminiNET.png" /> </picture>

Access and integrate the Gemini API into your .NET applications. This SDK allows you to connect to the Gemini API through either Google AI Studio or Vertex AI. The SDK is fully compatible with all Gemini API models and features, including recent additions like improved tool usage (code execution, function calling and integrated Google search grounding), and media generation (Imagen).

Name Package Status
Client for .NET Mscc.GenerativeAI NuGet VersionNuGet Downloads
Client for ASP.NET (Core) Mscc.GenerativeAI.Web NuGet VersionNuGet Downloads