跳到导航

Frontend Configuration Reference

Field reference for the Dynamo Frontend CLI arguments, environment variables, and HTTP endpoints.

This page documents the configuration options for the Dynamo Frontend (python -m dynamo.frontend).

Every CLI argument has a corresponding environment variable. The CLI argument takes precedence; the environment variable is the fallback.

These are the frontend-specific flags. The frontend also parses the shared Dynamo runtime flags (namespace, discovery, planes, parsing) — see Runtime Configuration. For the router cost model and tuning guidance behind the router flags below, see Configuration and Tuning.

Decision APIs

Experimental. --enable-systemone-api (environment variable DYN_ENABLE_SYSTEMONE_API, default false) enables both OpenAI POST /v1/decisions and Jev POST /v1/systemone. Supported causal backends are aggregated, single-rank SGLang and vLLM workers using their qualified serialized scoring profiles. See Decision Models with SGLang for SGLang launch commands and Decision API Reference for wire contracts, usage accounting, and errors.

For a vLLM causal worker, enable --systemone-serial or set DYN_VLLM_SYSTEMONE_SERIAL=true, together with --max-num-seqs=1 and --logprobs-mode=raw_logprobs. The worker opt-in defaults to false; --no-systemone-serial overrides an enabled environment setting. It does not change engine scheduling settings, and incompatible profiles fail worker startup. Without the opt-in, ordinary vLLM workers do not advertise decision capability or change model-discovery checksums for decision support. The frontend flag remains independently required to expose the APIs.

The vLLM profile rejects forward-pass instrumentation enabled by DYN_FORWARDPASS_METRIC_PORT, --fpm-trace, or DYN_FPM_TRACE, including operator-injected settings. Each question generates one internal engine token, so usage.output_tokens equals the question count in either public contract. SGLang’s non-generating profile reports zero output tokens.

The Dynamo Kubernetes operator sets DYN_FORWARDPASS_METRIC_PORT on every worker, and a DynamoGraphDeployment (DGD) cannot unset it. Operator-managed vLLM workers therefore cannot use this decision profile yet. Run the qualified profile outside operator management; operator support requires a separate change to forward-pass instrumentation.

Environment variableDefaultMaximumMeaning
DYN_SYSTEMONE_MAX_INFLIGHT_BRANCHES2564,096Concurrent admitted question branches across requests
DYN_SYSTEMONE_MAX_INPUT_TOKENS65,5361,048,576Cumulative rendered input tokens across all questions in one request
DYN_SYSTEMONE_REQUEST_TIMEOUT_SECS3003,600End-to-end request deadline in seconds

Positive values above a default log a warning. Values above the maximum are clamped with a warning; invalid values fall back to the default. Admission rejects excess work immediately rather than placing it in a frontend queue. Capacity responses use DYN_HTTP_OVERLOAD_STATUS_CODE.

Decision capacity rejections carry Retry-After: 1 and the rate_limit_exceeded error code regardless of the configured HTTP status. OpenAI responses expose this code at error.code; Jev responses expose it at code. An unavailable worker returns server_error, not a capacity rejection. A native worker-abort HTTP 503 can also carry Retry-After, so the status and header alone do not identify capacity exhaustion.

Raising the input-token limit does not raise every execution limit. Model context capacity, input bytes, tokenization work, and the fixed 16 MiB cumulative encoded-text budget remain independent. Each question charges its rendered prompt bytes once for initial encoding, once for round-trip validation, and once per candidate label. For 26 labels, this budget permits approximately 16 MiB / 28 rendered bytes summed across questions, regardless of the configured token limit. Higher-byte-per-token text reaches this budget sooner. Rejections identify the encoded-text budget; they use HTTP 422 for Jev and HTTP 400 for OpenAI.

The protocol ceiling of 255 candidates is not a guarantee that every backend or tokenizer supports that many choices. The vLLM causal profile is limited to 26 candidates using single-letter A–Z labels. Scoring requires distinct single-token labels at the answer position; the effective limit also depends on the tokenizer and rendered prompt. Reduce the candidate count or select another model if label validation fails. Request shape and context checks run before scoring inference.

Question branches in one request share a cache namespace and are pinned to the first branch’s worker. Separate API calls receive different random cache namespaces, so repeated inputs do not reuse another request’s cached prefixes. Trusted tenant-scoped cross-request reuse is not supported by this profile.

HTTP and networking

--http-host
stringDefaults to 0.0.0.0

HTTP listen address: an IPv4 or IPv6 address, with optional brackets around IPv6. 0.0.0.0 accepts IPv4 connections only; on IPv6-only hosts, set ::.

Environment variable: DYN_HTTP_HOST

--http-port
integerDefaults to 8000

HTTP listen port.

Environment variable: DYN_HTTP_PORT

--tls-cert-path
stringDefaults to null

TLS certificate path (PEM). Must be paired with --tls-key-path.

Environment variable: DYN_TLS_CERT_PATH

--tls-key-path
stringDefaults to null

TLS private key path (PEM). Must be paired with --tls-cert-path.

Environment variable: DYN_TLS_KEY_PATH

--tls-client-ca-cert-path
stringDefaults to null

Trusted client CA certificates in PEM format. Enables mutual TLS (mTLS) for the HTTP server: clients must present a certificate signed by a trusted CA. Requires both --tls-cert-path and --tls-key-path.

Environment variable: DYN_TLS_CLIENT_CA_CERT_PATH

HTTP client authentication is configured independently of internal TCP and NATS mTLS. These HTTP options do not configure either internal transport.

For certificate rotation behavior and the HTTP TLS configuration overview, see the TLS reference.

The Rust HTTP server also reads these environment variables, which are not exposed as CLI arguments:

DYN_HTTP_BODY_LIMIT_MB
integerDefaults to 45

Maximum HTTP request body size in MB. This is the client-facing ingress cap. After preprocessing, the frontend sends the worker-bound frame over the request plane. On the default TCP plane that frame is independently limited by DYN_TCP_MAX_MESSAGE_SIZE (32 MiB by default). Inline data: media is forwarded once in multi_modal_data; a serialized frame that still exceeds the TCP cap is rejected with HTTP 400 before the connection is written. Raise DYN_TCP_MAX_MESSAGE_SIZE together with this value when operators need larger inline-media requests, or keep HTTP images as https:// URLs so only a reference crosses the request plane.

See Runtime Configuration for DYN_TCP_MAX_MESSAGE_SIZE.

DYN_HTTP_LISTEN_BACKLOG
integerDefaults to 4096

Listen backlog of the frontend socket, for both plain HTTP and TLS, capped by the kernel at net.core.somaxconn. Raise it when many clients open connections within a few seconds (for example a load client with one connection per session): connections that arrive while the accept queue is full are delayed or, depending on the host’s TCP settings, fail.

