pub async fn create_api_key(
base_url: &str,
api_key: &str,
name: &str,
limit: Option<f64>,
) -> Result<ApiKey, OpenRouterError>
Expand description
Creates a new API key. Requires a Provisioning API key.
§Arguments
base_url
- The base URL of the OpenRouter API.api_key
- The API key for authentication.name
- The display name for the new API key.limit
- Optional credit limit for the new API key.
§Returns
Result<ApiKey, OpenRouterError>
- The created API key.