Using go-genai with googleapis.com

Go integration

✓ Official SDK
Install
go get github.com/googleapis/go-genai
Quick start
import "go-genai"

// Initialize client
client := go-genai.NewClient("YOUR_API_KEY")
Exchanges a credential for a Google OAuth 2.0 access token. The token asserts…
curl \
  https://sts.googleapis.com/v1beta/token
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:sts
At a glance
Language Go
Endpoints1
Base URLhttps://sts.googleapis.com
✓ Official