DYN_HTTP_GRACEFUL_SHUTDOWN_TIMEOUT_SECS
integerDefaults to 5

Maximum time the Frontend waits for admitted HTTP response bodies and /v1/realtime WebSocket tasks to finish after shutdown begins. New inference requests are rejected while draining.

DYN_HTTP_OVERLOAD_STATUS_CODE
integerDefaults to 529

HTTP status returned for overload and admission-control rejection. Use 503 only for clients that cannot handle 529. Values from 200 through 999 are accepted. Informational values from 100 through 199, invalid values, and out-of-range values fall back to 529. The value is read and cached on first use.

DYN_HTTP_SSE_KEEP_ALIVE_INTERVAL_MS
integerDefaults to 0

Interval in milliseconds between SSE comment frames while a streaming response has no data. Unset, 0, invalid, or unrepresentable values disable keep-alive comments.

DYN_HTTP_PRE_COMMIT_ERROR_PEEK_MS
integerDefaults to 0

Maximum pre-commit wait in milliseconds for streaming chat completions, completions, Responses, and Anthropic messages. Unset or 0 disables the wait; an invalid value also disables it and logs ignoring invalid pre-commit error peek window. Set a positive value, for example 500, to let early backend errors return an HTTP error status before HTTP 200 is committed. The wait can delay the first streamed byte by up to this many milliseconds. The value is read once when the HTTP service is created; set it before startup and restart the frontend to change it.

The wait ends when the first non-annotation backend event arrives or the window expires. Annotation frames, such as the request ID, do not end the wait. The frontend buffers at most 16 of them; a 17th ends the wait early. For how clients see errors after the wait, see Streaming errors.

Streaming errors

By default, the frontend commits a streaming response’s HTTP 200 status immediately, without waiting for a backend event. Enable a bounded pre-commit wait to let early failures return an HTTP error status. Once headers are committed, later failures arrive as error events in the stream, even when the HTTP status is 200. Clients must check these events rather than treating HTTP 200 as successful completion. An error ends the current stream; any retry is a new request.

Image-fetch failures caused by an origin HTTP 403 or 404 return API HTTP 400 before headers are committed. In OpenAI chat-completion and completion streams, late failures carry error code 400 under HTTP 200; other streaming APIs use their own error-event formats. The fixed public message identifies the origin status and gives recovery advice without exposing the origin response or URL credentials:

Message the client receivesWhenWhat to do
Image download returned HTTP 403. Refresh the URL or access permissions, or resend the image data before retrying.The image origin returned 403.Refresh the URL or access permissions, or send the image inline.
Image download returned HTTP 404. Verify the image URL or resend the image data before retrying.The image origin returned 404.Fix the URL, or send the image inline.
Cached image is unavailable on this worker. Resend the request with the image URL or inline image data and the same UUID; UUID-only reuse requires the image to be cached on every worker that processes the image.vLLM only: a UUID-only image is missing from a worker’s processor cache.Resend with the URL or inline data and the same UUID. Resending only the UUID does not restore a missing entry.

An ordinary URL-based image-cache miss is handled internally; the worker fetches the image if needed. In vLLM, UUID-only reuse requires an existing entry on every worker that processes the image. See vLLM multimodal cache reuse.

Router

This section is the canonical CLI and environment-variable reference for the frontend’s embedded router. See Router Guide for deployment modes and Configuration and Tuning for behavior and tuning guidance.

Routing and readiness

--router-mode
stringDefaults to round-robin

Routing strategy. In disaggregated prefill mode, least-loaded uses the synchronous prefill fallback path.

When neither this flag nor --router-policy-config is set, the mode is round-robin. When only a policy file is set, the mode is kv and the file selects each role’s policy. A policy file with any mode other than kv is an error.

Allowed values: round-robin random kv direct least-loaded device-aware-weighted

Environment variable: DYN_ROUTER_MODE

--router-min-initial-workers
integerDefaults to 0

Minimum number of workers required before router startup continues. 0 disables the startup wait.

Environment variable: DYN_ROUTER_MIN_INITIAL_WORKERS

--router-session-affinity-ttl-secs
integerDefaults to null

Enable session affinity with this router-local idle TTL in seconds. Bindings synchronize across router replicas on a best-effort basis. Valid values are 1 through 31536000; omit the option to disable session affinity. See Session affinity.

Environment variable: DYN_ROUTER_SESSION_AFFINITY_TTL_SECS

--router-session-affinity-max-entries
integerDefaults to 65536

Maximum number of sessions each affinity table holds at once; must be at least 1. A frontend keeps one table per worker set it routes to. A request that would start a new session past the limit fails as resource exhausted (HTTP 529 by default) until an idle session expires. Replica sync copies bindings to every frontend, so size the limit for the sessions live across all frontends; sync is best effort, so it is not a hard fleet-wide cap. Has no effect unless --router-session-affinity-ttl-secs is set.

Environment variable: DYN_ROUTER_SESSION_AFFINITY_MAX_ENTRIES

--decode-fallback / --no-decode-fallback
booleanDefaults to false

Fall back to aggregated mode when prefill workers are unavailable.

Environment variable: DYN_DECODE_FALLBACK

KV scoring and cache locality

Configure scoring through default policy parameters in --router-policy-config. Deprecated flags and their environment variables remain accepted until removal in v1.7.

--load-aware / --no-load-aware
booleanDefaults to false

Deprecated. Use policy parameters and explicit tracking settings.

Preset for KV load-aware routing; implies --router-mode kv. Disables device-cache credit, KV event consumption, and remote/shared cache indexers. The worker-selection policy’s CACHE declaration still controls local approximate indexing.

Environment variable: DYN_ROUTER_LOAD_AWARE

--router-kv-overlap-score-credit
floatDefaults to 1.0

Deprecated. Set overlap_score_credit in the default policy parameters.

Credit multiplier for device-local prefix overlap. The value must be finite and nonnegative. Cache setup follows the policy’s input requirements; the default policy skips cache inputs at zero overlap credit. Values greater than 1.0 give device overlap extra credit, but adjusted prefill cost is clamped at zero. See Configuration and Tuning.

Environment variable: DYN_ROUTER_KV_OVERLAP_SCORE_CREDIT

--router-kv-overlap-score-credit-decay
floatDefaults to 0.0

Deprecated. Set overlap_score_credit_decay in the default policy parameters.

Decay rate for device-local overlap credit as active prefill load rises above the least-loaded eligible worker. 0 disables decay; 1 halves the credit at one request-equivalent of excess active prefill load.

Environment variable: DYN_ROUTER_KV_OVERLAP_SCORE_CREDIT_DECAY

--router-prefill-load-scale
floatDefaults to 1.0

Deprecated. Set prefill_load_scale in the default policy parameters.

Scale applied to adjusted prompt-side prefill load after overlap and lower-tier cache-hit credits are subtracted. The minimum is 0.0; there is no hard maximum.

