Skip to content

API models

Generated from servtuner commit 5b46cdad0e5c.

Type: "read", "runs.write", "tuning.write", "targets.check", "targets.write", "secrets.write", "runs.delete", "logs.read", "users.admin", "events.write", "datasheet.read"

Field Type Required Description
secretRef AdminSecretRef Yes
Field Type Required Description
name string Yes
passwordKey string or null No
tokenKey string or null No
usernameKey string or null No
Field Type Required Description
baseline_rps number or null No Default: null.
burst_factor number No Multiplies the burst the queue must absorb (B_min), for traffic burstier than the run’s (Assumptions). ≥ 1 Default: 1.
capacity_ladder_rps array of CapacityLadderRp or null No Traffic levels of the capacity table; default 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, trimmed to the measured range. Default: null.
expected_pod_lifetime Duration No How long a pod runs between restarts; with a significant memory slope the memory limit allows for this much growth. Default: "24h".
headroom AnalysisHeadroom or null No Default: null.
infra_pricing InfraPricingPolicy or null No Default: null.
limits AnalysisLimits or null No Default: null.
stage_validity StageValidity or null No Default: null.
target_rps number or null No Default: null.
token_pricing TokenPricingPolicy or null No Default: null.
Field Type Required Description
gpu number No ≥ 0; ≤ 1 Default: 0.1.
limit number No ≥ 0; ≤ 2 Default: 0.3.
replicas number No ≥ 0; < 1 Default: 0.2.
request number No ≥ 0; ≤ 2 Default: 0.2.
Field Type Required Description
cpu LimitsPolicy No Default: "follow".
memory LimitsPolicy No Default: "set".
qos Qos No Default: "burstable".
Field Type Required Description
analyzer_version string Yes
capacity CapacityModel Yes
hardware_profile_id string or null No The hardware profile the results are scoped to; matches target-snapshot hardware_profile_id.
quality RunQuality Yes
stages array of StageAggregate Yes

Type: string

Field Type Required Description
action string Yes
at string Yes
auth_method string Yes
detail object Yes
id integer Yes
outcome string Yes
subject string or null Yes
target_id string or null Yes
target_kind string or null Yes
user_id string or null Yes
Field Type Required Description
secretRef SecretKeyRef (runspec) Yes

How a request proved who it is; recorded on sessions, audit rows and created rows.

Type: "none", "session", "forward_header", "run_token"

Local users, or none (the explicit opt-out: nothing is checked).

Type: "local", "none"

What the SPA needs at start-up to pick the setup, login or app screen.

Field Type Required Description
methods array of LoginMethod Yes
mode AuthMode Yes
refused_subject string or null No
setup_required boolean Yes
user UserView or null Yes
Field Type Required Description
min_replicas integer No ≥ 1 Default: 2.
spare boolean No N+1: one replica beyond what the peak needs. Default: false.
zones integer No Replicas are rounded up to a multiple of this. ≥ 1 Default: 1.
Field Type Required Description
region string Yes The region the nodes run in (the Price List API’s regionCode filter), for example us-east-1.

Type: "measured", "fitted", "extrapolated", "assumed"

Field Type Required Description
excerpt array of string Yes
exit_code integer or null No
kind "infeasible", "render_bug", "deploy_defect", "sharing", "unknown" Yes
message string Yes
rule string Yes

POST /managed-targets/{id}/boot-probe: the workload’s mean prompt + generated tokens.

Field Type Required Description
tokens_per_request number Yes > 0

A boot probe poll: the readiness, and the tuningBootResult once the boot has ended.

Field Type Required Description
readiness ReadinessView Yes
result TuningBootResult or null No

A non-negative statistic with its bootstrap confidence interval, in the unit of the property that holds it. Either value, ci_low and ci_high are all present, or they are all absent and insufficient_samples_reason says why (too few samples for the percentile); never both. ci_low <= value <= ci_high is not expressible here and is a servtuner analyze self-check.

Type: BootstrapInterval1 or BootstrapInterval2

Field Type Required Description
ci_high number or null No
ci_low number or null No
insufficient_samples_reason string or null No Present when value and the bounds are omitted because samples is too small.
samples integer Yes Observations the statistic was computed from. ≥ 0
value number Yes ≥ 0
Field Type Required Description
ci_high number or null No
ci_low number or null No
insufficient_samples_reason string Yes Present when value and the bounds are omitted because samples is too small.
samples integer Yes Observations the statistic was computed from. ≥ 0
value number or null No
Field Type Required Description
is_weak_signal boolean Yes
resource BottleneckResource Yes
utilization number Yes How close to its ceiling the resource was at the knee. ≥ 0; ≤ 1

Type: "kv_cache", "gpu_engine_activity", "gpu_util", "cpu", "router_concurrency", "upstream_capacity"

Type: "memory", "utilization"

Field Type Required Description
p50 number Yes ≥ 0
p95 number Yes ≥ 0
p99 number Yes ≥ 0
samples integer Yes ≥ 1

One file of a run’s bundle, as GET /runs/{id}/files lists it.

Field Type Required Description
path string Yes
size_bytes integer Yes

Type: number (> 0)

Field Type Required Description
knee Knee or null No
per_replica PerReplica (analysis) or null No
slo_max SloMaxRps or null No
Field Type Required Description
cost_per_hour number or null No Infrastructure cost when pricing is set.
cpu_request_cores number Yes ≥ 0
gpus integer or null No
is_target_rps boolean Yes The row of analysis.target_rps; its replicas are what the patches use.
memory_request_bytes number Yes ≥ 0
replicas integer Yes ≥ 1
rps number Yes > 0
Field Type Required Description
analyzer_version string Yes
caveats array of Caveat Yes
gpus_per_replica integer or null No
infra_cost InfraCost or null No What a replica costs, which the rows’ cost_per_hour multiplies (capacity_model.json infra_cost).
is_scale_out_verified boolean or null No True only when runs at two or more replica counts showed per-replica RPS within 10%; otherwise linear scale-out is assumed.
per_replica PerReplica (capacity) or null No The recommended requests of one replica: the sum over the workload’s containers.
reason string or null No Why there are no rows.
replica_headroom number or null No h_rep: each replica is planned at rps_per_replica × (1 − h_rep).
rows array of CapacityRow Yes
rps_per_replica number or null No SLO-max RPS of one replica (analysis.json capacity.per_replica).
token_cost TokenCost or null No Token cost per request at the SLO-max stage (capacity_model.json token_cost).
Field Type Required Description
catalog CatalogName Yes
is_collected boolean Yes

Type: "kubernetes", "bifrost", "vllm", "litellm", "dcgm", "extra"

Type: string

Type: "resolve", "connect", "tls", "auth", "model", "generate", "metrics", "gpu_metrics", "workload"

Type: "ok", "warning", "failed"

Type: "ok", "warning", "failed", "skipped"

Field Type Required Description
checked_at UtcTimestamp Yes
checks array of TargetCheck Yes
endpoint string Yes
status CheckStatus Yes
target_type TargetType Yes
Field Type Required Description
analyzer_version string Yes
bucket_seconds integer Yes 1 for runs of at most 10 minutes of stages, else 5, widened to keep at most 2000 buckets. ≥ 1
buckets array of TimeBucket Yes One per bucket from start to the last stage’s end, empty ones included, so the time axis has no gaps.
stages array of StageBand Yes
start UtcTimestamp Yes The first stage’s start; every offset is from here.
Field Type Required Description
is_comparable boolean Yes
issues array of ComparisonIssue Yes
target_type TargetType or null No
workload_hash string or null No
workload_preset PresetRef or null No The workload preset every run named; absent when they named none or different ones.
Field Type Required Description
analyzer_version string Yes
comparability Comparability Yes
configurations array of KnobConfiguration Yes
excluded_runs array of ExcludedRun Yes Runs left out of the comparison, and why.
experiment string or null No The runs’ experiment name, when they all share one.
is_factorial boolean Yes True when every combination of the varied knobs’ values was run. With two or more varied knobs and no factorial design, effects are not claimed to be independent.
objective ObjectiveName Yes The primary objective: the one the recommendation and the Pareto set use.
pareto_configuration_ids array of ParetoConfigurationId or null No Configurations not dominated on (primary objective, p95 TTFT at the reference stage). Absent when either is unavailable for some configuration.
rankings array of ObjectiveRanking Yes One ranking per objective that could be computed for every configuration.
recommendation KnobRecommendation or null No
reference_stage_index integer or null No The highest stage valid in every compared run; the latency side of the Pareto set is read there. Absent when no stage is valid in all of them.
varied_knobs array of VariedKnob Yes Knobs whose values differ between configurations, sorted.

Type: "high", "medium", "low"

Field Type Required Description
code ComparisonIssueCode Yes
message string Yes

Type: "workload_differs", "target_type_differs", "hardware_differs", "arrival_differs", "ladder_differs", "slos_differ", "experiment_differs", "too_few_configurations", "not_factorial", "coverage_incomplete"

Runs lined up by knob and by stage. Every list of values is in runs order. It aligns values and does not rank them: stages are matched by index, which only compares like with like when ladders\_match. Runs that have not been indexed (no analysis.json) are listed in unindexed\_run\_ids.

Field Type Required Description
knobs array of KnobComparison Yes
ladders_match boolean Yes
metrics array of MetricComparison Yes
runs array of RunResource Yes
unindexed_run_ids array of string Yes

Type: "high", "medium", "low"

Field Type Required Description
args array of string or null No
env array of EnvVar or null No
image string Yes
image_digest string or null No The resolved digest, from the pod’s container status.
last_termination_reason string or null No For example OOMKilled.
limits ResourceQuantities or null No
name string Yes
requests ResourceQuantities or null No
restart_count integer or null No
Field Type Required Description
concurrent integer No Conversations in progress at once. ≥ 1 Default: 64.
turns integer Yes ≥ 2; ≤ 100
Field Type Required Description
catalogs array of CatalogCoverage Yes Every expected catalog.
series_with_gaps_percent number Yes ≥ 0; ≤ 100

PUT /targets/{id}/credentials/{slot}: write-only. Exactly one form: - value: a key or token, which servtuner stores in a Secret it manages; - username and password: basic auth (the admin slot only); - external: a Secret you manage, by name.

Field Type Required Description
external ExternalSecret or null No Default: null.
password string or null No Default: null.
username string or null No Default: null.
value string or null No Default: null.

Where a credential lives and how it looks, never its value.

Field Type Required Description
form "token", "basic" or null No
is_set boolean Yes
preview string or null No masked: never the value
secret_name string or null No
set_at string or null No
source "managed", "external" or null No
username string or null No basic auth: not a secret
Field Type Required Description
input_tokens TokenDistribution Yes
output_tokens TokenDistribution Yes
padding_bytes integer No Filler text appended to every prompt, beyond input_tokens, so each request body grows by about this many bytes. For payload-size experiments against routers; the filler counts toward the reported input tokens. ≥ 0 Default: 0.
shared_prefix SharedPrefix or null No
type DatasetType Yes

