LLM API Client / SDK
3.9k 2026-04-27
crmne/ruby_llm
A unified Ruby API to interact with various Large Language Models (LLMs) from different providers, simplifying AI integration into Ruby and Rails applications.
Core Features
Unified API for multiple LLM providers (OpenAI, Anthropic, Gemini, etc.)
Comprehensive AI capabilities (Chat, Vision, Audio, Images, Embeddings, Moderation)
Advanced AI features (Agents, Tools, Structured Output, Streaming)
Seamless Rails integration with ActiveRecord
Support for various file types (PDFs, images, audio, video, code)
Quick Start
gem 'ruby_llm'Detailed Introduction
RubyLLM is a powerful and elegant Ruby API designed to abstract away the complexities of integrating with diverse Large Language Models (LLMs) from providers like OpenAI, Anthropic, Google, and more. It offers a single, consistent interface for building AI-powered applications, from chatbots and RAG systems to AI agents. By providing a unified approach to chat, vision, audio processing, image generation, and more, RubyLLM significantly streamlines development, allowing Ruby developers to leverage cutting-edge AI capabilities without grappling with disparate provider-specific APIs.