Adaptive model routing
Adaptive model routing in Fabric Gateway reads every prompt and matches it to an appropriate model in real time. Simple prompts stop paying for frontier models, your apps keep calling one endpoint, and output quality stays high.
Prompts vary in size, difficulty and reasoning. A classifier sorts each one, and Fabric sends it to a fast, balanced, advanced or frontier model, so heavy models only handle heavy work.
Pick a prompt. The classifier labels it, Fabric routes it to the matching model, and you can see what that does to tokens and cost.
Classifiers supported: Jev and GPT-5.4 nano.
Token counts and prices are made up for illustration. In Fabric, candidate models come from the allowlist you set on each route.
Most AI traffic is simple. A classifier spots those prompts before any model is called and sends them to efficient models, keeping your most capable ones for work that needs them.
Point your OpenAI- or Anthropic-compatible SDK at Fabric and call a routed model by name. The gateway decides which model answers, so swapping models, adding a provider, or changing goals is a configuration change, not a release.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.fabricgateway.ai/v1",
api_key=os.environ["FABRIC_GATEWAY_KEY"],
)
reply = client.chat.completions.create(
# a routed model you define in Fabric
model="support-assistant", messages=[
{"role": "user", "content": "Summarize this ticket."},
],
)The classifier runs in the same control plane that governs the rest of your AI traffic, so every routing choice happens under your policies.
Supports OpenAI and Anthropic models today. More providers coming soon.
It is a routing strategy that chooses a model for each prompt as it arrives. Instead of hardcoding one model, you call a routed model. The classifier reads the prompt, labels the task and its difficulty, and Fabric sends it to the best matching model from the ones you have approved.
Fabric supports Jev and GPT-5.4 nano as classifiers. The classifier reads each prompt and labels the task and its difficulty, and Fabric uses that label to pick the model.
Simple prompts are billed at compact-model rates instead of frontier rates, which lowers the price of every token. Right-sized models also tend to produce shorter answers and fewer reasoning tokens on simple work, and routing up front means fewer retries and manual escalations. Traces show tokens and cost per request, so you can measure the effect on your own traffic.
Fallback reacts after something fails. Load balancing splits traffic using fixed weights. Adaptive routing looks at the prompt itself and decides per request. Retries, circuit breakers, and fallbacks still apply as a safety net when a provider has trouble.
Routing chooses models based on the capability matrix of the models you allow, so the quality floor is not compromised. The defaults should work for most teams, and every model selection decision is debuggable through traces, so you can refine your allowed list if needed.
Only the base URL and the model name. Fabric exposes OpenAI-compatible and Anthropic-compatible endpoints, so supported SDKs keep working. Changing models, providers, or routing later happens in configuration.
Routing runs in the data plane, which you can self-host in your VPC, have Postman host, or run in a hybrid setup. Provider credentials are held by the gateway and injected at request time. With a self-hosted data plane they stay in your environment, and your applications, agents and Postman's control plane never see them.
Connect your first model, MCP server or internal API and apply consistent governance from one gateway.