Returns the total credits purchased and total usage so far for the current API key.
openrouter_credits(
.api_url = "https://openrouter.ai",
.timeout = 60,
.max_tries = 3
)A tibble with columns total_credits (USD purchased), total_usage
(USD consumed so far), and remaining (USD remaining).
Base URL for the OpenRouter API (default: "https://openrouter.ai").
Request timeout in seconds (default: 60).
Maximum retries (default: 3).