OpenAI
Official SDK- Package
openai- Install
- Install
gem "openai" - Repo
- github.com/openai/openai-ruby
- Docs
- developers.openai.com/api/docs/libraries
From the docs
To use the OpenAI API in Ruby, you can use the official OpenAI SDK for Ruby.
Ruby SDKs - 19 providers checked
3 of 19 AI API providers ship an official Ruby SDK: OpenAI, Anthropic and Amazon Bedrock. 2 providers link community libraries, which are not official. 4 providers' docs list no Ruby 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.
Providers that ship their own Ruby SDK, including those they label beta.
openaigem "openai"To use the OpenAI API in Ruby, you can use the official OpenAI SDK for Ruby.
anthropicbundle add anthropicAnthropic 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.
aws-sdk-bedrockruntimeAWS 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.
Libraries the provider's docs link but the provider does not ship. None of these is an official SDK.
Community library, not official. Mistral AI's docs link it, but Mistral AI does not ship it.
gbaptista/mistral-ai (also wilsonsilva/mistral)Here are some clients built by the community for various other languages ... Please note that these clients are not actively maintained or supported by Mistral AI.
Community library, not official. Groq's docs link it, but Groq does not ship it.
drnic/groq-rubyGroq Community Libraries ... Please note that Groq does not verify the security of these projects. Use at your own risk.
The provider's SDK docs list no Ruby SDK. The quote shows what they do list.
The Google GenAI SDK is available for the Python, JavaScript/TypeScript, Go and Java languages. (tabs: Python, JavaScript, Go, Java, C#)
The Cohere SDK is the primary way of accessing Cohere's models. We support SDKs in four different languages. (Python, Typescript, Java, Go)
| Languages | TypeScript, Python, Go |
Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.
The data has no Ruby entry for these providers. Their SDK docs are linked for a direct check.
9 more language pages, plus the full SDK reference.
Newsletter
One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.