Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Go SDKs - 19 providers checked

Official Go SDKs for AI APIs

5 of 19 AI API providers ship an official Go SDK: Anthropic, Google, Cohere, OpenRouter and Amazon Bedrock. OpenAI also ships one but labels it beta. 2 providers point to the OpenAI SDK instead. 1 provider links a community library, which is not official. 1 provider's docs list no Go SDK.

Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.

Compare every language in the provider by language grid.

Official
5
Beta
1
OpenAI SDK
2
Community
1
Official
the provider's own SDK.
Beta
the provider's own SDK, which it labels beta (Fireworks AI says alpha).
OpenAI SDK
the provider's docs point to the OpenAI SDK for this language.
Community
a library the provider's docs link but do not ship. Not official.
None
the provider's SDK docs list no SDK for this language.
-
Not recorded: no entry in the data for this language.

Official SDKs6

Providers that ship their own Go SDK, including those they label beta.

Anthropic

Official SDK
Package
github.com/anthropics/anthropic-sdk-go
Install
Install
go get github.com/anthropics/anthropic-sdk-go
Repo
github.com/anthropics/anthropic-sdk-go
Docs
platform.claude.com/docs/en/cli-sdks-libraries/sdks/go

From the docs

Anthropic provides three kinds of official tooling for building with the Claude API ... Client SDKs: General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby.
platform.claude.com/docs/en/cli-sdks-libraries/overview
All Anthropic SDKs

Google

Official SDK
Package
google.golang.org/genai
Install
Install
go get google.golang.org/genai
Repo
github.com/googleapis/go-genai
Docs
ai.google.dev/gemini-api/docs/libraries

From the docs

When building with the Gemini API, we recommend using the Google GenAI SDK. These are the official, production-ready libraries that we develop and maintain for the most popular languages.
ai.google.dev/gemini-api/docs/librariesdocs.cloud.google.com/gemini-enterprise-agent-platform/models/sdks/overview
All Google SDKs

Amazon Bedrock

Official SDK
Package
github.com/aws/aws-sdk-go-v2/service/bedrockruntime
Install
See docs
Repo
github.com/aws/aws-sdk-go-v2
Docs
docs.aws.amazon.com/sdk-for-go

From the docs

AWS software development kits (SDKs) are available for many popular programming languages. Each SDK provides an API, code examples, and documentation that make it easier for developers to build applications in their preferred language.
docs.aws.amazon.com/bedrock/latest/userguide/sdk-general-information-section.htmlpkg.go.dev/github.com/aws/aws-sdk-go-v2/service/bedrockruntime
All Amazon Bedrock SDKs

Use the OpenAI SDK2

For Go, these providers' docs point to the OpenAI SDK rather than a library of their own.

Azure OpenAI / Microsoft Foundry

Points to the OpenAI SDK

Not a Azure OpenAI / Microsoft Foundry SDK. For Go, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
github.com/openai/openai-go/v3 (+ azidentity)
Install
Install
go get github.com/openai/openai-go/v3
go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
Repo
github.com/openai/openai-go
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages

From the docs

Use the OpenAI SDKs with the Azure OpenAI v1 endpoint to build model inference applications in Python, C#, JavaScript, Java, or Go.
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
All Azure OpenAI / Microsoft Foundry SDKs

Alibaba Cloud Model Studio

Points to the OpenAI SDK

Not a Alibaba Cloud Model Studio SDK. For Go, Alibaba Cloud Model Studio's docs point you to the OpenAI SDK. Base URL and limits.

Package
github.com/openai/openai-go/v3
Install
Install
go get 'github.com/openai/openai-go/v3'
Repo
github.com/openai/openai-go
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk

From the docs

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.
www.alibabacloud.com/help/en/model-studio/install-sdk
All Alibaba Cloud Model Studio SDKs

Community libraries (not official)1

Libraries the provider's docs link but the provider does not ship. None of these is an official SDK.

No SDK in the docs1

The provider's SDK docs list no Go SDK. The quote shows what they do list.

Not recorded

The data has no Go entry for these providers. Their SDK docs are linked for a direct check.

Other languages

9 more language pages, plus the full SDK reference.

Newsletter

Know when a provider ships a new SDK

One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.