📢 Sponsored: Check out Susan's Sudoku - A free daily sudoku puzzle.

Intermediate

RubyLLM

A delightful Ruby way to work with AI through a unified interface to Anthropic, AWS Bedrock Anthropic, DeepSeek, Ollama, OpenAI, Gemini, OpenRouter, and any OpenAI-compatible API.

Updated May 24, 2025
Price: Free

Description

A delightful Ruby way to work with AI. RubyLLM provides one beautiful, Ruby-like interface to interact with modern AI models. Chat, generate images, create embeddings, and use tools – all with clean, expressive code that feels like Ruby, not like patching together multiple services.

Every AI provider comes with its own client library, its own response format, its own conventions for streaming, and its own way of handling errors. Want to use multiple providers? Prepare to juggle incompatible APIs and bloated dependencies.

RubyLLM fixes all that. One beautiful API for everything. One consistent format. Minimal dependencies — just Faraday and Zeitwerk. Because working with AI should be a joy, not a chore.

Core Capabilities

  • 💬 Unified Chat: Converse with models from OpenAI, Anthropic, Gemini, Bedrock, OpenRouter, DeepSeek, Ollama, or any OpenAI-compatible API using RubyLLM.chat.
  • 👁️ Vision: Analyze images within chats.
  • 🔊 Audio: Transcribe and understand audio content.
  • 📄 PDF Analysis: Extract information and summarize PDF documents.
  • 🖼️ Image Generation: Create images with RubyLLM.paint.
  • 📊 Embeddings: Generate text embeddings for vector search with RubyLLM.embed.
  • 🔧 Tools (Function Calling): Let AI models call your Ruby code using RubyLLM::Tool.
  • 🚂 Rails Integration: Easily persist chats, messages, and tool calls using acts_as_chat and acts_as_message.
  • 🌊 Streaming: Process responses in real-time with idiomatic Ruby blocks.

More "Open Source" Projects

HostedGPT - A free ChatGPT clone

A free, and open-source ChatCPT alternative built using the latest Ruby on Rails and Hotwire features.

DailyLog

A Ruby on Rails web application that uses Turbo Native, iOS, and Android app to track my daily habits like exercise, medication, food, and water.

Mastodon

Your self-hosted, globally interconnected microblogging community

More "AI" Projects

Tidewave

Speed up development with AI assistants that understand your web application, how it runs, and what it delivers

Rails SaaS Starter

Skip 41 hours of setup. Auth, billing, AI integration, multi-tenancy, admin panel, and Kamal deployment — all wired up and tested.

HostedGPT - A free ChatGPT clone

A free, and open-source ChatCPT alternative built using the latest Ruby on Rails and Hotwire features.

More "Free" Projects

Writebook

Instantly publish your own books on the web for free, no publisher required.

RailsBuddy

Find a buddy for Rails. Inspired by Laramates.

Flappy Bird on Rails

A simple Flappy Bird clone that uses Falcon and Live to implement real-time interactivity.

Stay updated with the latest Rails projects

Join our newsletter to get updates on new Rails projects and resources.

    We won't send you spam. Unsubscribe at any time.