Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Virtual model definition

source
string
required
default_params
object
description
string
enabled
boolean
failover
boolean

Failover retries a failed request on the remaining targets. Omitted means enabled; false serves the chosen target only.

old_source
string
params
object

Params are forced on every request through this row (null strips a key); DefaultParams fill in keys the client omitted. Keys use Chat Completions spelling.

reasoning_effort
string

ReasoningEffort forces the reasoning effort sent upstream ("none", "minimal", "low", "medium", "high", "xhigh", or "max"); empty keeps the client's value.

response_header_timeout
integer

ResponseHeaderTimeout overrides HTTP_RESPONSE_HEADER_TIMEOUT, in seconds (1 to 86400), for every upstream attempt. Omitted inherits.

Required range: 1 <= x <= 86400
session_affinity
boolean

SessionAffinity keeps a detected session on the target that served it before. Omitted means enabled; false restores stateless balancing.

slowdown

Slowdown is an extra-time factor from 0.1 to 10; zero disables it.

Available options:
0
strategy
string
strategy_config
object
strategy_plugin
string

StrategyPlugin names the routing-strategy plugin for strategy "plugin"; StrategyConfig holds that plugin's route-scoped settings, validated against its schema (see GET /admin/plugins, route_fields).

target
string

Target is the config file's name for target_model, accepted so a body written after the YAML does not silently become an access policy.

target_model
string
targets
object[]
timeout
integer

Timeout overrides HTTP_TIMEOUT, in seconds (1 to 86400), for every upstream attempt of a request through this row. Omitted inherits.

Required range: 1 <= x <= 86400
user_paths
string[]
Maximum array length: 100
Maximum string length: 1024

Response

OK

created_at
string
default_params
object
description
string
enabled
boolean
failover
boolean
kind
string
managed
boolean
model
string
params
object
provider_name
string
provider_type
string
reasoning_effort
string
resolved_model
string
response_header_timeout
integer

ResponseHeaderTimeout is the per-attempt wait for upstream response headers in seconds; omitted inherits.

Required range: 1 <= x <= 86400
scope_kind
string
session_affinity
boolean
slowdown

Slowdown is an extra-time factor from 0.1 to 10; zero disables it.

Available options:
0
source
string
strategy
string
strategy_config
object
strategy_plugin
string
targets
object[]
timeout
integer

Timeout is the per-attempt upstream timeout in seconds; omitted inherits.

Required range: 1 <= x <= 86400
updated_at
string
user_paths
string[]
valid
boolean