AI API SDKs - verified
Official AI API SDKs by language
16 of 19 AI API providers ship at least one SDK of their own. Across 10 languages the data holds 113 entries: 51 official SDKs, 5 the provider labels beta, 13 where the docs point to the OpenAI SDK instead, 12 community libraries the provider links but does not ship, and 32 where the provider's docs list no SDK. Python is the best covered (16 providers ship their own), then TypeScript (12).
Package names and install lines are copied as the docs print them. A community library is never counted as official. When a provider points you to the OpenAI SDK, its base URL is in the API compatibility reference.
Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.
- Providers
- 19
- Official SDKs
- 51
- Labelled beta
- 5
- Point to OpenAI SDK
- 13
SDKs by language
- Python16 providers ship their own
- TypeScript12 providers ship their own
- Go6 providers ship their own
- Java7 providers ship their own
- C#4 providers ship their own
- Ruby3 providers ship their own
- PHP2 providers ship their own
- Rust1 provider ships their own
- Swift3 providers ship their own
- Kotlin2 providers ship their own
Provider by language
Each cell opens that provider's entry for the language, with the package, install line and the quote behind the status. Scroll the table sideways on a small screen.
- 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.
Warning
Do not install these npm packages
dashscopeon npm is not Alibaba Cloud Model Studio's SDK: it is published by an individual, not by Alibaba Cloud. For TypeScript, Alibaba's docs point to the OpenAI SDK. On PyPI,dashscopeis the provider's own Python package.fireworks-aion npm is not Fireworks AI's SDK: it is an npm security-holder placeholder, not an SDK. For TypeScript, Fireworks points to the OpenAI SDK. On PyPI,fireworks-aiis the provider's own Python package.
Read before you install
Entries that carry a badge but are not quite what the badge suggests, from the providers' own docs.
- OpenAI Go and Java
OpenAI labels these SDKs beta.
- Anthropic Swift
Not a full Messages API client. This is a Foundation Models integration: it plugs Claude into Apple's Foundation Models API, and Anthropic files it under libraries and integrations, not client SDKs.
- Anthropic PHP
Anthropic labels this SDK beta.
- Google Swift
Firebase AI Logic, not the Gen AI SDK. Google points Swift developers to Firebase AI Logic, which needs a Firebase project.
- Google Kotlin
Firebase AI Logic, not the Gen AI SDK. Google points Android developers to Firebase AI Logic, which needs a Firebase project.
- Fireworks AI Python
Fireworks AI labels this SDK alpha; it is recorded here as beta. Fireworks also says its API works with the OpenAI SDK.
Use the OpenAI SDK
For these providers and languages the docs point to the OpenAI SDK rather than a library of their own. You keep the OpenAI client and change the base URL and API key; each provider's compatibility page has the exact base URL.
- xAI
OpenAI SDK for TypeScript; its own SDK for Python.
xAI OpenAI-compatible base URL - DeepSeek
OpenAI SDK for Python and TypeScript.
DeepSeek OpenAI-compatible base URL - Fireworks AI
OpenAI SDK for TypeScript; its own SDK for Python.
Fireworks AI OpenAI-compatible base URL - Azure OpenAI / Microsoft Foundry
OpenAI SDK for Python, TypeScript, Go, Java and C#.
Azure OpenAI / Microsoft Foundry OpenAI-compatible base URL - Moonshot AI
OpenAI SDK for Python and TypeScript.
Moonshot AI OpenAI-compatible base URL - Alibaba Cloud Model Studio
OpenAI SDK for TypeScript and Go; its own SDK for Python and Java.
Alibaba Cloud Model Studio OpenAI-compatible base URL
FAQ
Which AI API providers have official SDKs in the most languages?
Amazon Bedrock: 10 languages (Python, TypeScript, Go, Java, C#, Ruby, PHP, Rust, Swift and Kotlin); Anthropic: 8 languages (Python, TypeScript, Go, Java, C#, Ruby, PHP and Swift); Google: 7 languages (Python, TypeScript, Go, Java, C#, Swift and Kotlin); OpenAI: 6 languages (Python, TypeScript, Go, Java, C# and Ruby). Counts include SDKs the provider labels beta.
Which AI providers tell you to use the OpenAI SDK instead of their own?
xAI (TypeScript), DeepSeek (Python and TypeScript), Fireworks AI (TypeScript), Azure OpenAI / Microsoft Foundry (Python, TypeScript, Go, Java and C#), Moonshot AI (Python and TypeScript), Alibaba Cloud Model Studio (TypeScript and Go). For those languages the provider's docs point to the OpenAI SDK rather than a library of their own. For DeepSeek, Azure OpenAI / Microsoft Foundry and Moonshot AI, the OpenAI SDK is the documented route in every language recorded here.
Is there an official Rust SDK for AI APIs?
Rarely. Official: Amazon Bedrock (aws-sdk-bedrockruntime). Community libraries linked from the docs, not official: async-openai (OpenAI), mistralai-client-rs (Mistral AI). No Rust SDK in the docs: Anthropic, Google, Cohere, Groq, OpenRouter and Alibaba Cloud Model Studio.
Are the dashscope and fireworks-ai npm packages official?
No. The npm package dashscope is not the provider's SDK: it is published by an individual, not by Alibaba Cloud. For TypeScript, Alibaba's docs point to the OpenAI SDK. The npm package fireworks-ai is not the provider's SDK: it is an npm security-holder placeholder, not an SDK. For TypeScript, Fireworks points to the OpenAI SDK. On PyPI the same names are the official Python packages (pip install -U dashscope; pip install --pre fireworks-ai).
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.
Keep exploring
OpenAI-compatible and Anthropic-compatible APIs
Base URLs, endpoints and documented limits when you point an existing SDK at another provider.
AI agent frameworks
LangGraph, CrewAI, OpenAI Agents SDK, Google ADK and more, compared feature by feature.
AI API error reference
Documented error codes per provider, with causes, fixes and retry guidance.