% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_openrouter.R
\name{openrouter_credits}
\alias{openrouter_credits}
\title{Get OpenRouter Credit Balance}
\usage{
openrouter_credits(
  .api_url = "https://openrouter.ai",
  .timeout = 60,
  .max_tries = 3
)
}
\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).}
}
\value{
A tibble with columns \code{total_credits} (USD purchased), \code{total_usage}
(USD consumed so far), and \code{remaining} (USD remaining).
}
\description{
Returns the total credits purchased and total usage so far for the current
API key.
}
