class RubyLLM::Models

A Models registry is the catalog of AI models RubyLLM knows about, including their capabilities, context windows, and pricing. The global registry is available through RubyLLM.models.

RubyLLM.models.find 'claude-sonnet-4-6'
RubyLLM.models.by_provider(:openai).chat_models
RubyLLM.models.refresh!

Filter methods return new Models instances, so calls chain. Models is enumerable over its Model entries. Class-level calls such as Models.find delegate to the global registry.