LLMDB Basics
Mix.install([
{:llm_db, "~> 2026.1"},
{:kino, "~> 0.18.0"}
])
Intro / Configuration
LLMDB is a support library for ReqLLM, a database of LLM providers.
LLMDB.providers() |> Enum.map(&(&1.id))
LLMDB.providers() |> Enum.filter(&(&1.id == :anthropic)) |> List.first()
models = LLMDB.models(:anthropic) |> Enum.map(&(&1.model))
Model details are stored in the package: including pricing, capabilitites, modalities, and token limits. These can be re-synced from models.dev via a mix task (mix req_llm.model_sync) outside of a Livebook context.
# Show the details of a specific model, and store it for usage throughout the Livebook
{:ok, model} = LLMDB.model(:anthropic, "claude-haiku-4-5")