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

OpenAI SDKs - 10 languages recorded

OpenAI SDKs by language

OpenAI ships official SDKs for Python, TypeScript, C# and Ruby. Its Go and Java SDKs are labelled beta. For PHP, Rust, Swift and Kotlin, its docs link community libraries, which are not official.

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

OpenAI's SDK docs: developers.openai.com/api/docs/libraries. Compare every provider in the SDK grid.

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.

Java

Official, labelled beta
Package
com.openai:openai-java
Install
Install
<dependency>
  <groupId>com.openai</groupId>
  <artifactId>openai-java</artifactId>
  <version>VERSION</version>
</dependency>

VERSION stands for the version the docs pin. Pin the current release from the package registry.

Repo
github.com/openai/openai-java
Docs
developers.openai.com/api/docs/libraries
Notes
Maven snippet verbatim except the pinned version, replaced with VERSION.

From the docs

OpenAI provides an API helper for the Java programming language, currently in beta.
developers.openai.com/api/docs/libraries
Java SDKs from every provider

PHP

Community library, not official

Community library, not official. OpenAI's docs link it, but OpenAI does not ship it.

Package
openai-php/client (also orhanerday/open-ai)
Install
See docs
Repo
github.com/openai-php/client
Docs
developers.openai.com/api/docs/libraries

From the docs

Community libraries: The libraries below are built and maintained by the broader developer community. ... OpenAI does not verify the correctness or security of these projects. Use them at your own risk!
developers.openai.com/api/docs/libraries
PHP SDKs from every provider

Rust

Community library, not official

Community library, not official. OpenAI's docs link it, but OpenAI does not ship it.

Package
async-openai
Install
See docs
Repo
github.com/64bit/async-openai
Docs
developers.openai.com/api/docs/libraries

From the docs

Community libraries: The libraries below are built and maintained by the broader developer community. ... OpenAI does not verify the correctness or security of these projects. Use them at your own risk!
developers.openai.com/api/docs/libraries
Rust SDKs from every provider

Swift

Community library, not official

Community library, not official. OpenAI's docs link it, but OpenAI does not ship it.

Package
MacPaw/OpenAI (also AIProxySwift, OpenAIKit)
Install
See docs
Repo
github.com/MacPaw/OpenAI
Docs
developers.openai.com/api/docs/libraries

From the docs

Community libraries: The libraries below are built and maintained by the broader developer community. ... OpenAI does not verify the correctness or security of these projects. Use them at your own risk!
developers.openai.com/api/docs/libraries
Swift SDKs from every provider

Kotlin

Community library, not official

Community library, not official. OpenAI's docs link it, but OpenAI does not ship it.

Package
openai-kotlin
Install
See docs
Repo
github.com/Aallam/openai-kotlin
Docs
developers.openai.com/api/docs/libraries

From the docs

Community libraries: The libraries below are built and maintained by the broader developer community. ... OpenAI does not verify the correctness or security of these projects. Use them at your own risk!
developers.openai.com/api/docs/libraries
Kotlin SDKs from every provider

More on OpenAI

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.