AI Cloud Architect

Introducing Google Gen AI .NET SDK

GoogleBlog post by Mete AtamelGoogle Cloud Blog (developers and practitioners)

This blog post introduces the new Google Gen AI .NET SDK, enabling C#/.NET developers to use Gemini from Google AI or Vertex AI with a single, unified library. Learn how to install the SDK, create a client, and generate text and images with configurable settings.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Google releases a .NET library, Google.GenAI, for calling Gemini from C# through either the Gemini Developer API or Vertex AI with one interface.

Who it is for

C# and .NET developers who call Gemini models from Google AI or Vertex AI and want one client library.

Key points

  • Installed with dotnet add package Google.GenAI.
  • Supports unary and streaming text generation and image generation (Imagen 3 example).
  • Supports response schemas, system instructions and generation settings such as temperature and token limits.