Environment variable: DYN_ROUTER_PREFILL_LOAD_SCALE

--router-host-cache-hit-weight
floatDefaults to 0.75

Credit multiplier from 0.0 through 1.0 for host-pinned, CPU-tier prefix-cache hits.

Environment variable: DYN_ROUTER_HOST_CACHE_HIT_WEIGHT

--router-disk-cache-hit-weight
floatDefaults to 0.25

Credit multiplier from 0.0 through 1.0 for disk or other lower-tier prefix-cache hits.

Environment variable: DYN_ROUTER_DISK_CACHE_HIT_WEIGHT

--shared-cache-multiplier
float

Deprecated. Set shared_cache_multiplier in the default policy parameters. The policy defaults to 0.5 when shared cache is enabled.

Experimental. Credit multiplier from 0.0 through 1.0 for external shared-cache hits.

Environment variable: DYN_SHARED_CACHE_MULTIPLIER

--shared-cache-type
stringDefaults to none

Experimental. External shared KV-cache implementation.

Allowed values: none hicache

Environment variable: DYN_SHARED_CACHE_TYPE

--router-temperature
floatDefaults to 0.0

Deprecated. Set router_temperature in the default policy parameters.

Softmax temperature for normalized worker sampling. 0 selects the lowest-cost worker deterministically; higher values add randomness.

Environment variable: DYN_ROUTER_TEMPERATURE

KV state and indexers

--router-kv-events / --no-router-kv-events
booleanDefaults to true

Consume KV cache state events from workers. Disable this option to predict cache state from routing decisions instead.

Environment variable: DYN_ROUTER_USE_KV_EVENTS

--router-ttl-secs
floatDefaults to 120.0

Block TTL in seconds for prediction-based routing. Used only with --no-router-kv-events.

Environment variable: DYN_ROUTER_TTL_SECS

--router-predicted-ttl-secs
floatDefaults to null

Enable a local predict-on-route side indexer with this TTL in seconds. This option requires KV events and is independent of --router-ttl-secs, which configures pure approximate mode.

Environment variable: DYN_ROUTER_PREDICTED_TTL_SECS

--router-event-threads
integerDefaults to 4

KV indexer worker threads. Values greater than 1 use the concurrent radix tree, including with --no-router-kv-events.

Environment variable: DYN_ROUTER_EVENT_THREADS

--use-remote-indexer / --no-use-remote-indexer
booleanDefaults to false

Experimental. Query a remote KV indexer served by a worker component instead of maintaining a local primary indexer.

Environment variable: DYN_USE_REMOTE_INDEXER

--serve-indexer / --no-serve-indexer
booleanDefaults to false

Serve this frontend’s local KV indexers over the request plane. Requires --router-mode kv and is mutually exclusive with --use-remote-indexer.

Environment variable: DYN_SERVE_INDEXER

--router-replica-sync / --no-router-replica-sync
booleanDefaults to false

Enable best-effort active-sequence synchronization through the Runtime event plane.

Environment variable: DYN_ROUTER_REPLICA_SYNC

--router-tracking-hash
stringDefaults to public-xxh3-v1

Hash function for router-derived active-sequence identities. keyed-xxh3-v1 is experimental and requires both a tracking key file and key ID.

Allowed values: public-xxh3-v1 keyed-xxh3-v1

Environment variable: DYN_ROUTER_TRACKING_HASH

--router-tracking-key-file
stringDefaults to null

File containing the provider tracking key. Keyed tracking requires exactly 32 raw bytes.

Environment variable: DYN_ROUTER_TRACKING_KEY_FILE

--router-tracking-key-id
stringDefaults to null

Nonempty provider-managed key epoch identifier required for keyed tracking.

Environment variable: DYN_ROUTER_TRACKING_KEY_ID

Active load and queueing

--router-track-active-blocks / --no-router-track-active-blocks
booleanDefaults to true

Track blocks used by in-progress requests for load balancing.

Environment variable: DYN_ROUTER_TRACK_ACTIVE_BLOCKS

--router-assume-kv-reuse / --no-router-assume-kv-reuse
booleanDefaults to true

Assume KV cache reuse when tracking active blocks.

Environment variable: DYN_ROUTER_ASSUME_KV_REUSE

--router-track-output-blocks / --no-router-track-output-blocks
booleanDefaults to false

Track output blocks during generation. With nvext.agent_hints.osl, fractional decay applies to output blocks and the structurally exclusive prompt suffix; shared prompt blocks retain full weight.

Environment variable: DYN_ROUTER_TRACK_OUTPUT_BLOCKS

--router-decode-active-request-weight
floatDefaults to 0.0

Deprecated. Set decode_active_request_weight in the default policy parameters.

Experimental. Finite, nonnegative block-equivalent decode cost added for each active request on a candidate worker. Tune this value only when decode step latency depends materially on active batch size.

Environment variable: DYN_ROUTER_DECODE_ACTIVE_REQUEST_WEIGHT

--router-track-prefill-tokens / --no-router-track-prefill-tokens
booleanDefaults to true

Track prompt-side prefill tokens in worker load accounting.

Environment variable: DYN_ROUTER_TRACK_PREFILL_TOKENS

--router-prefill-load-model
stringDefaults to none

Prompt-side load model. none keeps static prompt load; ais decays the oldest active prefill request using an AIS prediction. See AIS prefill load model.

Allowed values: none ais

Environment variable: DYN_ROUTER_PREFILL_LOAD_MODEL

--router-queue-threshold
floatDefaults to null

Deprecated; removal in v1.7. Set policy_classes[].prefill_busy_threshold_frac in --router-policy-config.

Queue threshold fraction of prefill capacity. Setting a nonnegative numeric value enables queueing; priority hints affect only requests waiting in this queue.

Environment variable: DYN_ROUTER_QUEUE_THRESHOLD

--router-queue-policy
stringDefaults to fcfs

Deprecated; removal in v1.7. Set policy_classes[].queue_policy in --router-policy-config.

Queue scheduling policy. fcfs optimizes tail Time To First Token (TTFT); wspt optimizes average TTFT.

Allowed values: fcfs wspt

Environment variable: DYN_ROUTER_QUEUE_POLICY

--router-policy-config
stringDefaults to null

Startup-only YAML for shared router settings, policy-class queues, and per-role worker-selection policies. The file selects each role’s policy, so pass it without --router-mode; any --router-mode other than kv alongside it is an error. When omitted, --router-queue-threshold and --router-queue-policy define one synthetic policy class. Queueing remains disabled until a threshold is configured. See Shared Router Settings, Policy-class queues and Write Custom Routing Strategies.

Environment variable: DYN_ROUTER_POLICY_CONFIG

--router-prefill-policy
stringDefaults to null

Deprecated; removal in v1.7. Set worker_selection.prefill in --router-policy-config.

