Skip to content

Inference flags

Last updated: 2026-11-25T02:26:16-03:00 (UTC-3)

Each family of inference routes has its own flag. A route whose flag is off does not exist for anyone: it responds 404 feature_disabled before reading the body, counting RPM or calling the provider. That way you expose only what you want to offer.

Capability Flag Route
chat chat_completions /v1/chat/completions
responses openai_responses /v1/responses
messages anthropic_messages /v1/messages
generate_content gemini_generate_content /v1beta/models/{alias}:generateContent and :streamGenerateContent
embeddings embeddings /v1/embeddings
images image_generation /v1/images/generations
image_edits image_generation /v1/images/edits
audio_speech audio_speech /v1/audio/speech; with speech_voices, GET /v1/audio/voices
audio_transcriptions audio_transcriptions /v1/audio/transcriptions
video video_generation /v1/videos/generations
rerank rerank /v1/rerank
moderations moderations /v1/moderations
decisions openai_decisions /v1/decisions
systemone systemone_decisions /v1/systemone
gemini_decisions gemini_decisions /v1beta/decisions
interactions gemini_interactions /v1beta/interactions, /v1/interactions and the stored interaction’s read, cancel and delete
fine_tuning fine_tuning /v1/fine_tuning/jobs and the job’s operations

The console uses the same table to show which endpoints are available and which scopes to offer when you create a key.

  • Omitted = off. A flag missing from the YAML is false. Declare explicitly the routes you want to turn on.
  • A flag is not a permission. Turning on a route authorizes no one: the key still needs the route’s scope, the alias in its list and the team policy.
  • GET /v1/models lists only active, authorized aliases with at least one capability turned on. An alias without capabilities serves only chat.
  • Aliases with several capabilities: turning one off does not turn off the others.
  • Latent configuration: with the flag off, the configuration is still validated (credential, protocol, target and path).
  • No restart: with feature_management, flags change from the console (Settings & sources) or the API, with versioning, auditing and propagation to the replicas.
  • Turning a route off does not interrupt streams that have already started.

Options within a family, such as an image in a chat’s content, do not have their own flag. To restrict them per team, use plans and team policies.

preserve_chat_body is an opt-in formatting option, disabled by default, under chat_completions. Its YAML/API/console control uses the existing operational flag manager. It preserves eligible original Chat JSON after authorization and unchanged-body checks; other calls retain existing encoding. Disabling this option does not disable Chat. Review the eligibility and CPU/allocation tradeoff before enabling it.

  • To turn a route off, save false in the console or change the YAML and roll out.
  • Reverting the override returns to the YAML value (which is false if the flag is omitted).
  • Before going back to an older gateway version, remove from the YAML the flags it does not know.

m7gtw[email protected]