Type: "synthetic"

Type: "runspec", "price_book", "bifrost_config", "default"

Token prices from the datasheet bench fetches at the start of each run.

Field Type Required Description
source "datasheet" Yes
url string or null No

The price book’s datasheet: an upload (with what it holds) or a URL.

Field Type Required Description
entries integer or null No
priced_entries integer or null No
sha256 string or null No
size_bytes integer or null No
source "upload", "url" Yes
uploaded_at string or null No
uploaded_by string or null No
url string or null No
Field Type Required Description
accelerator string Yes The GPU model, or none.
cpu_cores integer or null No
cpu_model string or null No
driver_version string or null No
gpu_count integer Yes The GPUs the target uses: one replica’s. ≥ 0
gpu_memory_bytes integer or null No
host string Yes The host’s name: the run’s node_instance_type.

What deleting a run would do: nothing is deleted while blocks is non-empty.

Field Type Required Description
analyses array of string Yes
blocks array of string Yes
bundle_files integer Yes
notes array of string Yes
run_id string Yes

The last deploy: the knobs asked for and the container args they rendered.

Field Type Required Description
args array of string Yes
deployed_at string Yes
knobs map of string or integer or number or boolean Yes
scaled_down_at string or null No

POST /managed-targets/{id}/deploy: the vLLM knobs of this configuration.

Field Type Required Description
knobs map of string or integer or number or boolean No
Field Type Required Description
nodes array of DerivationNode Yes
Field Type Required Description
max number or null No
min number or null No
Field Type Required Description
bounds DerivationBounds or null No
default number or null No
derivable_value number or null No What the formula gives, when the value is pinned.
doc string or null No
formula string or null No
id string Yes
inputs array of Input or null No
is_hypothetical boolean or null No
is_pinned boolean or null No
kind Kind2 Yes
label string Yes
rendered string or null No The formula with its inputs’ values substituted, and the result. It parses back to the same value.
source Source (recommendations) or null No
unit string or null No
value number Yes

A Go-style duration string such as “500ms”, “120s” or “1m30s”. The one duration representation used in every schema.

Type: string (pattern ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h))+$)

Type: number (> 0)

Field Type Required Description
options object No Engine-native passthrough (escape hatch). Default: {}.
shards integer or null No loadgen only: the number of bench processes (pods under the Kubernetes runner) that share the load. Each offers rate / shards; shard 0 leads, merges the others’ records and analyses. Absent means 1. Default: null.
type EngineType Yes
version string No “pinned” means the version pinned in the bench image. Default: "pinned".
Field Type Required Description
max_in_flight integer or null No The engine’s cap on requests in flight at once (loadgen). When a target falls behind, in-flight requests pile up to this cap and sends wait for a slot; the analysis tells that apart from a slow client (target_saturated).
name string Yes
version string Yes

Type: "loadgen", "inference-perf", "guidellm"

Field Type Required Description
bench_version string Yes
clock_source string Yes Where timestamps came from, for example ntp or host.
engine EngineInfo Yes
go_version string Yes
http_version HttpVersion or null No HTTP version of the connection to the target; when the TLS relay is used, the connection the relay makes. A client certificate makes Go’s HTTP client use HTTP/1.1, so it is recorded, not assumed.
image_digest string or null No
knobs map of KnobValue No The knob values the target adapter captured, by knob name (for example vllm.max_num_seqs). A knob two workloads disagreed on, or that could not be read, is absent. servtuner analyze reproduces its knob checks from this alone. Default: {}.
namespace string or null No Namespace of the bench pod.
node string or null No
offline boolean or null No servtuner run –offline: no public datasheet fallback and no AWS Price List. Absent means false.
pod string or null No Name of the bench pod; analysis uses it to select the bench container’s series.
shard_pods array of ShardPod or null No The follower shards’ bench pods of a sharded run (engine.shards), in shard order from 1; analysis treats them as bench pods too, so client_bound sees every shard’s CPU.
tls_relay_used boolean Yes
transport HopTransports Yes
workload WorkloadInfo or null No

An environment variable. A redacted one carries no value: a run never stores a secret.

Type: EnvVar1 or EnvVar2

Field Type Required Description
is_redacted false Yes
name string Yes
value string Yes
Field Type Required Description
is_redacted true Yes
name string Yes
Field Type Required Description
count integer Yes ≥ 0
error_class string Yes
Field Type Required Description
message string or null No Default: null.
phase string or null No Current phase while state is running during the load step, for example warmup or stage-2. Default: null.
run_id string Yes
sequence integer Yes Starts at 0 and grows by one per event, so the API can order and de-duplicate. ≥ 0
state ReportedState Yes
step PipelineStep Yes
time UtcTimestamp Yes
Field Type Required Description
reason string Yes
run_id string Yes

One experiment comparison: servtuner compare’s comparison.json, and what it compared.

Field Type Required Description
comparison Comparison Yes
created_at string Yes
experiment string Yes
id string Yes
objective ObjectiveName Yes
run_ids array of string Yes

POST /experiments/{name}/analyze. Without run_ids, every succeeded run of the experiment that has an analysis is compared; without objective, bench picks the default for the target type.

Field Type Required Description
objective ObjectiveName or null No
run_ids array of string or null No

What deleting an experiment would do: its runs, analyses and finished tuning sessions go; scenarios built on its runs go only when the delete asks for them.

Field Type Required Description
analyses integer Yes
blocks array of string Yes
bundle_files integer Yes
name string Yes
notes array of string Yes
runs array of string Yes
scenarios array of ScenarioRefResource Yes
sessions array of string Yes

An experiment’s runs, oldest first, their comparison, and its latest analysis.

Field Type Required Description
comparison ComparisonResource Yes
created_at string Yes
latest_analysis ExperimentAnalysisResource or null No
latest_run_at string or null No
name string Yes
run_count integer Yes
varied_knobs array of string Yes
Field Type Required Description
created_at string Yes
latest_run_at string or null No
name string Yes
run_count integer Yes

A Secret the user manages: its name and the keys that hold the credential.

Field Type Required Description
key string or null No api_key: the key holding the API key Default: null.
name string Yes at most 253 characters
password_key string or null No admin: basic auth password key Default: null.
token_key string or null No admin: the key holding a token Default: null.
username_key string or null No admin: basic auth username key Default: null.
Field Type Required Description
name MetricName Yes
query string Yes
Field Type Required Description
max_gpus integer or null No The most GPUs a Kubernetes target may request.
min_gpus integer or null No The fewest GPUs a Kubernetes target may request (0 for a CPU-only vLLM or the mock).
placements array of Placement Yes at least 1 item

POST /runs/{id}/followup: test one of the run’s knob recommendations.

Field Type Required Description
experiment string or null No The runs’ experiment. Absent: the source run’s, else <run name>-<knob>.
recommendation_id string Yes
repeats integer No ≥ 1; ≤ 10 Default: 3.

Follow-up runs waiting for the change they test (status awaiting_config). Apply patch (or set knob to value by hand), then confirm each run with POST /runs/{id}/confirm-applied to launch it.

Field Type Required Description
knob string Yes
patch string or null No
runs array of RunResource Yes
value string or integer or number or boolean Yes

Type: number (> 0)

The machine’s price per hour as given (a rental, or a figure someone worked out).

Field Type Required Description
kind "given" Yes
usd_per_hour number Yes > 0

Type: "nvlink", "pcie"

One GPU of this model per hour (the model the snapshot records as the accelerator).

Field Type Required Description
usd_per_hour number Yes ≥ 0

Hardware the results are scoped to. Requires the accelerator (or none) and the node instance type or the CPU model; fields that cannot be read are omitted.

Type: HardwareProfile1 or HardwareProfile2

Field Type Required Description
accelerator string Yes GPU model, or none when the workload has no accelerator.
cpu_cores integer or null No
cpu_model string or null No
cuda_version string or null No
driver_version string or null No
gpu_count_per_pod integer or null No
gpu_interconnect GpuInterconnect or null No
gpu_memory_bytes integer or null No
hardware_profile_id string or null No Hash of the other fields.
node_instance_type string Yes The cloud instance type, or local.
Field Type Required Description
accelerator string Yes GPU model, or none when the workload has no accelerator.
cpu_cores integer or null No
cpu_model string Yes
cuda_version string or null No
driver_version string or null No
gpu_count_per_pod integer or null No
gpu_interconnect GpuInterconnect or null No
gpu_memory_bytes integer or null No
hardware_profile_id string or null No Hash of the other fields.
node_instance_type string or null No The cloud instance type, or local.
Field Type Required Description
gpu number Yes ≥ 0
limit number Yes ≥ 0
replicas number Yes ≥ 0; < 1
request number Yes ≥ 0
Field Type Required Description
status string Yes

Type: integer (≥ 0)

Type: array of HistogramCount

Field Type Required Description
api TransportMode or null No
object_store TransportMode or null No
prometheus TransportMode or null No
target TransportMode Yes

POST /hosts and PUT /hosts/{id}.

Field Type Required Description
hardware HostCreate_HostHardware No
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
note string or null No Default: null.
price GivenPrice or OwnedPrice or null No Default: null.
Field Type Required Description
driver_version string or null No Default: null.
memory_bytes integer Yes ≥ 1
model string Yes As nvidia-smi names it: “NVIDIA GeForce RTX 3070”.

What the machine is. source says whether a person typed it or its launcher read it.

Field Type Required Description
cpu_cores integer or null No Default: null.
cpu_model string or null No Default: null.
gpus array of HostCreate_HostGpu No
memory_bytes integer or null No Default: null.
read_at string or null No Default: null.
source "manual", "launcher" No Default: "manual".
Field Type Required Description
driver_version string or null No
memory_bytes integer Yes ≥ 1
model string Yes As nvidia-smi names it: “NVIDIA GeForce RTX 3070”.

What the machine is. source says whether a person typed it or its launcher read it.

Field Type Required Description
cpu_cores integer or null No
cpu_model string or null No
gpus array of HostGpu No
memory_bytes integer or null No
read_at string or null No
source "manual", "launcher" No Default: "manual".

Priced as the host it runs on: the host’s hardware and price per hour.

Field Type Required Description
host_id string Yes at least 26 characters; at most 26 characters
kind "host" Yes
Field Type Required Description
created_at string Yes
hardware HostHardware No
id string Yes
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
note string or null No
price GivenPrice or OwnedPrice or null No
price_basis string or null No
target_ids array of string No
updated_at string Yes
usd_per_hour number or null No

A vLLM on a host outside Kubernetes, run by servtuner launcher there. The launcher’s token and vLLM’s API key are Secrets in the runs namespace, by name only.

