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_ACCESS_TOKEN")
Returns a list of Voice supported for synthesis.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://texttospeech.googleapis.com/v1beta1/voices
Gets the latest state of a long-running operation. Clients can use this metho…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://texttospeech.googleapis.com/v1beta1/{name}
Lists operations that match the specified filter in the request. If the serve…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://texttospeech.googleapis.com/v1beta1/{name}/operations
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:texttospeech
At a glance
Language Go
Endpoints5
Base URLhttps://texttospeech.googleapis.com
✓ Official