TenantModelKeyCreateRequest
Stores one of the tenant’s own provider keys.
Kind: an object, used in requests.
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
provider | string | null | The vendor: Anthropic, OpenAi, DeepSeek, Gemini, Qwen, Glm or Kimi (case-insensitive). Any other name is refused with api:model-keys:provider-invalid. | |
label | string | null | A name for the key, 1–100 characters. | |
apiKey | string | null | The provider API key. Write-only: it is never served back (only its last four characters). | |
baseUrl | string | null | Optional endpoint to call instead of the provider’s default: an absolute https URL to a public host. | |
modelNameOverrides | map<string, string> | null | Optional map from a model’s id at the provider to the name the endpoint serves it under, typically Azure OpenAI deployment names. | |
priority | integer | null | Failover order among the tenant’s keys for this provider, lower first (0–1000). Omitted: after the existing keys. |
Example
Section titled “Example”{ "provider": "...", "label": "...", "apiKey": "...", "baseUrl": "...", "modelNameOverrides": { "key": "..." }, "priority": 0}Where it’s used
Section titled “Where it’s used”modelKeys.create(POST /tenants/self/model-keys)