Field Type Required Description
auth spec__SecretKeyRef (managed_targets) or null No
base_flags array of string No
endpoint string Yes at most 512 characters; pattern ^http://[^\s]+/v1$
env map of string No
host_id string or null No
launcher_token spec__SecretKeyRef (managed_targets) or null No
launcher_url string Yes at most 512 characters; pattern ^https?://[^/\s]+/?$
metrics TargetMetricsRef Yes
model string Yes at most 256 characters
placement "host" Yes
port integer No ≥ 1; ≤ 65535 Default: 8000.
served_model_name string or null No
Field Type Required Description
name string Yes
target string Yes Target value as Kubernetes prints it.
type string Yes
Field Type Required Description
detail array of ValidationError No

Type: "1.1", "2"

Download the weights from Hugging Face into the model cache (the default).

Field Type Required Description
kind "hub" No Default: "hub".
Field Type Required Description
subject string Yes at most 512 characters
Field Type Required Description
created_at string Yes
last_seen_at string or null Yes
provider string Yes
subject string Yes
Field Type Required Description
analyzer_version string Yes
bucket_seconds integer Yes Seconds per point: 1, widened to keep at most 2000 points. ≥ 1
points array of InFlightPoint Yes
stages array of LittleCheck Yes
start UtcTimestamp Yes The first stage’s start; every offset is from here.
Field Type Required Description
max number Yes ≥ 0
mean number Yes ≥ 0
min number Yes ≥ 0
offset_seconds number Yes ≥ 0
Field Type Required Description
basis string or null No The calculation with its values, for display.
discount number or null No
is_priced boolean Yes
method Method1 or null No gpu: the replica pays for the GPUs it holds (node price ÷ node GPUs, or the GPU model’s price). node_share: it pays for the larger of its share of the node’s allocatable cores and memory.
reason string or null No Why there is no price.
source Source (capacity_model) Yes
unit_cost_reason string or null No Why a priced replica has no cost per request or per output token (no SLO-max, no replica count, no output token rate).
usd_per_1k_requests number or null No A replica’s hour over the requests it serves in an hour at its SLO-max RPS, per thousand (the infra_cost_per_1k_requests objective).
usd_per_1m_output_tokens number or null No The same per million output tokens, from the SLO-max stage’s output token rate per replica.
usd_per_replica_hour number or null No
Field Type Required Description
aws AwsPricing or null No Default: null.
discount number No A multiplier on every resolved price, for Spot, reserved instances or Savings Plans, which are not modelled. > 0; ≤ 1 Default: 1.
source Source No none disables the infrastructure cost objectives; static reads the table below; aws queries the AWS Price List API for the snapshot’s node instance type. Default: "none".
static StaticPriceTable or null No Default: null.

Type: string

Type: "repeats", "bootstrap", "single_sample"

The cert-manager issuer of the target’s own certificate.

Field Type Required Description
group string No Default: "cert-manager.io".
kind "Issuer", "ClusterIssuer" Yes
name string Yes at most 253 characters

Type: "resource", "knob", "replicas", "hpa", "env", "advice"

Type: "measured", "parameter", "derived", "hypothetical"

Field Type Required Description
bottleneck Bottleneck or null No
reason KneeReason Yes
slope_ratio number or null No For latency_slope: how many times faster p95 latency grew than RPS; above 2 marks the knee.
stage_index integer Yes ≥ 0

Type: "latency_slope", "queueing", "preemptions"

Field Type Required Description
knobs array of KnobDescription Yes
other_flags array of OtherFlag Yes Every other spelling vLLM accepts at this version: the flags that are not knobs (JSON and list flags, the ones servtuner sets), with their aliases and off spellings, sorted. With the knobs’ flags it is how a base flag is told from a typo.
vllm_commit string Yes pattern ^[0-9a-f]{40}$
vllm_version string Yes The vLLM release the catalog was read from.
Field Type Required Description
actual string or null No The captured value, rendered as a string; absent when unverified.
declared string Yes The RunSpec value, rendered as a string.
name string Yes
status KnobStatus Yes

One knob across the compared runs: null where a run does not declare it.

Field Type Required Description
differs boolean Yes
name string Yes
values array of string or integer or number or boolean or null Yes
Field Type Required Description
id string Yes c1, c2, … in the order of each configuration’s first run id.
is_pareto boolean Yes
knobs map of KnobValue Yes
objectives array of ObjectiveEstimate Yes
reference_ttft_p95_seconds ObjectiveInterval or null No p95 TTFT at the reference stage, bootstrapped over the pooled records of the configuration’s runs.
run_ids array of RunId Yes at least 1 item
Field Type Required Description
aliases array of string No Default: [].
built_in boolean Yes servtuner labels it and also reads it from a running target’s /server_info; every listed knob can be deployed, captured and tuned.
choices array of any or null No The values vLLM accepts, when it enforces a closed set.
default any or null No vLLM’s argparse default; null when vLLM decides at start-up.
flag string Yes vLLM’s long flag; empty for a field set through –compilation-config.
group string Yes vLLM’s argument group, the config class the field belongs to.
help string Yes vLLM’s own description of the field, as written in its source.
kind KnobKind Yes
label string Yes A short name for people (“Max sequences”), never the flag.
limits KnobLimits or null No
name string Yes The knob’s name: vllm.<vLLM’s field name>. pattern ^vllm\.[a-z0-9_]+$
negative_flags array of string No The spellings that turn a boolean off (–no-x, –disable-x). Default: [].
suggestions array of string or null No Known values vLLM lists without enforcing them.
tuned_as_range boolean Yes A search space may give it as min and max instead of values: the tuning advisors move it (servtuner propose).

Type: "integer", "number", "size", "boolean", "switch", "text", "choice", "json", "list"

Field Type Required Description
ge number or null No
gt number or null No
le number or null No
lt number or null No
Field Type Required Description
confidence ComparisonConfidence Yes
configuration_id string Yes
knobs map of KnobValue Yes Only the varied knobs, at the winner’s values.
objective ObjectiveName Yes
tier Tier (comparison) Yes

Type: "verified", "mismatch", "unverified"

A knob is a string, number or boolean.

Type: string or number or boolean

Field Type Required Description
analyzer_version string Yes
edges_seconds array of EdgesSecond Yes 20 edges per decade from 1 ms to 1000 s. at least 1 item
stages array of StageHistograms Yes
Field Type Required Description
max_seconds number or null No
mean_seconds number or null No
p50_seconds BootstrapInterval Yes
p90_seconds BootstrapInterval Yes
p95_seconds BootstrapInterval Yes
p99_seconds BootstrapInterval Yes

POST /managed-targets/{id}/check-launcher: the host’s launcher, as the api sees it.

Field Type Required Description
message string Yes
status "ok", "unreachable", "refused", "no_token", "error" Yes
vllm_args array of string or null No
vllm_state string or null No

Type: "follow", "set", "omit"

Field Type Required Description
arrival_rps number Yes ≥ 0
end_offset_seconds number Yes ≥ 0
little_error number or null No |mean in flight − λ × mean E2E| ÷ (λ × mean E2E).
mean_e2e_seconds number or null No
mean_in_flight number or null No
stage_index integer Yes ≥ 0
start_offset_seconds number Yes ≥ 0
Field Type Required Description
pacing Pacing No How requests are spaced inside a stage. profile says how stages are generated; pacing says how arrivals are scheduled. constant: evenly spaced at the stage rate. poisson: exponential gaps with the stage rate as mean. linear: the rate ramps from the previous stage’s rate to this stage’s rate across the stage; stage 0 has no previous stage and holds its rate. sine: the rate oscillates around the stage rate; requires sine. Default: "constant".
profile LoadProfile No Default: "stages".
sine SinePacing or null No Parameters of sine pacing; required when pacing is sine. Default: null.
stages array of Stage Yes at least 1 item
warmup Duration No Excluded from summaries, kept in raw data. Default: "30s".

Type: "stages"

How users sign in under auth mode local; the order configured is the chain’s order.

Type: "local", "forward_header"

Field Type Required Description
password string Yes at most 256 characters
username string Yes at most 128 characters

GET /managed-targets/{id}/logs: the end of vLLM’s log, for a person to read.

Field Type Required Description
lines array of string Yes
source string Yes

POST /managed-targets and PUT /managed-targets/{id}.

Field Type Required Description
description string or null No Default: null.
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
namespace string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
spec ManagedTargetCreate_ManagedTargetSpec or ManagedTargetCreate_HostTargetSpec Yes

A vLLM on a host outside Kubernetes, run by servtuner launcher there. The launcher’s token and vLLM’s API key are Secrets in the runs namespace, by name only.

Field Type Required Description
auth ManagedTargetCreate_SecretKeyRef or null No Default: null.
base_flags array of string No
endpoint string Yes at most 512 characters; pattern ^http://[^\s]+/v1$
env map of string No
host_id string or null No Default: null.
launcher_token ManagedTargetCreate_SecretKeyRef or null No Default: null.
launcher_url string Yes at most 512 characters; pattern ^https?://[^/\s]+/?$
metrics ManagedTargetCreate_TargetMetricsRef Yes
model string Yes at most 256 characters
placement "host" Yes
port integer No ≥ 1; ≤ 65535 Default: 8000.
served_model_name string or null No Default: null.

A vLLM on Kubernetes: the image, model and resources the deployer creates, and the flags never tuned.

