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 interface for Go 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. Developers can configure a client using API keys or project-specific cloud settings and then call methods like GenerateContent to send multimodal inputs (text and images) to the models.

Who it’s for

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

Highlights

  • Supports both the Gemini Developer API and the Gemini Enterprise Agent Platform.
  • Enables multimodal capabilities, allowing the generation of text from combined text and image inputs.
  • Flexible client configuration via code or environment variables.

Related

  • Project
  • Project
  • Project
  • Project
  • Project