Skip to main content
PATCH
Update BYOK preferences

Body

application/json

PATCH /v1/projects/{project_id}/byok

model_preference
string | null

Optional specific model the tenant prefers from their provider.

allow_platform_fallback
boolean
default:true

When False, requests that cannot be satisfied by the tenant's BYOK key fail with an explicit error instead of silently falling back to the platform's shared key.

Response

BYOK preferences updated

BYOK key status (never exposes the actual key).

project_id
string
required
has_key
boolean
required
source
string
required
provider
string | null
key_preview
string | null
model_preference
string | null
allow_platform_fallback
boolean
default:true
probe_status
string | null
model_warning
string | null