googleapis/go-genai

Google Gen AI Go SDK provides an interface for developers to integrate Google's generative models into their Go applications.

What it solves

It provides a standardized Go interface for developers to integrate Google's generative AI models, such as Gemini, into their applications without having to write raw API calls.

How it works

The SDK acts as a client library that connects to either the Gemini Developer API or the Gemini Enterprise Agent Platform. It allows developers to send prompts (text or multimodal inputs) to models and receive generated content, and it includes a dedicated Interactions API for managing multi-turn conversations with agents and models.

Who it’s for

Go developers who want to build AI-powered features using Google's generative models.

Highlights

  • Support for both Gemini Developer API and Gemini Enterprise Agent Platform.
  • Multimodal capabilities, enabling text generation from combined text and image inputs.
  • Built-in support for the Interactions API for multi-turn conversations.
  • Simple client configuration via API keys or environment variables.

Related

  • Project
  • Project
  • Project
  • Project
  • Project