% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_utils.R
\name{get_api_key}
\alias{get_api_key}
\title{Get an API key for a model}
\usage{
get_api_key(model, api_keys)
}
\arguments{
\item{model}{Model name to get API key for}

\item{api_keys}{Named list of API keys with provider or model names as keys}
}
\value{
A trimmed API key string, or \code{NULL} when no valid key is configured.
}
\description{
Retrieves a configured API key by checking the model's provider name first,
followed by the exact model name.
}
