foundry_get_image_key: Get Image Generation API Key

View source: R/image.R

foundry_get_image_keyR Documentation

Get Image Generation API Key

Description

Retrieve the API key for image generation.

Usage

foundry_get_image_key(key = NULL, required = FALSE)

Arguments

key

Character. Optional key to use directly instead of environment variable.

required

Logical. If TRUE and no key is found, throws an error.

Details

Checks in order: provided key, AZURE_FOUNDRY_IMAGE_KEY, AZURE_FOUNDRY_KEY.

Value

Character string with the API key, or NULL if not found and not required.


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.