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

TypeScript SDKs - 19 providers checked

Official TypeScript and JavaScript SDKs for AI APIs

12 of 19 AI API providers ship an official TypeScript SDK: OpenAI, Anthropic, Google, Mistral AI, Cohere, Groq, Together AI, OpenRouter, Amazon Bedrock, Hugging Face, Ollama and Cerebras. 6 providers point to the OpenAI SDK instead.

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
12
Beta
0
OpenAI SDK
6
Community
0
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 SDKs12

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

OpenRouter

Official SDK
Package
@openrouter/sdk
Install
Install
npm install @openrouter/sdk
Repo
github.com/OpenRouterTeam/typescript-sdk
Docs
openrouter.ai/docs/client-sdks/overview
Notes
Repo URL from npm metadata. The TypeScript reference page shows 'npm add @openrouter/sdk'.

From the docs

The Client SDKs give you a thin, type-safe layer over the OpenRouter REST API. ... | TypeScript | @openrouter/sdk | Python | openrouter | Go | go-sdk | ... All three SDKs are auto-generated from the OpenRouter OpenAPI spec
openrouter.ai/docs/client-sdks/overviewwww.npmjs.com/package/@openrouter/sdk
All OpenRouter SDKs

Amazon Bedrock

Official SDK
Package
@aws-sdk/client-bedrock-runtime
Install
Install
npm install @aws-sdk/client-bedrock-runtime
Repo
github.com/aws/aws-sdk-js-v3
Docs
docs.aws.amazon.com/sdk-for-javascript
Notes
Install line from the package README on npm.

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.npmjs.com/package/@aws-sdk/client-bedrock-runtime
All Amazon Bedrock SDKs

Use the OpenAI SDK6

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

xAI

Points to the OpenAI SDK

Not a xAI SDK. For TypeScript, xAI's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai
Install
Install
npm install openai
Repo
github.com/openai/openai-node
Docs
docs.x.ai/developers/quickstart
Notes
xAI ships no JavaScript SDK of its own. The quickstart offers two JS paths: the OpenAI SDK (baseURL https://api.x.ai/v1) and Vercel's AI SDK provider @ai-sdk/xai (npm install ai @ai-sdk/xai zod; repo github.com/vercel/ai, maintained by Vercel, not xAI).

From the docs

Step 3: Install an SDK. Pick your language and install the SDK: npm install ai @ai-sdk/xai zod ... npm install openai
docs.x.ai/developers/quickstart
All xAI SDKs

DeepSeek

Points to the OpenAI SDK

Not a DeepSeek SDK. For TypeScript, DeepSeek's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai
Install
Install
npm install openai
Repo
github.com/openai/openai-node
Docs
api-docs.deepseek.com

From the docs

The DeepSeek API uses an API format compatible with OpenAI/Anthropic. By modifying the configuration, you can use the OpenAI/Anthropic SDK or softwares compatible with the OpenAI/Anthropic API to access the DeepSeek API. ... // Please install OpenAI SDK first: `npm install openai`
api-docs.deepseek.com
All DeepSeek SDKs

Fireworks AI

Points to the OpenAI SDK

Not a Fireworks AI SDK. For TypeScript, Fireworks AI's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai
Install
See docs
Repo
github.com/openai/openai-node
Docs
docs.fireworks.ai/tools-sdks/openai-compatibility
Notes
No install command on the page. Note the npm name 'fireworks-ai' is an npm security-holder placeholder, not an SDK.

From the docs

Use the OpenAI Python and JavaScript SDKs with Fireworks by pointing base_url at api.fireworks.ai, with notes on supported endpoints and request fields.
docs.fireworks.ai/tools-sdks/openai-compatibility
All Fireworks AI SDKs

Azure OpenAI / Microsoft Foundry

Points to the OpenAI SDK

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

Package
openai (+ @azure/identity)
Install
Install
npm install openai @azure/identity
Repo
github.com/openai/openai-node
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 TypeScript, Alibaba Cloud Model Studio's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai
Install
Install
npm install --save openai
Repo
github.com/openai/openai-node
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk
Notes
The npm package named 'dashscope' is published by an individual (linkwisdom), not Alibaba; it is not official.

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

Not recorded

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