# alexrudall/ruby-openai

OpenAI API + Ruby! 🤖❤️ GPT-5 & Realtime WebRTC compatible!

Repository: https://github.com/alexrudall/ruby-openai
Canonical: https://ross.abutalabs.com/products/ruby-openai
Homepage: https://insertrobot.com
Language: Ruby
License: MIT
License Family: permissive
Topics: ai, api-client, openai, ruby, dall-e, chatgpt, whisper, gpt-4, rails, gpt-4o, o1
Last push: 2026-05-01T14:37:06+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 45, longevity 100
- inputs: {"age_days": 2221, "days_push": 124, "days_rel": 369, "gap_med": 16.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3222, forks 384 (observed 2026-08-28T04:07:49.789010+00:00)

## What it is
A Ruby gem providing a client for the OpenAI API, supporting chat completions, the Responses API, streaming, vision, audio (Whisper), image generation (DALL-E), and Realtime WebRTC. It also works with compatible providers like Azure, Deepseek, Ollama, Groq, and Gemini.

## Use cases
- call the OpenAI API from Ruby
- stream GPT chat responses in a Rails app
- generate images with DALL-E from Ruby
- transcribe audio with Whisper
- build a chatbot in Ruby
- use OpenAI-compatible endpoints like Ollama or Groq

## When to choose
- you're building a Ruby or Rails app that needs OpenAI models
- you want streaming chat, tool calls, or the Responses API in Ruby
- you need a well-maintained, popular Ruby client for OpenAI-compatible APIs

## When to avoid
- you're not using Ruby
- you need a provider without an OpenAI-compatible API
- you want a framework with agent orchestration rather than an API client

## Facets
- artifact type: library
- maturity: active
- function: http-client, sdk, llm-inference, speech-recognition, chatbot
- domain: artificial-intelligence, large-language-models, apis, web-development
- platform: ruby, cross-platform
- tags: openai, api-client, gpt, chatgpt, dall-e, whisper, rails, streaming, responses-api, realtime-webrtc, natural-language-processing

## Member repositories
- alexrudall/ruby-openai (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:49.789010+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:44:19.513139+00:00, confidence not recorded.
  - readme: https://github.com/alexrudall/ruby-openai (fetched 2026-08-28T04:07:49.789010+00:00, sha ac4ee66710d2)
  - homepage: https://insertrobot.com (fetched 2026-08-29T09:37:47.488471+00:00, sha 6f38cb34465c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
