Creates a new API key for the specified provider. The key id is auto-generated
if omitted. enabled defaults to true if omitted. value is required and must
not be empty. Keys cannot be created on keyless providers.
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Provider name
API key configuration
Unique identifier for the key
Name of the key
API key value (redacted in responses)
List of models this key can access (whitelist)
List of models this key cannot access (blacklist)
Weight for load balancing
Model alias mappings — maps a user-facing model name to a provider-specific identifier (deployment name, inference profile ID, fine-tuned model ID, etc.)
Azure-specific key configuration
Vertex-specific key configuration
AWS Bedrock-specific key configuration
VLLM-specific key configuration
Ollama-specific key configuration
SGLang-specific key configuration
Replicate-specific key configuration
Whether the key is active (defaults to true)
Whether this key can be used for batch API operations
Hash of config.json version, used for change detection
Status of key (e.g., success, list_models_failed)
Error or status description for the key
Key created successfully
API key configuration
Unique identifier for the key
Name of the key
API key value (redacted in responses)
List of models this key can access (whitelist)
List of models this key cannot access (blacklist)
Weight for load balancing
Model alias mappings — maps a user-facing model name to a provider-specific identifier (deployment name, inference profile ID, fine-tuned model ID, etc.)
Azure-specific key configuration
Vertex-specific key configuration
AWS Bedrock-specific key configuration
VLLM-specific key configuration
Ollama-specific key configuration
SGLang-specific key configuration
Replicate-specific key configuration
Whether the key is active (defaults to true)
Whether this key can be used for batch API operations
Hash of config.json version, used for change detection
Status of key (e.g., success, list_models_failed)
Error or status description for the key