Worker-selection policy type for disaggregated prefill workers in the current router process, run with its default parameters. This option overrides worker_selection.prefill from --router-policy-config. It is not included in worker model cards. Set it to default to use Dynamo’s built-in worker selector.

Environment variable: DYN_ROUTER_PREFILL_POLICY

--router-decode-policy
stringDefaults to null

Deprecated; removal in v1.7. Set worker_selection.decode in --router-policy-config.

Worker-selection policy type for decode workers in the current router process, run with its default parameters. This option overrides worker_selection.decode from --router-policy-config. It is not included in worker model cards. Set it to default to use Dynamo’s built-in worker selector. Configure an aggregated pool with worker_selection.aggregated or DYN_ROUTER_WORKER_SELECTION_POLICY.

Environment variable: DYN_ROUTER_DECODE_POLICY

AIS prefill load model

These options apply only when --router-mode kv is combined with --router-prefill-load-model ais.

When enabled, the frontend’s embedded KV router predicts one expected prefill duration per admitted request, using the selected worker’s overlap-derived cached prefix, then decays only the oldest active prefill request on each worker for prompt-side load accounting.

--ais-perf-model
JSON/YAML file or inline JSONDefaults to null

AIS perf model that the router predicts prefill durations with. Available since v1.8. The value is one perf model config, or a list of configs with one worker_type each. Write it as a path to a YAML or JSON file, or as inline JSON (text that starts with { or [):

--ais-perf-model perf-model.yaml
--ais-perf-model '{"model": "Qwen/Qwen3-32B", "system": "h200_sxm", "backend": "vllm", "worker_type": "aggregated"}'

The router takes the prefill config or the aggregated config of the value. A relative file path starts at the working directory. Relative paths inside a file start at the folder of that file. For the keys of a config, see Unified perf-model input in the AISimulate documentation.

The flag without --router-prefill-load-model ais is an error: --ais-perf-model requires --router-prefill-load-model=ais. The environment variable alone is ignored when the load model is not ais. --router-prefill-load-model ais without an AIS input is an error: --router-prefill-load-model=ais requires an AIS perf model: set --ais-perf-model or DYN_AIS_PERF_MODEL.

Environment variable: DYN_AIS_PERF_MODEL

--router-prefill-load-worker-type
stringDefaults to null

Worker type whose config the router takes from --ais-perf-model. Available since v1.8. Set it when the value is one config without worker_type, or a list with both a prefill and an aggregated config. Like --ais-perf-model, the flag is an error without --router-prefill-load-model ais, and the environment variable alone is ignored then.

Allowed values: prefill aggregated

Environment variable: DYN_ROUTER_PREFILL_LOAD_WORKER_TYPE

The inputs below are deprecated. They still work and print one warning that names the inputs in use, for example --ais-backend, --ais-system and --ais-model-path are deprecated and will be removed in v1.9; use --ais-perf-model. A flat flag is named with the spelling that was typed, --ais- or --aic-, and a value from the environment is named by its variable. A deprecated input together with --ais-perf-model or DYN_AIS_PERF_MODEL is an error, for example --ais-perf-model cannot be combined with --ais-backend.

The --aic-* spellings of the flat flags are deprecated with them. --ais-nextn is deprecated in the same way: write nextn in the config. --ais-nextn-accept-rates and --ais-mtp-seed are not deprecated and can be combined with --ais-perf-model.

--ais-perf-config
JSON object or JSON/YAML fileDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Complete AISimulate ForwardPassPerfModelConfig, including immutable worker role, data roots, selection policy and nested estimator controls. Defaults to estimation_mode: auto and fallback_policy: deny. Do not combine this input with flat AIS identity flags. Cold regression is rejected by Router and Mocker.

Environment variable: DYN_AIS_PERF_CONFIG

--ais-backend
stringDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Backend family to model in AIS, for example vllm or sglang.

Environment variable: DYN_AIS_BACKEND

--ais-system
stringDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

AIS hardware/system identifier, for example h200_sxm.

Environment variable: DYN_AIS_SYSTEM

--ais-model-path
stringDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Model path or model identifier used for AIS perf lookup.

Environment variable: DYN_AIS_MODEL_PATH

--ais-backend-version
stringDefaults to backend-specificDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Pinned AIS database version. If omitted, Dynamo uses the backend default.

Environment variable: DYN_AIS_BACKEND_VERSION

--ais-tp-size
integerDefaults to 1Deprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Tensor-parallel size to model in AIS.

Environment variable: DYN_AIS_TP_SIZE

--ais-moe-tp-size
integerDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

MoE tensor-parallel size for models that require AIS MoE parallelism.

Environment variable: DYN_AIS_MOE_TP_SIZE

--ais-moe-ep-size
integerDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

MoE expert-parallel size for models that require AIS MoE parallelism.

Environment variable: DYN_AIS_MOE_EP_SIZE

--ais-attention-dp-size
integerDefaults to nullDeprecated

Deprecated. Use --ais-perf-model. Removed in v1.9.

Attention data-parallel size for models that require AIS MoE parallelism.

Environment variable: DYN_AIS_ATTENTION_DP_SIZE

With the flat flags, MoE models require ais_tp_size * ais_attention_dp_size == ais_moe_tp_size * ais_moe_ep_size. For Kimi-style TP-only MoE runs, set --ais-moe-tp-size to the same value as --ais-tp-size, with --ais-moe-ep-size 1 and --ais-attention-dp-size 1.

Fault tolerance

--migration-limit
integerDefaults to 0

Maximum replacement worker attempts per request. 0 disables migration.

For /v1/realtime, this is a lifetime budget for one client WebSocket. Recovery is experimental and supports acknowledged transcription sessions with PCM input, audio.input.turn_detection: null, and explicit client commits. The frontend replays unfinished audio to a compatible warm replica in the original worker group while keeping the client connection open. Completed turns are not replayed. Other realtime modes, server-side voice activity detection, and frontend failure are outside this scope.

Each recovery has a five-second deadline covering connection, session acknowledgement, and replay submission. Normal transcription completion has no recovery deadline. A subsequent session update, unsupported event, application error, or retention limit disables further recovery for that socket. Retention is bounded to 16 MiB of accounted session, event, and transcript data and 4,096 events per eligible socket. Exceeding a limit leaves a healthy stream working. Replayed deltas that differ from text already delivered terminate the session with an error; final transcripts may still revise interim text. Recovery requires another warm worker and adds inference work and an output gap.

Environment variable: DYN_MIGRATION_LIMIT

--migration-max-seq-len
integerDefaults to null

Maximum prompt-plus-output sequence length that remains eligible for migration. When a request strictly exceeds the limit, migration and token tracking stop for that request. Must be from 1 through 4294967295. Unset means no sequence-length limit.

This token limit does not control realtime audio retention.

Environment variable: DYN_MIGRATION_MAX_SEQ_LEN

--active-decode-blocks-threshold
floatDefaults to null

KV cache utilization fraction from 0.0 through 1.0. A numeric value independently enables decode-block busy rejection. Decode-block telemetry requires --router-mode kv; use --router-track-output-blocks when generated tokens should contribute to the observed load.

Environment variable: DYN_ACTIVE_DECODE_BLOCKS_THRESHOLD

--active-prefill-tokens-threshold
integerDefaults to null

Deprecated; will be removed in v1.7. Use --active-prefill-tokens-threshold-frac.

Absolute active-prefill-token threshold. A numeric value greater than or equal to 0 independently enables this check. Uses OR logic with the fractional prefill threshold.

Environment variable: DYN_ACTIVE_PREFILL_TOKENS_THRESHOLD

--active-prefill-tokens-threshold-frac
floatDefaults to null

Non-negative fraction of max_num_batched_tokens used as the active-prefill-token threshold. A numeric value independently enables this check. Uses OR logic with the absolute prefill threshold.

Environment variable: DYN_ACTIVE_PREFILL_TOKENS_THRESHOLD_FRAC

For guidance on choosing thresholds, see Request Rejection and Request Migration.

Model discovery

--namespace
stringDefaults to null

Exact namespace for model discovery scoping.

Environment variable: DYN_NAMESPACE

--namespace-prefix
stringDefaults to null

Namespace prefix for discovery (for example, ns matches ns, ns-abc123). Takes precedence over --namespace.

Environment variable: DYN_NAMESPACE_PREFIX

--model-name
stringDefaults to null

Override model name string.

Environment variable: DYN_MODEL_NAME

--model-path
stringDefaults to null

Path to a local model directory (for private/custom models).

Environment variable: DYN_MODEL_PATH

--kv-cache-block-size
integerDefaults to null

KV cache block size override.

Environment variable: DYN_KV_CACHE_BLOCK_SIZE

Infrastructure

--discovery-backend
stringDefaults to etcd

Service discovery backend.

Allowed values: kubernetes etcd file mem

Environment variable: DYN_DISCOVERY_BACKEND

--request-plane
stringDefaults to tcp

Request distribution transport. tcp is the fastest.

Allowed values: tcp nats

Environment variable: DYN_REQUEST_PLANE

--event-plane
stringDefaults to zmq

Event publishing transport. ZMQ is the default for every discovery backend, including etcd and kubernetes, when neither --event-plane nor DYN_EVENT_PLANE is set. Set --event-plane nats or DYN_EVENT_PLANE=nats to use NATS instead.

Allowed values: nats zmq

Environment variable: DYN_EVENT_PLANE

KServe gRPC

--kserve-grpc-server / --no-kserve-grpc-server
booleanDefaults to false

Start the KServe gRPC v2 server.

Environment variable: DYN_KSERVE_GRPC_SERVER

--grpc-metrics-port
integerDefaults to 8788

HTTP metrics port for the gRPC service.

Environment variable: DYN_GRPC_METRICS_PORT

The gRPC server also supports optional HTTP/2 flow-control tuning via environment variables:

DYN_GRPC_INITIAL_CONNECTION_WINDOW_SIZE
integerDefaults to 65536

HTTP/2 connection-level flow control window size in bytes. Default is the tonic default (64 KB).

DYN_GRPC_INITIAL_STREAM_WINDOW_SIZE
integerDefaults to 65536

HTTP/2 per-stream flow control window size in bytes. Default is the tonic default (64 KB).

See the KServe gRPC Frontend page for KServe message formats, backend registration, and gRPC tuning examples.

Monitoring

--metrics-prefix
stringDefaults to dynamo_frontend

Prefix for frontend Prometheus metrics.

Environment variable: DYN_METRICS_PREFIX

--dump-config-to
stringDefaults to null

Dump the resolved config to a file path.

Environment variable: DYN_DUMP_CONFIG_TO

Histogram buckets

Most frontend latency and size histograms use log-spaced buckets, rounded to two significant figures, always starting with a 0 edge. Each histogram is tuned by three environment variables that share a prefix: _MIN and _MAX bound the range, and _COUNT is the total number of bucket edges including that leading 0, so COUNT - 1 edges are spread across the range. Every edge, including the top one, is rounded to two significant figures, so the highest exported edge is MAX rounded rather than MAX itself. These variables have no CLI equivalent, and the frontend reads them once while building its metrics, so changing one requires a restart.

HistogramVariable prefixMinMaxCountTop le
dynamo_frontend_request_duration_secondsDYN_METRICS_REQUEST_DURATION1.0512.010510
dynamo_frontend_input_sequence_tokensDYN_METRICS_INPUT_SEQUENCE50.0128000.012130000
dynamo_frontend_output_sequence_tokensDYN_METRICS_OUTPUT_SEQUENCE50.032000.01032000
dynamo_frontend_time_to_first_token_secondsDYN_METRICS_TTFT0.001480.018480
dynamo_frontend_inter_token_latency_secondsDYN_METRICS_ITL0.00180.02080
dynamo_frontend_embedding_latency_secondsDYN_METRICS_EMBEDDING_LATENCY0.00110.01410

For example, to raise the output sequence ceiling from 32k tokens to 128k:

export DYN_METRICS_OUTPUT_SEQUENCE_MAX=131072
export DYN_METRICS_OUTPUT_SEQUENCE_COUNT=12

Rounding can move the top edge either way, so pick a MAX that is already two significant figures if you need an exact ceiling. Prometheus buckets are inclusive, so MAX=123 exports le=120 and only observations greater than 120 and up to 123 fall into +Inf — a value of exactly 120 still lands in the le=120 bucket. MAX=131072 exports le=130000. Two of the defaults above are affected: request duration is set to 512 but exports 510, and input sequence is set to 128000 but exports 130000.

dynamo_frontend_cached_tokens shares the input sequence buckets, so DYN_METRICS_INPUT_SEQUENCE_* changes both histograms.

Set DYN_METRICS_ITL_BUCKETS to an explicit, comma-separated list of ITL boundaries in seconds. The list must contain 1 to 512 finite, non-negative, strictly increasing values and be at most 16,384 bytes long. Boundaries are used as supplied, without logarithmic spacing or rounding.

For example, to use explicit boundaries for an SGLang deployment:

export DYN_METRICS_ITL_BUCKETS=0.002,0.004,0.006,0.008,0.010,0.015,0.020,0.025,0.030,0.035,0.040,0.060,0.080,0.100,0.200,0.400,0.600,0.800,1.000,2.000,4.000,6.000,8.000

The explicit list takes precedence over DYN_METRICS_ITL_MIN, DYN_METRICS_ITL_MAX, and DYN_METRICS_ITL_COUNT, including their deprecated names. If the list is invalid, the frontend warns and uses the default log-spaced ITL boundaries, ignoring the older settings. When DYN_METRICS_ITL_BUCKETS is unset, the existing log-spaced configuration and defaults remain unchanged, including the 80-second upper boundary.

Matching frontend and backend bucket boundaries reduces differences in quantile interpolation. It does not make their ITL measurement boundaries or observed samples identical.

A histogram’s configuration is validated as a set: MIN must be above zero, below MAX, and COUNT must be between 1 and 512. If any part fails, the frontend warns and reverts all three values for that histogram together — setting DYN_METRICS_ITL_MIN=100 against the default MAX of 80.0 also discards a perfectly valid DYN_METRICS_ITL_COUNT=20.

A value that cannot be parsed at all is handled per variable, not as a set: it warns, that one variable falls back to its default, and the others still apply.

Use COUNT of at least 2. COUNT=1 passes validation but produces the leading 0 edge and nothing else, which ignores MIN and MAX and puts every positive observation in +Inf; only a zero-valued observation is counted, in the le=0 bucket. Because rounding to two significant figures can collapse neighboring edges, a high COUNT over a narrow range also yields fewer buckets than requested; the frontend warns when that removes more than a tenth of them.

Bucket edges appear directly in the le label, which is the only reliable way to confirm a setting took effect. These histograms are labeled by model, so a series exists only after a request has populated it — on a freshly restarted frontend the command below prints nothing, which means “no data yet”, not “the setting was ignored”. Send a request first:

curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"<model>","messages":[{"role":"user","content":"hi"}],"max_tokens":8}' > /dev/null
curl -s localhost:8000/metrics | grep dynamo_frontend_inter_token_latency_seconds_bucket

Changing any of these values makes new data non-comparable with data already scraped. histogram_quantile still returns a number when a query spans two different le layouts, but aggregating incompatible bucket layouts yields misleading quantiles rather than an error, so dashboards show a discontinuity at the restart that is easy to misread as a real latency change. Bucket count also drives cardinality: each edge is a separate series per value of the model label.

From v0.8.0 until this release these variables were read under a doubled prefix, as in DYN_HISTOGRAM_DYN_METRICS_ITL_MAX, so the names in the table above had no effect on those versions. The doubled names still work but now log a deprecation warning, and support for them will be removed in a future release. Rename them to the forms above. Configurations written against v0.7.1 or earlier work again without change.

Tokenizer

--tokenizer
stringDefaults to default

Tokenizer implementation. default uses HuggingFace; fastokens uses the high-performance hybrid encoder; and basetenkenizer uses Baseten Tokenizer for native encoding and decoding. With --dyn-chat-processor sglang, fastokens also applies to the SGLang chat processor (needs the fastokens Python package) and basetenkenizer uses HuggingFace there. See Tokenizer.

Allowed values: default fastokens basetenkenizer

Environment variable: DYN_TOKENIZER

--tokenizer-fallback / --no-tokenizer-fallback
booleanDefaults to true

Fall back to HuggingFace when fastokens or basetenkenizer cannot load the model tokenizer. Use --no-tokenizer-fallback to fail model initialization instead. In dynamic mode, discovery retries the load while the frontend continues running.

Automatic tokenizer fallback is deprecated and will be disabled by default in a future release. Set --no-tokenizer-fallback to adopt the future behavior now.

Environment variable: DYN_TOKENIZER_FALLBACK

Experimental

Python route extensions

--frontend-route-extension
stringDefaults to []

Load a trusted HTTP route provider by a name registered in the dynamo.frontend.routes entry-point group or by an importable module:function path. Repeat the option to load multiple providers. Providers can add static-path routes but cannot override built-in routes; invalid or duplicate routes fail startup. Extensions apply only to the HTTP frontend. See Python Route Extensions for a packaged and direct-load example.

Environment variable: DYN_FRONTEND_ROUTE_EXTENSIONS accepts whitespace-separated values.

Handler contract

  • Provider resolution: A registered dynamo.frontend.routes entry-point name takes precedence. If no registered name matches, a value containing : is resolved as module:function. Unknown names fail startup and report the available registered extensions.
  • Provider return: The provider callable returns one FrontendRoute or an iterable of routes.
  • Route shape: FrontendRoute(method, path, handler, timeout_s=30.0, max_body_bytes=65536). The method is GET, POST, PUT, PATCH, or DELETE, and the path is static. Path parameters, wildcards, other methods, and duplicates of a built-in method and path are rejected.
  • Handler signature: handler(ctx: FrontendExtensionContext) returns a JSON-serializable body for HTTP 200, or FrontendResponse(status_code, body) to override the status code. The handler can be an async def, which runs on the Frontend’s event loop.
  • Request data: FrontendExtensionContext exposes the request body (bytes), the request headers (a dict with lower-case names), and the Frontend’s DistributedRuntime as runtime.
  • Live state: FrontendExtensionContext exposes is_ready(), is_cancelled(), has_any_ready_model(), is_model_ready_to_serve(name), model_display_names(), and serving_ready_display_names().
  • Execution limits: A handler that exceeds its route’s timeout_s returns 503. A request body over the route’s max_body_bytes returns 413. A route with 64 calls in flight, or a full handler pool, rejects new requests with the configured overload status code, 529 by default. See Handler limits for the full rules.
  • Multiple providers: Repeating the CLI option or listing whitespace-separated environment values loads multiple providers. Duplicate provider names are de-duplicated.

Other experimental options

--enable-anthropic-api
booleanDefaults to false

Enable /v1/messages (the Anthropic Messages API).

With a V2 unified parser that provides per-call completion evidence, streaming responses release completed tool blocks in call order once the identity is available and the arguments form a valid JSON object. This lets clients receive a completed call while later calls are still generating. V1 parsers, including those selected with DYN_PARSER_VERSION=1, retain the finish-reason or end-of-stream fallback. Calls whose argument string remains empty wait until end of stream, even if the parser reports completion.

Environment variable: DYN_ENABLE_ANTHROPIC_API

The dynamo chat processor runs Rust parsing in the frontend; workers publish parser choices through --dyn-tool-call-parser and --dyn-reasoning-parser. See Parser Generation Routing for DYN_PARSER_VERSION, aliases, fallback, and migration settings.

--dyn-chat-processor
stringDefaults to dynamo

Chat processor. See Chat Processors for how this combines with the parser flags. Any value other than dynamo, vllm or sglang loads a custom chat processor: a name registered in the dynamo.frontend.chat_processors entry-point group, or a module:function path.

Environment variable: DYN_CHAT_PROCESSOR

--isolate-tool-call-markers
booleanDefaults to false

Tokenize message content that contains the tool-call parser’s delimiters (for example a literal <tool_call> inside a tool result) as plain sub-words, so the model cannot copy a delimiter token out of untrusted input and have it parsed as a real tool call. Requires --dyn-chat-processor=sglang. Requests the option cannot encode safely are rejected, and the native DeepSeek-V4 and Kimi K3 encoders do not support it; see Echoed delimiters for the cases.

Environment variable: DYN_ISOLATE_TOOL_CALL_MARKERS

--dyn-chat-processor-config
string (JSON object)

Settings passed to a custom chat processor. Rejected with the built-in processors.

Environment variable: DYN_CHAT_PROCESSOR_CONFIG

--dyn-debug-perf
booleanDefaults to false

Log per-function timing for preprocessing (vllm processor only).

Environment variable: DYN_DEBUG_PERF

--dyn-preprocess-workers
integerDefaults to auto for SGLang; 0 otherwise

Experimental. For the SGLang processor, the default is min(2, max(0, available CPUs - 1)), where available CPUs account for process affinity and visible cgroup CPU quotas. The automatic count applies to each model’s preprocessing pool, just like an explicit value. With multiple models, the total number of workers grows with the model count and can exceed the available CPU count. Set 0 to run preprocessing on the main event loop. Nonzero values are supported only with the SGLang processor.

Environment variable: DYN_PREPROCESS_WORKERS

-i / --interactive
booleanDefaults to false

Interactive text chat mode.

Environment variable: DYN_INTERACTIVE

Host memory allocator

The Dynamo Python extension (dynamo._core) uses a built-in jemalloc for every Rust allocation, in the frontend and in every other process that imports it. CPython and C libraries keep the system allocator. DYN_FRONTEND_JEMALLOC is no longer read.

jemalloc cannot be turned off at runtime. To use the system allocator, for example to heap-profile Rust allocations with a preloaded jemalloc, build without the default jemalloc feature and re-enable the other defaults (currently custom-policy): maturin build --no-default-features --features custom-policy. musl and Windows (MSVC) builds always use the system allocator.

OptionValueEffect
background_threadtrueReturns unused pages to the operating system on a schedule, even while idle. A process runs one such thread (jemalloc_bg_thd), up to four under load. Not set on macOS.
dirty_decay_ms10000Unused pages are returned over about 10 seconds.
muzzy_decay_ms0Pages are released outright, not through MADV_FREE, which would keep them counted as resident.
narenas16Caps arenas. The default is four per CPU in the affinity mask, which a Kubernetes CPU limit alone does not shrink.
_RJEM_MALLOC_CONF
stringDefaults to the built-in options above

Overrides individual built-in options, for example to return pages sooner:

export _RJEM_MALLOC_CONF="dirty_decay_ms:1000"

See Bound frontend host memory growth to measure the effect.

LD_PRELOAD
stringDefaults to unset

Optional. Preloads a separate jemalloc, configured by MALLOC_CONF, for CPython and C allocations; the built-in allocator is unaffected. The vLLM, SGLang, TensorRT-LLM, and frontend images ship libjemalloc2 from v1.6.0, and --framework dynamo images from v1.3.0.

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 # x86_64
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libjemalloc.so.2 # arm64

The TensorRT-LLM image already sets LD_PRELOAD (/opt/dynamo/libstdc++.so.6 and its bundled libnixl.so): prepend jemalloc to that list instead of replacing it, writing the full list out in a Kubernetes manifest.

HTTP endpoints

The frontend exposes the following HTTP endpoints.

OpenAI-compatible

MethodPathDescription
POST/v1/chat/completionsChat completions (streaming and non-streaming)
POST/v1/completionsText completions
POST/v1/embeddingsEmbeddings (text, token IDs, or multimodal messages on vLLM workers)
POST/v1/responsesResponses API
POST/v1/responses/input_tokensEstimated input token count for the Responses API
POST/v1/images/generationsImage generation; the response carries image accounting
POST/v1/images/editsImage editing; see Image API Compatibility
POST/v1/videos/generationsVideo generation
POST/v1/videos/generations/streamVideo generation (streaming)
GET/v1/modelsList available models

Log-probability limits

top_logprobs on /v1/chat/completions and /v1/responses, and logprobs on /v1/completions, accept counts from 0 to 20 by default. A worker can publish its engine’s own limit as max_logprobs in the model’s runtime data, and the frontend then uses that limit for the model, whether it is above or below 20:

  • /v1/chat/completions and /v1/completions return 400 for a larger count.
  • /v1/responses lowers a larger count to the limit and reports the lowered value in the response.

The frontend uses the smallest limit among the model’s workers, and a worker that publishes none counts as 20. The request fields are 8-bit, so the frontend rejects a count above 255 when it parses the request, whatever the workers publish.

The vLLM worker (dynamo.vllm) publishes the engine’s --max-logprobs. With --max-logprobs -1 (no cap) the frontend accepts up to 255 entries per token, and response size grows with the count. Other workers publish no limit. To publish one from a custom backend, see Writing unified backends.

Image API Compatibility

Experimental. Image editing requires a backend and model that support reference-image conditioning.

EndpointRequest contractSupport
POST /v1/images/generationsJSON with a text prompt; optional input_referenceSupported
POST /v1/images/editsMultipart files or JSON references, with a required promptSupported
POST /v1/images/variationsLegacy image-variation APIUnsupported

Reference-capable models can also perform edits through the generations JSON endpoint. The variations endpoint returns HTTP 404; OpenAI has deprecated it. Use /v1/images/edits for prompt-guided variations.

  • Multipart: upload PNG, JPEG, or WebP using image, or repeat image or image[] for multiple files. Choose one name per request; preserve part order.
  • JSON: input_reference accepts an HTTP(S) URL, a base64 data URL, or an ordered array of those strings.

See the Image Edits API for build requirements, accepted fields, limits, errors, and rolling upgrades, and Create a Variation with Image Edits for a reference-image-plus-prompt example.

Anthropic (Experimental)

MethodPathDescription
POST/v1/messagesAnthropic Messages API (requires --enable-anthropic-api)
POST/v1/messages/count_tokensToken counting for the Anthropic API

Responses from the Messages handlers, including request parsing and validation errors, return the assigned request ID in the request-id response header. HTTP errors from these handlers use the Anthropic error envelope, including the same ID in request_id. Malformed JSON, invalid request shapes, and missing or incorrect JSON content types return HTTP 400. Requests exceeding DYN_HTTP_BODY_LIMIT_MB return HTTP 413 with request_too_large; the default is 45 MiB.

Before conversion, the frontend validates these Messages request fields:

  • tool_choice.type selects auto, any, none, or tool. Only tool accepts and requires a nonempty name. disable_parallel_tool_use must be a boolean and is unavailable with none.
  • system accepts a string or text blocks, each with type: "text" and nonempty string text.
  • metadata accepts an object; user_id, when supplied, accepts a string of at most 512 characters or null.
  • thinking.type: "enabled" requires an integer budget_tokens of at least 1,024 and less than max_tokens, except when anthropic-beta includes interleaved-thinking-2025-05-14. Budgets are invalid with disabled, adaptive, or between_tools. between_tools is accepted without enabling thinking before the first tool.
  • top_k must fit the backend’s signed 32-bit field (at most 2,147,483,647).
  • thread (message threads) is refused with error.details.error_code: "thread_unsupported_request": the frontend keeps no conversation between requests, so send the full conversation without thread. The Anthropic SDK tool runner does so on that code, as does the thread helper with unsupported_request_behavior: "continue_unthreaded".

For system, metadata, tool_choice, thinking, and thread, null is treated as omission.

Infrastructure

MethodPathDescription
GET/healthHealth check
GET/liveLiveness check
GET/metricsPrometheus metrics
GET/openapi.jsonOpenAPI specification
GET/docsSwagger UI

Admin

Admin routes are off by default and are served on a separate listener (127.0.0.1:8002 by default), never on the inference port. They have no authentication; see Secure Deployment Guidelines. When frontend TLS is configured, the admin listener uses the same certificate and client CA settings, so call it with https://. The inference port’s /openapi.json does not list these routes; generate-frontend-openapi does.

MethodPathDescription
GET, PATCH/router_policyGet or update worker-selection parameters of a router instance
GET, POST/router_policy/busy_thresholdGet or set busy thresholds for a discovered model
POST/busy_thresholdSet independently enabled busy thresholds for a discovered model
GET/busy_thresholdGet stored busy thresholds
DYN_ENABLE_FRONTEND_ADMIN_API
booleanDefaults to false

When truthy (1, true, yes, or on), the frontend starts the admin listener and serves the routes above.

DYN_FRONTEND_ADMIN_HOST
stringDefaults to 127.0.0.1

Address the admin listener binds to. If you widen it, restrict the admin port at the network boundary.

DYN_FRONTEND_ADMIN_PORT
integerDefaults to 8002

Port of the admin listener. When the admin API is enabled and the port cannot be bound, the frontend fails to start. A value that is not a valid port number falls back to 8002.

POST /busy_threshold accepts model plus any of active_decode_blocks_threshold, active_prefill_tokens_threshold, and active_prefill_tokens_threshold_frac. A numeric field enables only that check. The router reevaluates workers on the next worker-load or runtime-configuration update, or with --router-mode kv at the next worker selection; the call does not synchronously recompute the busy set and does not change startup-only router options such as --router-mode kv or --router-track-output-blocks.

Frontend feature switches

Environment variables controlling frontend extensions and protocol admission. The variables below are disabled by default. Truthy values are 1, true, yes, or on, case-insensitive.

DYN_IGNORE_OPENAI_FE_UNSUPPORTED_FIELDS
booleanDefaults to false

When truthy, /v1/chat/completions and /v1/completions ignore and drop unknown top-level request fields instead of rejecting the request. This does not forward arbitrary fields to a backend. Named passthrough fields remain subject to their normal validation and handling.

DYN_DISABLE_OPENAI_STRICT_SCHEMA_VALIDATION
booleanDefaults to false

When truthy, the frontend skips Dynamo’s preflight validation of function parameter schemas with explicit strict: true. This applies to /v1/chat/completions, /v1/responses (including namespace tools), and strict tools converted from /v1/messages. The setting affects all models served by the frontend process. The value is captured during HTTP frontend startup; restart the process after changing it. Use this compatibility mode for legacy requests accepted before strict-schema preflight was introduced, including schemas with optional properties, open objects, or oneOf. Submitted schemas and strict declarations remain unchanged. The preflight’s schema structure, reference, depth, and size checks are skipped; basic tool validation and HTTP body limits remain active. This does not disable structured-output guidance or downstream processor and backend checks, so a schema can still fail later in the request pipeline.

DYN_DISABLE_FRONTEND_NVEXT
booleanDefaults to false

When truthy, the frontend drops all request NvExt fields except cache_salt on /v1/chat/completions, /v1/completions, /v1/responses, and /v1/messages; ignores the x-dynamo-worker-instance-id, x-dynamo-prefill-instance-id, x-dynamo-dp-rank, x-dynamo-prefill-dp-rank, x-dynamo-request-priority, x-dynamo-request-strict-priority, and x-dynamo-elapsed-since-arrival-ms routing headers and their compatibility aliases; and ignores the response-side nvext.extra_fields opt-in. Cache isolation remains active. The frontend continues to use non-empty nvext.cache_salt and x-tenant-id values on these four endpoint groups. Top-level cache salts remain active on chat completions, completions, classify, and pooling. On embeddings, classify, and pooling, the switch only drops legacy NvExt annotations; these endpoints do not use x-tenant-id or x-dynamo-* routing headers in either mode.

Media refusal for text-only models

A frontend that serves text-only models can refuse media before routing. A refused request never reaches a worker, and a streaming client receives the HTTP status instead of a 200 followed by an error event. Readiness checks on the OpenAI endpoints still take precedence.

--reject-media
booleanDefaults to false

Refuse media in any message, including earlier turns, before conversion or routing:

  • /v1/chat/completions: image, video, and audio URL parts, plus inline input_audio.
  • /v1/responses: input_image parts, including file_id references, system/developer messages, assistant history, and function-call outputs. Audio and video input parts are not accepted by the Responses request schema.
  • /v1/messages: image blocks with base64 or URL sources, including images inside tool_result content.

Refusals are counted with error_type="unsupported_modality" on dynamo_frontend_requests_total, apart from validation and overload errors.

Environment variable: DYN_REJECT_MEDIA

--reject-media-status-code
integerDefaults to 415

HTTP status for a request refused by --reject-media. Only 4xx and 5xx values are accepted. Set it to a status an upstream gateway fails over on, for example 429, to have that gateway send media requests to a multimodal model.

Environment variable: DYN_REJECT_MEDIA_STATUS_CODE

Endpoint path customization

All endpoint paths can be overridden via environment variables:

Env VarDefault Path
DYN_HTTP_SVC_CHAT_PATH_ENV/v1/chat/completions
DYN_HTTP_SVC_CMP_PATH_ENV/v1/completions
DYN_HTTP_SVC_EMB_PATH_ENV/v1/embeddings
DYN_HTTP_SVC_RESPONSES_PATH_ENV/v1/responses
DYN_HTTP_SVC_MODELS_PATH_ENV/v1/models
DYN_HTTP_SVC_ANTHROPIC_PATH_ENV/v1/messages
DYN_HTTP_SVC_HEALTH_PATH_ENV/health
DYN_HTTP_SVC_LIVE_PATH_ENV/live
DYN_HTTP_SVC_METRICS_PATH_ENV/metrics

Deprecated

--admission-control
stringDefaults to nullDeprecated

Deprecated and ignored. Configure the three busy thresholds directly. The compatibility flag and DYN_ADMISSION_CONTROL are accepted only so older launch commands continue to start.

Environment variable: DYN_ADMISSION_CONTROL