% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_openrouter.R
\name{openrouter_list_models}
\alias{openrouter_list_models}
\title{List Available Models on OpenRouter}
\usage{
openrouter_list_models(
  .api_url = "https://openrouter.ai",
  .timeout = 60,
  .max_tries = 3,
  .dry_run = FALSE,
  .verbose = FALSE
)
}
\arguments{
\item{.api_url}{Base URL for the OpenRouter API (default: \code{"https://openrouter.ai"}).}

\item{.timeout}{Request timeout in seconds (default: 60).}

\item{.max_tries}{Maximum retries (default: 3).}

\item{.dry_run}{If TRUE, returns the request object without executing it (default: FALSE).}

\item{.verbose}{If TRUE, displays additional information (default: FALSE).}
}
\value{
A tibble with columns \code{id}, \code{name}, \code{context_length},
\code{prompt_price_per_million}, and \code{completion_price_per_million},
or NULL if no models are found.
}
\description{
Retrieves the list of models available through the OpenRouter API, including
pricing and context window information.
}
