Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <token>, where <token> is one of:

  • a Bifrost management API key,
  • a dashboard session token issued by POST /api/session/login,
  • base64 of <admin-username>:<admin-password> (legacy equivalent of BasicAuth).

Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs - the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.

Body

application/json

Request to create a new model config

model_name
string
required

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

provider
string

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

scope
enum<string>
default:global

Scope where this limit applies. Defaults to global. project targets a governance project (Enterprise only). The legacy user scope is refused on create; use an access profile instead.

Available options:
global,
virtual_key,
project
scope_id
string

ID of the scope target, for example a virtual key id or a project id. Required when scope is not global.

budgets
object[]

Budget lines for this limit. Each entry must have a unique reset_duration.

rate_limit
object

Rate limit configuration

Response

Model config created successfully

Response containing a created/updated model config

message
string
model_config
object

Model configuration with budget and rate limit settings