Skip to content
R

Ruby Openai

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

by alexrudallFree

#913in AI
0In stores

Description

Ruby OpenAI is a Ruby gem for using the OpenAI API from Ruby code. It covers the main parts of the API, including chat with streaming and vi…

Highlights

  • OpenAI API client for Ruby
  • Streaming chat and the Responses API
  • Realtime conversations over WebRTC
  • Images, Whisper, speech, embeddings and moderation
  • Compatible endpoints for Azure, Ollama, Groq and Gemini

Ratings & Reviews

No ratings yet

Be the first to rate Ruby Openai.

People also visit

R

RubyLLM

A Beautiful Ruby Way to Work with AI

AI
Launch
A

Ask Chatgpt

AI-Powered Assistant Gem right in your Rails console

AI
Launch
G

Go Openai

OpenAI, GPT 6.1, GPT-Image-2, Whisper API clients for Go. Zero-dependency

AI
Launch
C

Chatgpt

ChatGPT Console client in Golang

AI
Launch
W

Webchat2api

OpenAI-compatible Web Chat API proxy

AI
Launch
G

GoModel

AI gateway written in Go with a unified OpenAI-compatible API

AI
Launch

Ruby Openai FAQ

What is Ruby OpenAI?

A Ruby gem that gives Ruby code access to the OpenAI API.

Is it free?

The gem is open source and hosted on GitHub. You still pay OpenAI for API use.

How do I install it?

Add the gem to your Gemfile and run bundle install, or install it with gem install and require it.

Where do I put my API key?

The README says to keep keys out of the code, for example in an openai.rb initializer that reads them from the environment with a tool such as dotenv.

Does it support streaming?

Yes. Chat and the Responses API can stream responses.

Can I use it with other providers?

The README has sections for Azure, Deepseek, Ollama, Groq and Gemini.

Where can I see the full list?

The README contents list covers chat, images, speech, vector stores, assistants, runs and realtime.

What are the best Ruby Openai alternatives?

Popular alternatives to Ruby Openai include RubyLLM, Ask Chatgpt and Go Openai. See all Ruby Openai alternatives

Developer Stuff

Badges