v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Governance

Create model config

Creates a new model configuration with budget and rate limit settings.

post/api/governance/model-configs

Request body

model_namestring required

Name of the model (required). Use * to match all models.

providerstring

Provider name (optional - applies to all providers if not specified)

scope'global' | 'virtual_key' | 'user'

Scope where this limit applies. Defaults to global.

scope_idstring

ID of the scope target (e.g. virtual key ID or user ID). Required when scope is not global.

Response

Model config created successfully

messagestring