Skip to content

TenantModelKeyCreateRequest

Stores one of the tenant’s own provider keys.

Kind: an object, used in requests.

FieldTypeRequiredDescription
providerstring | nullThe vendor: Anthropic, OpenAi, DeepSeek, Gemini, Qwen, Glm or Kimi (case-insensitive). Any other name is refused with api:model-keys:provider-invalid.
labelstring | nullA name for the key, 1–100 characters.
apiKeystring | nullThe provider API key. Write-only: it is never served back (only its last four characters).
baseUrlstring | nullOptional endpoint to call instead of the provider’s default: an absolute https URL to a public host.
modelNameOverridesmap<string, string> | nullOptional map from a model’s id at the provider to the name the endpoint serves it under, typically Azure OpenAI deployment names.
priorityinteger | nullFailover order among the tenant’s keys for this provider, lower first (0–1000). Omitted: after the existing keys.
{
"provider": "...",
"label": "...",
"apiKey": "...",
"baseUrl": "...",
"modelNameOverrides": {
"key": "..."
},
"priority": 0
}