Field Type Required Description
base_flags array of string No
cpu string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
env map of string No
gpus integer Yes ≥ 0; ≤ 8
hf_token ManagedTargetCreate_SecretKeyRef or null No Default: null.
image string Yes at most 512 characters; pattern ^[a-z0-9][a-z0-9._/:-]*[a-z0-9](:[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?(@sha256:[a-f0-9]{64})?$
memory string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
model string Yes at most 256 characters
model_cache ManagedTargetCreate_ModelCache or null No Default: null.
model_source HubModel or MirrorModel or PvcModel or ManagedTargetCreate_ObjectStoreModel No
node_selector map of string No
placement "kubernetes" No Default: "kubernetes".
served_model_name string or null No Default: null.
shm_size string or null No Default: null.
tolerations array of ManagedTargetCreate_Toleration No
transport PlatformTransport or ManagedTargetCreate_TlsTransport No

The PVC that keeps the weights across restarts (HF_HOME), so a restart downloads nothing.

Field Type Required Description
size string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
storage_class string or null No Default: null.

Stream the weights from an object store someone else filled: vLLM’s Run:ai Model Streamer reads safetensors from s3://, gs:// or az:// straight into GPU memory (–load-format runai_streamer, in the stock vllm-openai image). Without credentials vLLM uses the pod’s own identity (EKS Pod Identity, IRSA, GKE Workload Identity).

Field Type Required Description
credentials ObjectStoreCredentials or null No Default: null.
endpoint string or null No Default: null.
kind "object_store" Yes
uri string Yes at most 1024 characters; pattern ^(s3|gs|az)://[^/\s]+(/\S*)?$

A key of a Secret in the managed namespace, by name only (root rule 4).

Field Type Required Description
key string Yes at most 253 characters
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$

How the host’s vLLM is labelled in Prometheus: its scrape job and the pod label it gives the series (namespace is the target’s own), plus its GPU exporter’s host label, if any.

Field Type Required Description
job string Yes at most 253 characters
node string or null No Default: null.
pod string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$

Server-authenticated TLS with the target’s own certificate: from a cert-manager issuer, or a kubernetes.io/tls Secret only this target uses.

Field Type Required Description
issuer IssuerRef or null No Default: null.
mode "tls" Yes
secret string or null No Default: null.

A pod toleration, as Kubernetes spells it.

Field Type Required Description
effect "NoSchedule", "PreferNoSchedule", "NoExecute" or null No Default: null.
key string or null No Default: null.
operator "Exists", "Equal" No Default: "Equal".
value string or null No Default: null.

A managed target, with the RunSpec target block its runs get.

Field Type Required Description
created_at string Yes
credentials map of CredentialStatus No
deployment DeploymentView or null No
description string or null No
id string Yes
name string Yes
namespace string Yes
run_analysis object or null No
run_labels map of string Yes
run_target Target Yes
session_objectives array of string No
spec ManagedTargetSpec or HostTargetSpec Yes
updated_at string Yes

A vLLM on Kubernetes: the image, model and resources the deployer creates, and the flags never tuned.

Field Type Required Description
base_flags array of string No
cpu string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
env map of string No
gpus integer Yes ≥ 0; ≤ 8
hf_token spec__SecretKeyRef (managed_targets) or null No
image string Yes at most 512 characters; pattern ^[a-z0-9][a-z0-9._/:-]*[a-z0-9](:[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?(@sha256:[a-f0-9]{64})?$
memory string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
model string Yes at most 256 characters
model_cache ModelCache or null No
model_source HubModel or MirrorModel or PvcModel or ObjectStoreModel No
node_selector map of string No
placement "kubernetes" No Default: "kubernetes".
served_model_name string or null No
shm_size string or null No
tolerations array of Toleration No
transport PlatformTransport or TlsTransport No
Field Type Required Description
usd_per_1m_input_tokens number Yes ≥ 0
usd_per_1m_output_tokens number Yes ≥ 0

Token prices as given, for an API no datasheet lists.

Field Type Required Description
source "manual" Yes
usd_per_1m_input_tokens number Yes ≥ 0
usd_per_1m_output_tokens number Yes ≥ 0

Type: "router_metric", "datasheet", "manual"

Type: "gpu", "node_share"

One run_metrics cell across the compared runs: null where a run has no value. stage is a stage index, or run for run-level values such as SLO-max RPS; the names are those of the run_metrics index.

Field Type Required Description
metric string Yes
stage string Yes
stat string Yes
values array of number or null Yes

A lowercase series name: letters, digits and underscores. Used for RunSpec extra queries and bundle series files.

Type: string (pattern ^[a-z0-9_]+$)

Download them from an internal Hugging Face mirror instead (HF_ENDPOINT).

Field Type Required Description
endpoint string Yes at most 512 characters; pattern ^https?://\S+$
kind "mirror" Yes

Type: "slo_max", "target_rps", "unavailable"

Type: string

The PVC that keeps the weights across restarts (HF_HOME), so a restart downloads nothing.

Field Type Required Description
size string Yes pattern ^[0-9]+(\.[0-9]+)?(m|k|M|G|T|P|E|Ki|Mi|Gi|Ti|Pi|Ei)?$
storage_class string or null No
Field Type Required Description
cpu_limit_cores number or null No
cpu_request_cores number Yes ≥ 0
gpus integer or null No
hpa_cpu_utilization_percent number or null No
memory_limit_bytes number or null No
memory_request_bytes number Yes ≥ 0
Field Type Required Description
labels map of string Yes
name string Yes

Priced as the GPUs it holds on a node type from the price book (node price ÷ its GPUs, or the GPU model’s own price when the book has one).

Field Type Required Description
gpu_count integer Yes ≥ 1
gpu_model string or null No
kind "node_type" Yes
node_type string Yes at most 256 characters

A node type (node.kubernetes.io/instance-type) per hour, with what a pod can be given, so bench can price a pod’s share of it.

Field Type Required Description
cores number Yes > 0
gpus integer No ≥ 0 Default: 0.
memory_gib number Yes > 0
usd_per_hour number Yes ≥ 0

Type: "maximize", "minimize"

Field Type Required Description
estimate ObjectiveInterval Yes
objective ObjectiveName Yes

An objective’s value with its 95% interval, or the reason it is unavailable; never both. ci_low and ci_high are absent for single_sample.

Type: ObjectiveInterval1 or ObjectiveInterval2

Field Type Required Description
ci_high number or null No
ci_low number or null No
is_lower_bound boolean No True when some run never failed its SLOs within its ladder, so its SLO-max is the top stage’s rate and the true value may be higher. A lower-bound runner-up cannot be beaten; extend the ladder. Default: false.
is_upper_bound boolean No The same censoring for an objective where less is better, such as a cost per request: the true value may be lower. An upper-bound runner-up cannot be beaten either. Default: false.
method IntervalMethod Yes
samples integer Yes Runs for repeats and single_sample; requests for bootstrap. ≥ 0
unavailable_reason string or null No
value number Yes ≥ 0
Field Type Required Description
ci_high number or null No
ci_low number or null No
is_lower_bound boolean No True when some run never failed its SLOs within its ladder, so its SLO-max is the top stage’s rate and the true value may be higher. A lower-bound runner-up cannot be beaten; extend the ladder. Default: false.
is_upper_bound boolean No The same censoring for an objective where less is better, such as a cost per request: the true value may be lower. An upper-bound runner-up cannot be beaten either. Default: false.
method IntervalMethod or null No
samples integer Yes Runs for repeats and single_sample; requests for bootstrap. ≥ 0
unavailable_reason string Yes
value number or null No

Type: "slo_max_rps", "slo_rps_per_replica", "slo_rps_per_core", "slo_rps_per_gpu", "tokens_per_s_per_gpu", "p95_ttft_at_target_rps", "infra_cost_per_1k_requests", "infra_cost_per_1m_output_tokens", "cost_per_1k_requests", "cost_per_1m_output_tokens"

Field Type Required Description
confidence ComparisonConfidence Yes
direction ObjectiveDirection Yes
is_significant boolean Yes
objective ObjectiveName Yes
order array of RankedConfiguration Yes Best first.
reason string Yes
winner_id string or null No Present only when the best configuration’s lead is significant.

A Secret holding the store’s access keys, by key name; never a value.

Field Type Required Description
access_key_id_key string No at most 253 characters Default: "access_key_id".
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
secret_access_key_key string No at most 253 characters Default: "secret_access_key".

Stream the weights from an object store someone else filled: vLLM’s Run:ai Model Streamer reads safetensors from s3://, gs:// or az:// straight into GPU memory (–load-format runai_streamer, in the stock vllm-openai image). Without credentials vLLM uses the pod’s own identity (EKS Pod Identity, IRSA, GKE Workload Identity).

Field Type Required Description
credentials ObjectStoreCredentials or null No
endpoint string or null No
kind "object_store" Yes
uri string Yes at most 1024 characters; pattern ^(s3|gs|az)://[^/\s]+(/\S*)?$
Field Type Required Description
caveats array of Caveat or null No Caveats about the operating point itself, such as an SLO-max that is only the highest stage tested. Every sizing recommendation also carries them, so one read alone keeps its context; a view of the whole document shows them once.
mode Mode Yes
reason string or null No Why the operating point is unavailable, or why target_rps was not used.
rps number or null No Achieved RPS of the operating-point stage.
stage_index integer or null No
target_rps number or null No

Type: string (pattern ^-)

Field Type Required Description
kind OverrideKind Yes
node string Yes
value number Yes

Type: "parameter", "pin", "hypothetical"

Owned hardware: purchase ÷ amortization hours + watts ÷ 1000 × electricity, the same formula as bench’s static GPU price (bench/internal/pricing gpuPrice), for the whole machine.

Field Type Required Description
amortization_hours number Yes > 0
kind "owned" Yes
purchase_usd number Yes > 0
usd_per_kwh number Yes ≥ 0
watts number Yes ≥ 0

Type: "constant", "poisson", "linear", "sine"

Type: "server", "resources"

Field Type Required Description
name string Yes
points array of ServerPoint Yes

Type: "fraction", "requests", "pods", "cores", "bytes", "seconds", "per_second", "tokens_per_second", "watts", "hertz"

Type: string

Field Type Required Description
current_password string Yes at most 256 characters
new_password string Yes at most 256 characters

Type: "resolve", "snapshot", "load", "collect", "normalize", "summarize", "finalize"

Type: "kubernetes", "host"

Field Type Required Description
analyzer_version string Yes
checks array of PlanCheck Yes
derivation Derivation Yes
tiers array of PlanTier Yes
Field Type Required Description
status Status Yes
text string Yes
tier string or null No

POST /plans: a plan request, the runs whose capacity models to plan with, and optionally a payload-size series that only fits m(s).

Field Type Required Description
payload_run_ids array of string No Default: [].
request PlanCreate_PlanRequest Yes
run_ids array of string Yes
Field Type Required Description
availability Availability or null No Default: null.
baseline_rps number or null No Off-peak traffic, for the HPA minimum. Without it, the minimum is the availability floor. Default: null.
burst_factor number No ≥ 1 Default: 1.
overrides array of Override or null No Scenario overrides on the plan’s derivation nodes. Default: null.
peak_rps number Yes > 0
replica_headroom number No ≥ 0; < 1 Default: 0.2.
slos PlanCreate_Slos Yes The SLO to plan for. It need not be the one the runs used: the per-replica capacity is recomputed from the stored curves, interpolating only between measured stages.
workload_hash string or null No Plan only models measured with this request mix; required when the models disagree. Default: null.
Field Type Required Description
e2e_p95 Duration or null No Default: null.
e2e_p99 Duration or null No Default: null.
itl_p95 Duration or null No Default: null.
max_error_rate number or null No Default: null.
ttft_p95 Duration or null No Default: null.
ttft_p99 Duration or null No Default: null.
Field Type Required Description
availability Availability or null No
baseline_rps number or null No Off-peak traffic, for the HPA minimum. Without it, the minimum is the availability floor.
burst_factor number No ≥ 1 Default: 1.
overrides array of Override or null No Scenario overrides on the plan’s derivation nodes.
peak_rps number Yes > 0
replica_headroom number No ≥ 0; < 1 Default: 0.2.
slos Slos (plan_request) Yes The SLO to plan for. It need not be the one the runs used: the per-replica capacity is recomputed from the stored curves, interpolating only between measured stages.
workload_hash string or null No Plan only models measured with this request mix; required when the models disagree.
Field Type Required Description
blocked_reason string or null No
confidence Confidence Yes
hpa Hpa (plan) or null No
is_blocked boolean Yes A guard rail stops this tier; blocked_reason says which and what run would unblock it.
is_interpolated boolean or null No
key string Yes The tier’s prefix in the derivation node ids. pattern ^[A-Za-z][A-Za-z0-9_]*$
limiting_slo string or null No
memory PlanTierMemory or null No
per_replica ModelPerReplica or null No
queue Queue or null No Concurrency per replica at the planned load, from the model’s W (Poisson-based: there is no measured L(t) at this load).
replicas_baseline integer or null No
replicas_peak integer or null No
rps_per_replica number or null No The SLO-max per replica at the requested SLO.
run_id string Yes
scope array of ScopeItem Yes Labels every number of the tier carries: hardware, workload, arrival process, scale-out.
sensitivity array of SensitivityItem or null No Replicas at +25%, +50% and +100% traffic.
target_type TargetType Yes
totals Totals or null No
utilization_at_peak number or null No Planned per-replica load over the per-replica SLO-max: the real headroom.
warnings array of Warning No Default: [].
Field Type Required Description
basis Basis Yes measured: the size the run used. fitted: within the sizes of a payload series. extrapolated: outside them. assumed: one measured size, so k is the 1× to 3× assumption and the values are a range.
bytes_per_in_flight number Yes m at the planned size; the upper end (k = 3×) when assumed. ≥ 0
bytes_per_in_flight_low number or null No The lower end (k = 1×), only when assumed.
payload_bytes number or null No The request size planned for; absent when the run reported no request sizes.
runs array of Run or null No Runs the line m(s) came from.
working_set_bytes number Yes WS_0 + m × (C + B) with the limit headroom; the upper end when assumed. ≥ 0
working_set_bytes_low number or null No

Plain HTTP (the default): the platform is trusted with the hop.

Field Type Required Description
mode "platform" No Default: "platform".
Field Type Required Description
containers array of Container Yes at least 1 item
name string Yes
node string or null No
Field Type Required Description
name string Yes pattern ^[a-z][a-z0-9-]*$
version integer Yes ≥ 1

A preset name and version joined by @, for example chat-short@1.

Type: string (pattern ^[a-z][a-z0-9-]*@[1-9][0-9]*$)

Field Type Required Description
api WorkloadApi No Default: "chat".
conversation Conversation or null No
dataset Dataset Yes

PUT /price-book. static prices from the tables below; aws asks the AWS Price List for the node a run lands on, in aws\_region; none leaves new runs unpriced.

Field Type Required Description
aws_region string or null No Default: null.
datasheet_url string or null No Default: null.
discount number No > 0; ≤ 1 Default: 1.
gpus map of GpuModelPrice No
nodes map of NodeTypePrice No
source "none", "static", "aws" No Default: "none".
Field Type Required Description
aws_region string or null No
datasheet DatasheetView or null No
datasheet_url string or null No
discount number No > 0; ≤ 1 Default: 1.
gpus map of GpuModelPrice No
infra_pricing object or null No
nodes map of NodeTypePrice No
offline boolean No Default: false.
source "none", "static", "aws" No Default: "none".
token_pricing object or null No
updated_at string or null No
updated_by string or null No

Type: number (> 0)

Field Type Required Description
catalogs array of string No Added to the defaults chosen from target.type. Default: [].
extra_queries array of ExtraQuery No Default: [].
optional_catalogs array of string No Collected only if detected. Default: [].
step Duration No Default: "5s".
tls RunSpec_Tls Yes
url string Yes pattern ^https?://

Read them from a claim the operator seeded with a model archive, and never download (HF_HUB_OFFLINE=1). servtuner never deletes the claim.

Field Type Required Description
claim string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
kind "pvc" Yes

Type: "burstable", "guaranteed"

Type: "good", "degraded", "unusable"

Field Type Required Description
code QualityIssueCode Yes
message string Yes

Type: "achieved_rps_low", "send_lag_high", "client_bound", "target_saturated", "target_stalled", "low_resolution", "config_drift", "knob_mismatch", "insufficient_samples", "catalog_missing", "series_gaps", "knob_unverified", "oom_restart", "burst_stage", "stream_batched"

Field Type Required Description
buffer_size integer or null No
concurrency integer Yes ≥ 1
Field Type Required Description
configuration_id string Yes
value number Yes ≥ 0

GET /managed-targets/{id}/readiness: one poll.

Field Type Required Description
check TargetCheckView or null No
failure BootFailureView or null No
reason string Yes
state "pending", "ready", "infeasible", "failed" Yes
Field Type Required Description
caveats array of Caveat Yes
confidence Confidence Yes
current RecommendationValue or null No
derivation_node string or null No The derivation node whose value is recommended.
evidence array of RecommendationEvidence Yes
followup_experiment string or null No A run that would confirm or sharpen the recommendation.
id string Yes Unique in the file and stable across reruns of the same bundle.
is_urgent boolean or null No Act on this first: the evidence shows harm now (for B2, requests dropped or a queue larger than the SLO allows). Absent means not urgent.
max number or null No
min number or null No
recommended RecommendationValue or null Yes
rule string Yes The rule that produced it, for example sizing.cpu_request or B1.
subject Subject Yes What to change: a resource (cpu.request, memory.limit), a target knob (bifrost.concurrency), replicas, an HPA setting, an environment variable, or advice: a finding to act on that is not one setting (recommended is then a short directive, for example ‘scale the upstream’).
target RecommendationTarget Yes
tier Tier (recommendations) Yes
unit string or null No
Field Type Required Description
series string or null No A stored series, <catalog>/<name>, or a chart file.
stage_index integer or null No
text string Yes
Field Type Required Description
analyzer_version string Yes
derivation Derivation Yes One graph for the whole run; recommendations name their node.
operating_point OperatingPoint Yes
policy SizingPolicy Yes
recommendations array of Recommendation Yes
Field Type Required Description
container string or null No
namespace string Yes
role WorkloadRole Yes
target_type TargetType Yes
upstream_index integer or null No

A current or recommended setting: a number in the recommendation’s unit, a string (a quantity or a mode), a boolean, or null when unset.

Type: number or string or boolean or null

Field Type Required Description
name string Yes
value number Yes ≥ 0
Field Type Required Description
desired integer Yes ≥ 0
ready integer Yes ≥ 0

Type: "running", "collecting", "succeeded", "failed"

Type: map of ResourceQuantitiesAdditionalProperty

Type: string

Field Type Required Description
revoked integer Yes

Type: "viewer", "operator", "admin"

Field Type Required Description
gpu_class string Yes A GPU class label such as a100-80gb.
start_rps number Yes Offered RPS of the first ladder stage. > 0

Type: string

GET /run-defaults: what this install fills into a new RunSpec, so New run names it.

Field Type Required Description
image_registry string or null No
infra_pricing object or null No
offline boolean No Default: false.
prometheus object or null No
token_pricing object or null No

A run’s metadata plus the summary from its bundle, once bench has written one.

Field Type Required Description
bundle_key string Yes
bundle_store string Yes
bundle_uri string Yes
created_at string Yes
created_by string or null No
created_by_username string or null No
exit_code integer or null No
experiment string or null No
failure_message string or null No
finished_at string or null No
id string Yes
knobs map of string or integer or number or boolean Yes
labels map of string Yes
model string or null No
name string Yes
phase string or null No
slo_max_rps number or null No
spec_hash string Yes
started_at string or null No
status RunStatus Yes
summary Summary or null No
target_type string Yes
workload_preset string or null No

Type: string

Field Type Required Description
coverage Coverage or null No
grade QualityGrade Yes
is_excluded_from_comparison boolean Yes True when the run must not enter experiment comparisons, for example on a knob_mismatch.
issues array of QualityIssue or null No Run-level issues, as opposed to the stage-level ones in stages.
knobs array of KnobCheck or null No
stages array of StageQuality Yes

Optional fields are absent when unset, like the schemas.

Field Type Required Description
bundle_key string Yes
bundle_store string Yes
bundle_uri string Yes
created_at string Yes
created_by string or null No
created_by_username string or null No
exit_code integer or null No
experiment string or null No
failure_message string or null No
finished_at string or null No
id string Yes
knobs map of string or integer or number or boolean Yes
labels map of string Yes
model string or null No
name string Yes
phase string or null No
slo_max_rps number or null No
spec_hash string Yes
started_at string or null No
status RunStatus Yes
target_type string Yes
workload_preset string or null No
Field Type Required Description
analysis Analysis or null No Default: null.
apiVersion "servtuner.dev/v1" Yes
engine Engine Yes
experiment string or null No Optional grouping of runs that are compared. Default: null.
kind "RunSpec" Yes
knobs map of KnobValue No The variables being compared, keyed like “vllm.max_num_seqs”. Default: {}.
labels map of string No Default: {}.
load Load Yes
name string Yes DNS-label style run name. at most 63 characters; pattern ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
prometheus Prometheus or null No Default: null.
slos Slos or null No Default: null.
storage Storage or null No Default: null.
target RunSpec_Target Yes
workload RunSpec_Workload Yes
workload_preset PresetRef or null No Default: null.
Field Type Required Description
secretRef RunSpec_AdminSecretRef Yes
Field Type Required Description
name string Yes
passwordKey string or null No Default: null.
tokenKey string or null No Default: null.
usernameKey string or null No Default: null.
Field Type Required Description
secretRef SecretKeyRef Yes
Field Type Required Description
input_tokens TokenDistribution Yes
output_tokens TokenDistribution Yes
padding_bytes integer No Filler text appended to every prompt, beyond input_tokens, so each request body grows by about this many bytes. For payload-size experiments against routers; the filler counts toward the reported input tokens. ≥ 0 Default: 0.
shared_prefix SharedPrefix or null No Default: null.
type DatasetType Yes
Field Type Required Description
accelerator string Yes The GPU model, or none.
cpu_cores integer or null No Default: null.
cpu_model string or null No Default: null.
driver_version string or null No Default: null.
gpu_count integer Yes The GPUs the target uses: one replica’s. ≥ 0
gpu_memory_bytes integer or null No Default: null.
host string Yes The host’s name: the run’s node_instance_type.
Field Type Required Description
admin RunSpec_Admin or null No Credential for the target’s config API (for example Bifrost’s /api/config behind auth_config), when it differs from auth. A reference by name; the value is never in the RunSpec. Default: null.
auth RunSpec_Auth or null No Default: null.
endpoint string Yes pattern ^https?://
hardware RunSpec_DeclaredHardware or null No Default: null.
metrics RunSpec_TargetMetrics or null No Default: null.
model string Yes
tls RunSpec_Tls Yes
type TargetType Yes
upstreams array of RunSpec_Upstream No Default: [].
workload WorkloadSelector or null No Default: null.
Field Type Required Description
job string No The scrape job. Default: "servtuner-external".
namespace string Yes
node string or null No The host label its GPU exporter’s series carry, which that scrape job sets to a stable name (deploy/prometheus/servtuner-external.values.yaml): the dcgm catalog selects an off-cluster GPU by it, as it selects a Kubernetes node by name. Default: null.
pod string Yes

Transport security of one connection, discriminated by mode. Required wherever it appears: the mode is never inferred.

Type: TlsMtls or TlsPlatform or RunSpec_TlsServer

Field Type Required Description
caSecretRef SecretRef or null No A Secret whose ca.crt is the private CA that signed the server certificate. Only ca.crt is read. Default: null.
mode "tls" Yes
Field Type Required Description
endpoint string or null No Default: null.
name string Yes
tls RunSpec_Tls Yes
type TargetType or null No What the upstream runs, which picks its adapter. Absent means openai-compatible. Default: null.
workload WorkloadSelector or null No Default: null.
Field Type Required Description
api WorkloadApi No Default: "chat".
conversation Conversation or null No Default: null.
dataset RunSpec_Dataset or null No Default: null.
preset PresetReference or null No A workload preset, name@version (schema/presets). Mutually exclusive with dataset and conversation; an api must match the preset’s. Default: null.
seed integer No Default: 0.
streaming boolean Yes Required, not defaulted: go-jsonschema cannot round-trip an explicit false over a default of true.

Type: "awaiting_config", "pending", "launching", "running", "collecting", "succeeded", "failed", "cancelled"

POST /targets/{id}/check: optionally a one-time key, used for this check only.

Field Type Required Description
api_key string or null No Default: null.
generate boolean No Default: false.

POST /scenarios: save a plan body (request, overrides and runs) under a name.

Field Type Required Description
name string Yes at most 200 characters
note string or null No Default: null.
scenario ScenarioCreate_PlanCreate Yes

POST /plans: a plan request, the runs whose capacity models to plan with, and optionally a payload-size series that only fits m(s).

Field Type Required Description
payload_run_ids array of string No Default: [].
request ScenarioCreate_PlanRequest Yes
run_ids array of string Yes
Field Type Required Description
availability Availability or null No Default: null.
baseline_rps number or null No Off-peak traffic, for the HPA minimum. Without it, the minimum is the availability floor. Default: null.
burst_factor number No ≥ 1 Default: 1.
overrides array of Override or null No Scenario overrides on the plan’s derivation nodes. Default: null.
peak_rps number Yes > 0
replica_headroom number No ≥ 0; < 1 Default: 0.2.
slos ScenarioCreate_Slos Yes The SLO to plan for. It need not be the one the runs used: the per-replica capacity is recomputed from the stored curves, interpolating only between measured stages.
workload_hash string or null No Plan only models measured with this request mix; required when the models disagree. Default: null.
Field Type Required Description
e2e_p95 Duration or null No Default: null.
e2e_p99 Duration or null No Default: null.
itl_p95 Duration or null No Default: null.
max_error_rate number or null No Default: null.
ttft_p95 Duration or null No Default: null.
ttft_p99 Duration or null No Default: null.
Field Type Required Description
id string Yes
name string Yes

A saved scenario. Its plan is recomputed with POST /scenarios/evaluate.

Field Type Required Description
created_at string Yes
id string Yes
name string Yes
note string or null No
scenario PlanCreate Yes

POST /schedules: launch a RunSpec every every\_hours from start\_at (default now).

Field Type Required Description
baseline_run_id string or null No
every_hours number Yes ≥ 1; ≤ 720
is_enabled boolean No Default: true.
name string Yes at most 200 characters
regression_tolerance number No > 0; ≤ 0.5 Default: 0.1.
spec object Yes A RunSpec, checked like a POST /runs body
start_at string or null No

A schedule with its runs, oldest first, and the baseline they are judged against.

Field Type Required Description
baseline_run_id string or null No
baseline_slo_max_rps number or null No
created_at string Yes
effective_baseline_run_id string or null No
every_hours number Yes
id string Yes
is_enabled boolean Yes
last_note string or null No Why the last due slot launched nothing
last_run_id string or null No
name string Yes
next_run_at string Yes
regression_tolerance number Yes
runs array of ScheduledRunResource Yes
spec object Yes
start_at string Yes

One run of a schedule, with its SLO-max against the baseline’s.

Field Type Required Description
change number or null No SLO-max RPS against the baseline’s, as a fraction (-0.2 is 20% lower)
created_at string Yes
run_id string Yes
slo_max_rps number or null No
status RunStatus Yes
verdict Verdict Yes
Field Type Required Description
baseline_run_id string or null No
created_at string Yes
every_hours number Yes
id string Yes
is_enabled boolean Yes
last_note string or null No Why the last due slot launched nothing
last_run_id string or null No
name string Yes
next_run_at string Yes
regression_tolerance number Yes
spec object Yes
start_at string Yes

PATCH /schedules/{id}: only the fields given change; baseline_run_id null clears it.

Field Type Required Description
baseline_run_id string or null No
is_enabled boolean or null No
name string or null No
regression_tolerance number or null No

Type: string

Type: number (> 0)

Field Type Required Description
base TuningKnobSet or null No Knobs set on every configuration and never tuned.
confirm TuningConfirmSpec or null No
knobs array of TuningKnobSpec Yes The tuned knobs.
ladder TuningLadderSpec or null No
min_concurrency number or null No The concurrency the workload preset needs the KV cache to hold: a boot probe whose c_kv is below it drops the configuration. Absent or 0 means no check.
noise_floor number or null No The run-to-run noise as a fraction: a challenger must beat the leader by more than this to take over. Default 0.05.
objective ObjectiveName or null No The objective ranked; default slo_rps_per_gpu.
Field Type Required Description
description string Yes When to start from it, and what it searches.
fits Fits Yes The managed targets it suits: their placement, and for Kubernetes their GPU count.
name string Yes Lower-case words joined by hyphens; the file name starts with it. pattern ^[a-z][a-z0-9-]*$
space SearchSpace Yes
title string Yes A short label for a picker. at most 80 characters
version integer Yes ≥ 1
Field Type Required Description
key string Yes
name string Yes
Field Type Required Description
name string Yes
Field Type Required Description
replicas integer Yes ≥ 1
rps number Yes > 0
traffic_factor number Yes > 0
Field Type Required Description
analyzer_version string Yes
bucket_seconds integer Yes Seconds per point, chosen to keep at most 2000 points over the stages. ≥ 1
panels array of ServerPanel Yes
start UtcTimestamp Yes The first stage’s start; every offset is from here.
Field Type Required Description
definition string or null No What the series means and where it comes from, shown beside the chart.
group PanelGroup Yes
id string Yes
reference_lines array of ReferenceLine or null No
series array of PanelSeries Yes at least 1 item
title string Yes
unit PanelUnit Yes
Field Type Required Description
max number Yes
mean number Yes
min number Yes
offset_seconds number Yes ≥ 0

A key of a Secret in the managed namespace, by name only (root rule 4).

Field Type Required Description
key string Yes at most 253 characters
name string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$
Field Type Required Description
ready_replicas integer Yes The minimum number of replicas ready during the window. ≥ 1
rps_per_gpu number or null No SLO-max RPS divided by total_gpus.
rps_per_replica number Yes SLO-max RPS divided by ready_replicas. ≥ 0
total_gpus integer or null No GPUs across the ready replicas.

Type: "static", "aws"

Field Type Required Description
cpu_request_cores number Yes ≥ 0
memory_request_bytes number Yes ≥ 0
Field Type Required Description
file string or null No
stage_index integer or null No

Type: "diagnostic", "empirical"

Field Type Required Description
current_replicas integer Yes ≥ 0
max_replicas integer Yes ≥ 0
metrics array of HpaMetric or null No
min_replicas integer Yes ≥ 0
name string Yes

Type: "empirical"

Field Type Required Description
e2e_p95 Duration or null No
e2e_p99 Duration or null No
itl_p95 Duration or null No
max_error_rate number or null No
ttft_p95 Duration or null No
ttft_p99 Duration or null No
Field Type Required Description
cpu_utilization_percent number or null No
max_replicas integer Yes ≥ 1
min_replicas integer Yes ≥ 1
Field Type Required Description
key string Yes
name string Yes
Field Type Required Description
e2e_p95 Duration or null No
itl_p95 Duration or null No
max_error_rate number or null No
ttft_p95 Duration or null No

When the session stops even if the search has not converged.

Field Type Required Description
max_hours number Yes > 0; ≤ 72
max_runs integer Yes ≥ 1; ≤ 500

POST /tuning-sessions.

Field Type Required Description
budget SessionBudget Yes
experiment string or null No Default: null.
managed_target_id string Yes
mode "auto", "manual" No Default: "auto".
preset string Yes pattern ^[a-z][a-z0-9-]*@[1-9][0-9]*$
reuse_from array of string No
slos map of string or number Yes
space object Yes
stage_duration string No Default: "90s".
streaming boolean No Default: true.
warmup string No Default: "30s".
Field Type Required Description
boot_results array of object Yes
created_at string Yes
experiment string Yes
finished_at string or null No
history array of object Yes
id string Yes
managed_target_id string Yes
outcome object or null No
proposal object or null No
request SessionCreate Yes
runs_started integer Yes
status "running", "awaiting_approval", "done", "failed", "cancelled" Yes
step object or null No
updated_at string Yes
Field Type Required Description
created_at string Yes
expires_at string Yes
id string Yes
is_current boolean Yes
last_seen_at string Yes
user_agent string or null Yes

The first admin. With local accounts: a username and password; with forward-header auth only, the forwarded subject becomes the admin and both are omitted.

Field Type Required Description
password string or null No
username string or null No

Type: string

Field Type Required Description
groups integer Yes How many different prefixes; each request uses one, chosen by the seed. ≥ 1
tokens integer Yes Length of each shared prefix, in tokens. ≥ 1
Field Type Required Description
amplitude_ratio number Yes Peak deviation from the stage rate as a fraction of it; at most 1 so the rate never goes negative. > 0; ≤ 1
period Duration Yes
Field Type Required Description
cpu_limit LimitsPolicy Yes
headroom Headroom Yes
memory_limit LimitsPolicy Yes
qos Qos Yes
Field Type Required Description
failed_stage_index integer or null No The bracketing stage that failed; absent when there is none.
is_interpolated boolean Yes True when rps lies between the valid stage and the failed one that brackets it; then failed_stage_index is required. failed_stage_index > valid_stage_index is a servtuner analyze self-check.
limiting_slo SloName or null No The SLO that failed at the bracketing stage.
rps number Yes ≥ 0
valid_stage_index integer Yes Highest valid stage where every SLO holds. ≥ 0

Type: "ttft_p95", "e2e_p95", "itl_p95", "max_error_rate"

Field Type Required Description
is_met boolean Yes
observed number or null No The measured value in the same unit; absent when there were too few samples.
slo SloName Yes
threshold number Yes The RunSpec threshold: seconds for the latency SLOs, a ratio for max_error_rate. ≥ 0
Field Type Required Description
e2e_p95 Duration or null No Default: null.
itl_p95 Duration or null No Default: null.
max_error_rate number or null No Default: null.
ttft_p95 Duration or null No Default: null.

Type: "pre", "post"

Type: "none", "static", "aws"

Type: "none", "datasheet", "manual"

POST /specs/validate: servtuner validate’s verdict on a RunSpec (YAML or JSON).

Field Type Required Description
errors array of string Yes
name string or null No
valid boolean Yes
warnings array of string Yes
Field Type Required Description
duration Duration Yes
is_burst boolean or null No A burst probe (Assumptions): kept out of the capacity ladder and exempt from the minimum stage length, it checks the recommended queue (C + B) against a short step above the operating load. Its in-flight peak comes from the client’s records, not Prometheus. Absent means an ordinary stage. Default: null.
rate number Yes Offered requests per second. > 0
Field Type Required Description
achieved_rps number Yes ≥ 0
e2e LatencySummary or null No
errors integer Yes ≥ 0
errors_by_class array of ErrorClassCount or null No
goodput_rps number or null No Requests per second that met every SLO.
input_tokens_per_second number or null No
itl LatencySummary or null No
offered_rps number Yes ≥ 0
output_tokens_per_second number or null No
requests integer Yes ≥ 0
send_lag_max_seconds number or null No
send_lag_p50_seconds number or null No
send_lag_p99_seconds number or null No
slo_results array of SloResult or null No
stage_index integer Yes ≥ 0
total_tokens_per_second number or null No
tpot LatencySummary or null No
ttft LatencySummary or null No
Field Type Required Description
end_offset_seconds number Yes ≥ 0
is_excluded boolean Yes
is_valid boolean Yes
offered_rps number Yes ≥ 0
stage_index integer Yes ≥ 0
start_offset_seconds number Yes ≥ 0
Field Type Required Description
e2e_counts HistogramCounts Yes
itl_counts HistogramCounts or null No
stage_index integer Yes ≥ 0
ttft_counts HistogramCounts or null No
Field Type Required Description
is_client_bound boolean Yes
is_excluded boolean Yes True when the stage is left out of the capacity model.
is_valid boolean Yes A trustworthy stage: achieved RPS, send lag and client_bound are all within thresholds.
issues array of QualityIssue or null No
stage_index integer Yes ≥ 0
Field Type Required Description
achieved_rps number Yes ≥ 0
e2e_p95_seconds number or null No
errors integer Yes ≥ 0
is_client_bound boolean Yes
is_valid boolean Yes A trustworthy stage: achieved RPS, send lag and client_bound are all within thresholds.
offered_rps number Yes ≥ 0
requests integer Yes ≥ 0
send_lag_p99_seconds number or null No
stage_index integer Yes ≥ 0
ttft_p95_seconds number or null No
Field Type Required Description
max_send_lag_p99 Duration No Default: "50ms".
min_achieved_rps_ratio number No > 0; ≤ 1 Default: 0.97.

Either usd_per_hour, or owned hardware: purchase_usd ÷ amortization_hours + watts ÷ 1000 × usd_per_kwh.

Type: StaticGpuPrice1 or StaticGpuPrice2

Field Type Required Description
amortization_hours number or null No Default: null.
purchase_usd number or null No Default: null.
usd_per_hour number Yes ≥ 0
usd_per_kwh number or null No Default: null.
watts number or null No Board power: the GPU’s TDP, since measured power needs DCGM. Default: null.
Field Type Required Description
amortization_hours number Yes > 0
purchase_usd number Yes ≥ 0
usd_per_hour number or null No Default: null.
usd_per_kwh number Yes ≥ 0
watts number Yes Board power: the GPU’s TDP, since measured power needs DCGM. ≥ 0
Field Type Required Description
cores number Yes Allocatable cores. > 0
gpus integer No ≥ 0 Default: 0.
memory_gib number Yes Allocatable memory, GiB. > 0
usd_per_hour number Yes ≥ 0
Field Type Required Description
gpus map of StaticGpuPrice or null No Keyed by the GPU model the snapshot records (hardware_profile.accelerator). Default: null.
nodes map of StaticNodePrice or null No Keyed by node.kubernetes.io/instance-type, or local. Default: null.

Type: "ok", "warning", "violates_measured", "blocked"

Field Type Required Description
store string No Name of the configured bundle store. Default: "default".
Field Type Required Description
kind Kind Yes
name string Yes
Field Type Required Description
max_sustainable_rps number or null No Highest valid stage whose SLOs hold. Omitted when no stage qualifies.
stages array of StageSummary Yes
Field Type Required Description
admin Admin or null No Credential for the target’s config API (for example Bifrost’s /api/config behind auth_config), when it differs from auth. A reference by name; the value is never in the RunSpec.
auth Auth or null No
endpoint string Yes pattern ^https?://
hardware DeclaredHardware or null No
metrics TargetMetrics or null No
model string Yes
tls Tls Yes
type TargetType Yes
upstreams array of Upstream No Default: [].
workload WorkloadSelector or null No
Field Type Required Description
duration_seconds number Yes ≥ 0
message string Yes A sentence a user can act on.
name CheckName Yes
status CheckStepStatus Yes

A check-target result and where it ran from.

Field Type Required Description
checked_from string Yes
result CheckTargetResult Yes

POST /targets and PUT /targets/{id}: a RunSpec target block under a name. target must not carry auth or admin: keys are set with PUT /targets/{id}/credentials/{slot}, so this body never holds one.

Field Type Required Description
description string or null No Default: null.
name string Yes at most 63 characters; pattern ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
pricing TargetCreate_TargetPricing or null No Default: null.
target TargetCreate_Target Yes
Field Type Required Description
secretRef TargetCreate_AdminSecretRef Yes
Field Type Required Description
name string Yes
passwordKey string or null No Default: null.
tokenKey string or null No Default: null.
usernameKey string or null No Default: null.
Field Type Required Description
secretRef SecretKeyRef Yes

Token prices from the datasheet bench fetches at the start of each run.

Field Type Required Description
source "datasheet" Yes
url string or null No Default: null.
Field Type Required Description
accelerator string Yes The GPU model, or none.
cpu_cores integer or null No Default: null.
cpu_model string or null No Default: null.
driver_version string or null No Default: null.
gpu_count integer Yes The GPUs the target uses: one replica’s. ≥ 0
gpu_memory_bytes integer or null No Default: null.
host string Yes The host’s name: the run’s node_instance_type.

Priced as the GPUs it holds on a node type from the price book (node price ÷ its GPUs, or the GPU model’s own price when the book has one).

Field Type Required Description
gpu_count integer Yes ≥ 1
gpu_model string or null No Default: null.
kind "node_type" Yes
node_type string Yes at most 256 characters
Field Type Required Description
admin TargetCreate_Admin or null No Credential for the target’s config API (for example Bifrost’s /api/config behind auth_config), when it differs from auth. A reference by name; the value is never in the RunSpec. Default: null.
auth TargetCreate_Auth or null No Default: null.
endpoint string Yes pattern ^https?://
hardware TargetCreate_DeclaredHardware or null No Default: null.
metrics TargetCreate_TargetMetrics or null No Default: null.
model string Yes
tls TargetCreate_Tls Yes
type TargetType Yes
upstreams array of TargetCreate_Upstream No Default: [].
workload WorkloadSelector or null No Default: null.
Field Type Required Description
job string No The scrape job. Default: "servtuner-external".
namespace string Yes
node string or null No The host label its GPU exporter’s series carry, which that scrape job sets to a stable name (deploy/prometheus/servtuner-external.values.yaml): the dcgm catalog selects an off-cluster GPU by it, as it selects a Kubernetes node by name. Default: null.
pod string Yes

A saved target’s prices: either or both.

Field Type Required Description
hourly HostHourly or TargetCreate_NodeTypeHourly or null No Default: null.
token TargetCreate_DatasheetTokens or ManualTokens or null No Default: null.

Transport security of one connection, discriminated by mode. Required wherever it appears: the mode is never inferred.

Type: TlsMtls or TlsPlatform or TargetCreate_TlsServer

Field Type Required Description
caSecretRef SecretRef or null No A Secret whose ca.crt is the private CA that signed the server certificate. Only ca.crt is read. Default: null.
mode "tls" Yes
Field Type Required Description
endpoint string or null No Default: null.
name string Yes
tls TargetCreate_Tls Yes
type TargetType or null No What the upstream runs, which picks its adapter. Absent means openai-compatible. Default: null.
workload WorkloadSelector or null No Default: null.
Field Type Required Description
cache_config map of string or null No vLLM cache_config_info labels.
models array of Model or null No Model ids from /v1/models.
version string or null No As the workload reports it, for example vLLM /version.
Field Type Required Description
job string No The scrape job. Default: "servtuner-external".
namespace string Yes
node string or null No The host label its GPU exporter’s series carry, which that scrape job sets to a stable name (deploy/prometheus/servtuner-external.values.yaml): the dcgm catalog selects an off-cluster GPU by it, as it selects a Kubernetes node by name.
pod string Yes

How the host’s vLLM is labelled in Prometheus: its scrape job and the pod label it gives the series (namespace is the target’s own), plus its GPU exporter’s host label, if any.

Field Type Required Description
job string Yes at most 253 characters
node string or null No
pod string Yes pattern ^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$

A saved target’s prices: either or both.

Field Type Required Description
hourly HostHourly or NodeTypeHourly or null No
token DatasheetTokens or ManualTokens or null No

A saved target. target is what New run copies into a RunSpec.

Field Type Required Description
created_at string Yes
credentials map of CredentialStatus Yes
description string or null No
id string Yes
last_check TargetCheckView or null No
name string Yes
pricing TargetPricing or null No
pricing_problems array of string No
run_analysis object or null No
run_target Target Yes
slots array of string Yes
target Target Yes
type string Yes
updated_at string Yes
Field Type Required Description
captured_at UtcTimestamp Yes
phase SnapshotPhase Yes
workloads array of Workload Yes at least 1 item

Type: "vllm", "litellm", "bifrost", "openai-compatible"

Shown once; the user must change it at their next sign-in.

Field Type Required Description
password string Yes
Field Type Required Description
achieved_rps number Yes ≥ 0
e2e_seconds BucketPercentiles or null No
errors integer Yes ≥ 0
offset_seconds number Yes ≥ 0
output_tokens_per_second number or null No
requests integer Yes Requests sent in the bucket. ≥ 0
send_lag_p99_seconds number or null No
stage_index integer or null No The stage the bucket’s start falls in; absent between stages.
ttft_seconds BucketPercentiles or null No

Transport security of one connection, discriminated by mode. Required wherever it appears: the mode is never inferred.

Type: TlsMtls or TlsPlatform or TlsServer

Field Type Required Description
mode "mtls" Yes
secretRef SecretRef Yes
Field Type Required Description
mode "platform" Yes
Field Type Required Description
caSecretRef SecretRef or null No A Secret whose ca.crt is the private CA that signed the server certificate. Only ca.crt is read.
mode "tls" Yes

Server-authenticated TLS with the target’s own certificate: from a cert-manager issuer, or a kubernetes.io/tls Secret only this target uses.

Field Type Required Description
issuer IssuerRef or null No
mode "tls" Yes
secret string or null No
Field Type Required Description
approximations array of Approximation or null No What the calculation does not model.
datasheet_fetched_at UtcTimestamp or null No When servtuner run fetched the datasheet that priced it (pricing/token.json): the prices are as of then.
datasheet_key string or null No The datasheet entry that priced it.
datasheet_source DatasheetSource or null No Where that datasheet came from: pricing/token.json’s url_basis (price_book is the operator’s).
datasheet_usd_per_1k_requests number or null No servtuner’s calculation, kept as the cross-check when the router’s metric is used.
divergence number or null No |router − datasheet| ÷ router, when both exist; over 0.05 is reported.
is_priced boolean Yes
method Method or null No router_metric: the router’s own cost counter (Bifrost bifrost_cost_total, LiteLLM litellm_spend_metric_total), authoritative; datasheet: servtuner’s own tokens × base prices; manual: servtuner’s own tokens × the RunSpec’s manual prices.
model string Yes The model the requests named (target.model).
reason string or null No
retry_added_usd_per_1k_requests number or null No Router cost minus the cost of the client’s successful requests: what retries and fallbacks added (rules B4 and L3).
stage_index integer or null No
usd_per_1k_requests number or null No
usd_per_1m_output_tokens number or null No
Field Type Required Description
mean number Yes > 0
stddev number No ≥ 0 Default: 0.
Field Type Required Description
from_price_book boolean No Fetch the datasheet the operator supplied in the install’s price book, from the api (GET /runs/{id}/datasheet) with the run’s token. Needs servtuner run –api-url. Not with url. Default: false.
manual ManualTokenPrices or null No Default: null.
source Source5 No Default: "none".
url string or null No The datasheet to fetch. Default: the price book’s (from_price_book), else the Bifrost target’s own framework_config.pricing_url, else https://getbifrost.ai/datasheet, which servtuner run –offline never fetches. The format is LiteLLM’s model-price JSON. Default: null.

A pod toleration, as Kubernetes spells it.

Field Type Required Description
effect "NoSchedule", "PreferNoSchedule", "NoExecute" or null No
key string or null No
operator "Exists", "Equal" No Default: "Equal".
value string or null No
Field Type Required Description
cpu_request_cores number Yes ≥ 0
gpus integer or null No
memory_request_bytes number Yes ≥ 0

Type: "mtls", "platform", "tls"

Type: "feasible", "infeasible"

Field Type Required Description
c_kv number or null No The concurrency the KV cache can hold, from num_gpu_blocks in vllm:cache_config_info; for a feasible boot.
knobs TuningKnobSet Yes The knob set that was booted. servtuner propose rejects an empty one: it would match every configuration.
kv_sizing TuningKvSizing or null No
num_gpu_blocks integer or null No
outcome TuningBootOutcome Yes
reason string or null No Why it did not boot: the last log lines or the exit reason.
vllm_version string or null No vLLM’s version as its /version reported it, for a feasible boot. A tuning session reusing this boot on a host checks it against the version the host’s launcher reports.
Field Type Required Description
repeats integer or null No Repeats of each confirmed configuration. Default 3.
top integer or null No How many configurations get the full ladder and repeats. Default 3.

Type: map of KnobValue

Field Type Required Description
default KnobValue or null No The value of the first run. Absent means vLLM’s own default: the knob is left unset (a structural knob takes its first value).
max number or null No
min number or null No
name string Yes A vLLM knob name.
tier TuningTier Yes
values array of KnobValue or null No The allowed values. Required except for the knobs the advisors move, which may give min and max instead.
Field Type Required Description
bound Bound Yes Which limit sized the cache: utilization when gpu_memory_utilization x total memory was the smaller, memory when the memory free after warmup (less vLLM’s margin) was. Under memory, a higher gpu_memory_utilization gives no more KV cache.
kv_cache_gib number Yes The KV cache vLLM committed. ≥ 0
memory_limit_gib number or null No The free-memory limit before the transient reserve: free after warmup plus committed, less the margin.
requested_gib number Yes gpu_memory_utilization x total memory. ≥ 0
utilization_limit_gib number or null No The gpu_memory_utilization limit before the transient reserve: requested less what vLLM uses besides the cache.
Field Type Required Description
full_factors array of FullFactor or null No Multiples of the leader’s SLO-max: the confirmation ladder.
probe_rps array of ProbeRp or null No The first ladder of a session, in requests per second, before any SLO-max is known.
screen_factors array of ScreenFactor or null No Multiples of the leader’s SLO-max: the screening ladder.

Type: "feasibility", "structural", "scheduler", "fine_tuning"

POST /targets/check: an unsaved target block, as in New run’s YAML.

Field Type Required Description
generate boolean No Default: false.
prometheus UnsavedTargetCheck_Prometheus or null No Default: null.
target UnsavedTargetCheck_Target Yes
Field Type Required Description
secretRef UnsavedTargetCheck_AdminSecretRef Yes
Field Type Required Description
name string Yes
passwordKey string or null No Default: null.
tokenKey string or null No Default: null.
usernameKey string or null No Default: null.
Field Type Required Description
secretRef SecretKeyRef Yes
Field Type Required Description
accelerator string Yes The GPU model, or none.
cpu_cores integer or null No Default: null.
cpu_model string or null No Default: null.
driver_version string or null No Default: null.
gpu_count integer Yes The GPUs the target uses: one replica’s. ≥ 0
gpu_memory_bytes integer or null No Default: null.
host string Yes The host’s name: the run’s node_instance_type.
Field Type Required Description
catalogs array of string No Added to the defaults chosen from target.type. Default: [].
extra_queries array of ExtraQuery No Default: [].
optional_catalogs array of string No Collected only if detected. Default: [].
step Duration No Default: "5s".
tls UnsavedTargetCheck_Tls Yes
url string Yes pattern ^https?://
Field Type Required Description
admin UnsavedTargetCheck_Admin or null No Credential for the target’s config API (for example Bifrost’s /api/config behind auth_config), when it differs from auth. A reference by name; the value is never in the RunSpec. Default: null.
auth UnsavedTargetCheck_Auth or null No Default: null.
endpoint string Yes pattern ^https?://
hardware UnsavedTargetCheck_DeclaredHardware or null No Default: null.
metrics UnsavedTargetCheck_TargetMetrics or null No Default: null.
model string Yes
tls UnsavedTargetCheck_Tls Yes
type TargetType Yes
upstreams array of UnsavedTargetCheck_Upstream No Default: [].
workload WorkloadSelector or null No Default: null.
Field Type Required Description
job string No The scrape job. Default: "servtuner-external".
namespace string Yes
node string or null No The host label its GPU exporter’s series carry, which that scrape job sets to a stable name (deploy/prometheus/servtuner-external.values.yaml): the dcgm catalog selects an off-cluster GPU by it, as it selects a Kubernetes node by name. Default: null.
pod string Yes

Transport security of one connection, discriminated by mode. Required wherever it appears: the mode is never inferred.

Type: TlsMtls or TlsPlatform or UnsavedTargetCheck_TlsServer

Field Type Required Description
caSecretRef SecretRef or null No A Secret whose ca.crt is the private CA that signed the server certificate. Only ca.crt is read. Default: null.
mode "tls" Yes
Field Type Required Description
endpoint string or null No Default: null.
name string Yes
tls UnsavedTargetCheck_Tls Yes
type TargetType or null No What the upstream runs, which picks its adapter. Absent means openai-compatible. Default: null.
workload WorkloadSelector or null No Default: null.
Field Type Required Description
endpoint string or null No
name string Yes
tls Tls Yes
type TargetType or null No What the upstream runs, which picks its adapter. Absent means openai-compatible.
workload WorkloadSelector or null No
Field Type Required Description
created_at string Yes
display_name string or null Yes
email string or null Yes
has_password boolean Yes
id string Yes
identities array of IdentityView Yes
is_disabled boolean Yes
must_change_password boolean Yes
role Role Yes
username string Yes

A local user gets a password they must change at first sign-in; a proxy user gets forwarded subjects instead (or both, for break-glass).

Field Type Required Description
display_name string or null No
email string or null No
password string or null No
role Role Yes
subjects array of string No
username string Yes at most 128 characters
Field Type Required Description
display_name string or null No
email string or null No
is_disabled boolean or null No
role Role or null No
Field Type Required Description
actions array of Action No
auth_method AuthMethod Yes
display_name string or null No
id string or null Yes
must_change_password boolean No Default: false.
role Role or null Yes
username string or null Yes

An RFC 3339 timestamp in UTC: a Z suffix, optional fractional seconds. The one timestamp representation used in every schema. Enforced by the pattern alone, with no format keyword, so every language checks it the same way.

Type: string (pattern ^[0-9]{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01])T([01][0-9]\|2[0-3]):[0-5][0-9]:([0-5][0-9]\|60)(\.[0-9]+)?Z$)

Field Type Required Description
ctx object No
input any No
loc array of string or integer Yes
msg string Yes
type string Yes

Type: string

Type: "pending", "failed", "unmeasured", "baseline", "no_baseline", "steady", "improved", "regressed"

Type: string

Field Type Required Description
hardware_profile HardwareProfile or null No
hpa Hpa (target_snapshot) or null No
nodes array of Node or null No
pods array of Pod Yes
replicas Replicas or null No
role WorkloadRole Yes
target_info TargetInfo or null No
target_type TargetType Yes
upstream_index integer or null No Position in the RunSpec’s target.upstreams; present only when role is upstream.

Type: "chat", "completion", "embeddings"

Field Type Required Description
chars_per_token number or null No Calibrated from usage during warmup.
generator string Yes Name and version of the workload generator.
hash string Yes
Field Type Required Description
description string Yes
engines array of EngineType Yes The engines that can run this workload. bench rejects the preset on any other. at least 1 item
name string Yes Lower-case words joined by hyphens; the file name starts with it. pattern ^[a-z][a-z0-9-]*$
rps_hint array of RpsHint Yes Hand-written starting points per GPU class for the load ladder, not measured capacity. at least 1 item
slos Slos (runspec) Yes Suggested SLOs. The New run view copies them into the RunSpec; bench never applies them implicitly.
version integer Yes ≥ 1
workload PresetWorkload Yes

Type: "target", "upstream"

Field Type Required Description
namespace string Yes
selector map of string Yes