Retrieves the list of models available through the OpenRouter API, including pricing and context window information.
openrouter_list_models(
.api_url = "https://openrouter.ai",
.timeout = 60,
.max_tries = 3,
.dry_run = FALSE,
.verbose = FALSE
)A tibble with columns id, name, context_length,
prompt_price_per_million, and completion_price_per_million,
or NULL if no models are found.
Base URL for the OpenRouter API (default: "https://openrouter.ai").
Request timeout in seconds (default: 60).
Maximum retries (default: 3).
If TRUE, returns the request object without executing it (default: FALSE).
If TRUE, displays additional information (default: FALSE).