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

C# SDKs - 19 providers checked

Official C# and .NET SDKs for AI APIs

4 of 19 AI API providers ship an official C# SDK: OpenAI, Anthropic, Google and Amazon Bedrock. 1 provider points to the OpenAI SDK instead. 1 provider links a community library, which is not official. 4 providers' docs list no C# 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
4
Beta
0
OpenAI SDK
1
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 SDKs4

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

Google

Official SDK
Package
Google.GenAI
Install
Install
dotnet add package Google.GenAI
Repo
github.com/googleapis/dotnet-genai
Docs
ai.google.dev/gemini-api/docs/libraries
Notes
The Gemini API page links the repo as googleapis.github.io/dotnet-genai; the Vertex page links github.com/googleapis/dotnet-genai. Note the Gemini page's prose still says 'available for the Python, JavaScript/TypeScript, Go and Java languages' while its tabs include C#.

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
AWSSDK.BedrockRuntime
Install
See docs
Repo
github.com/aws/aws-sdk-net
Docs
docs.aws.amazon.com/sdk-for-net

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.htmlwww.nuget.org/packages/AWSSDK.BedrockRuntime
All Amazon Bedrock SDKs

Use the OpenAI SDK1

For C#, 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 C#, Azure OpenAI / Microsoft Foundry's docs point you to the OpenAI SDK. Base URL and limits.

Package
OpenAI (+ Azure.Identity)
Install
Install
dotnet add package OpenAI
dotnet add package Azure.Identity
Repo
github.com/openai/openai-dotnet
Docs
learn.microsoft.com/en-us/azure/foundry/openai/supported-languages
Notes
OpenAI describes this .NET library as built 'In collaboration with Microsoft'.

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

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 docs4

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

Not recorded

The data has no C# 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.