# googleapis/go-genai

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

Repository: https://github.com/googleapis/go-genai
Canonical: https://ross.abutalabs.com/products/go-genai
Homepage: https://pkg.go.dev/google.golang.org/genai
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-09-02T00:31:58+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 88, longevity 45
- inputs: {"age_days": 635, "days_push": 1, "days_rel": 2, "gap_med": 6.0, "n_releases_24m": 83}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1183, forks 161 (observed 2026-09-03T02:15:12.432091+00:00)

## What it is
The official Google Gen AI SDK for Go, providing a client interface to Google's generative models such as Gemini via the Gemini Developer API and Gemini Enterprise Agent Platform. It supports text generation, multimodal (text-and-image) input, video generation, and other generative AI capabilities.

## Use cases
- call the Gemini API from a Go application
- generate text from text and image input in Go
- integrate Google generative AI models into a backend service
- build AI-powered features with Gemini in Go
- use Gemini Enterprise Agent Platform from Go code
- generate videos with Gemini models programmatically

## When to choose
- you are building a Go application that needs access to Gemini models
- you want an official, maintained SDK for the Gemini Developer API or Enterprise Agent Platform
- you need multimodal generation (text, images, video) from Go

## When to avoid
- you use a language other than Go (there are separate SDKs for Python, JS, etc.)
- you need to call non-Google LLM providers with a unified interface
- you need a stable video-generation API without pinning versions, since breaking changes are planned before 2.0

## Facets
- artifact type: library
- maturity: active
- function: sdk, llm-inference, machine-learning, http-client
- domain: large-language-models, artificial-intelligence, apis, developer-tools
- platform: go, cross-platform
- tags: gemini, google-genai, generative-ai, multimodal, api-client

## Member repositories
- googleapis/go-genai (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:12.432091+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:26:35.134667+00:00, confidence not recorded.
  - readme: https://github.com/googleapis/go-genai (fetched 2026-09-03T02:15:12.432091+00:00, sha 36400ac17fa4)
  - homepage: https://pkg.go.dev/google.golang.org/genai (fetched 2026-08-29T12:32:59.372872+00:00, sha 6aad7560da14)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:32:59.377487+00:00, sha 757852027879)
- Data as of 2026-08-30T08:39:29.467469+00:00.
