#80 · Primary category: AI Gateway & API Infrastructure

ruby-openai

ai api-client chatgpt dall-e gpt-4 gpt-4o o1 openai rails ruby whisper

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

Project last updated:05/01/26

GitHub Stars

3.2K

Forks

384

Contributors

77

License

MIT

Why we included this project

For Ruby shops that want OpenAI's models without hand-rolling HTTP calls, this gem is the usual answer. It puts chat completions, the Responses API, embeddings, image generation, Whisper transcription, and the Assistants vector-store flow behind a small Ruby interface with sensible configuration and error handling. You can also swap the base URI to point at Azure, Ollama, Groq, Gemini, or DeepSeek, which is convenient when you want one client across providers during prototyping. Streaming chat, tool calls, and real-time WebRTC conversations are covered, so the same code can run a quick script or a production Rails app.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category