Anthropic::Models
Constructors
new(client : Client)
SourceInstance methods
list(after_id : String | Nil = nil, before_id : String | Nil = nil, limit : Int32 = 20) : ModelListResponse
List all available models
Returns a paginated list of all Claude models available to your account.
client = Anthropic::Client.new
response = client.models.list
response.data.each do |model|
puts "#{model.display_name} (#{model.id})"
end