A new model launches. Every product team wants access. Who decides where it can be used?
Sending an HTTP request is the easy part. An enterprise must decide whether the model can see customer data, which products may call it, whether capacity exists, and whether it performs well on those products' tasks. Those decisions need somewhere to become enforceable.
An AI gateway connects a model catalog and its access policies to the requests applications actually make. Observability then needs to explain both the execution and the decisions behind it.
01 / A PUBLISHED ENTERPRISE EXAMPLE
A model can be available without being ready for customers.
Atlassian's 2025 Model Garden engineering article describes early GPT-5 alpha access through its gateway, followed by launch-day use in Rovo Dev. It also describes model readiness status, evaluation integration, and centralized access controls. The practical lesson is that evaluation access and customer availability are different decisions.
This is a dated public example, not a current model inventory. The reference design below generalizes the enterprise pattern; it does not reproduce Atlassian's deployment or private release procedures.
Restricted access for evaluation → readiness and product-fit decisions → approved caller / model policies → runtime enforcement and observation.
Evaluation may already use the gateway. Catalog entry ≠ production permission ≠ proof of task quality.The evaluation suite runs representative tasks and compares candidates. Platform and product owners decide what the results permit. The gateway applies those permissions. A good benchmark score does not grant data access; a compliance approval does not prove that a feature works.
02 / WHAT CHANGES ABOVE LOAD BALANCING
From choosing a server to enforcing a model policy
A load balancer distributes traffic across server copies, or replicas, behind a stable address. A reverse proxy forwards requests on behalf of servers. The same software often performs both roles.
L4 handles transport connections; L7 understands application protocols such as HTTP. An ALB is an Application Load Balancer. An API gateway adds shared API policies. An AI gateway adds supported model/tool protocols and the policies and accounting those operations require.
A conventional gateway can authenticate a caller and route /chat. It does not automatically know whether a particular model is approved for that caller, whether a fallback obeys the same data restrictions, or how different providers count usage. An API key alone cannot express all those decisions.
These capabilities can be implemented as plugins and policies on an existing gateway. The requirement is AI-aware behavior, not necessarily another product or network hop.
Which layer makes a gateway AI-aware?
It is still Layer 7. The difference is application-specific software: handlers that parse model/tool requests, translate provider formats, count usage, and consult model-access policies.
Control plane: catalog · approvals · grants · budgets
↓ configuration
L7 handlers: model parsing · policy · adapters · metering
HTTP proxy: routes · connections · streaming
Transport: TLS / TCP / QUIC, as configuredTwo calls to the same /chat path can request different models inside their bodies. A model-aware handler can identify each model, check its eligibility, select a permitted provider, and interpret the response usage. Path routing alone supplies none of that model knowledge.
A conventional gateway can be extended with this logic. Envoy's HTTP filters, for example, can inspect and transform request/response streams. Evaluation systems and model owners remain separate from the runtime that applies their configuration.
| Concern | Model-aware addition |
|---|---|
| Release access | Model stage, caller grants, and permitted traffic. |
| Provider differences | API adapters and normalized usage accounting. |
| Fallback | Only destinations that satisfy the same policy. |
| Shared capacity | Token budgets and quotas by the configured allocation scope. |
| Change evidence | Model, prompt, policy, and evaluation versions linked to execution. |
Enterprise example A provider is unavailable, but the only healthy alternative is outside the permitted region. Rejecting that fallback can be the correct policy outcome.
03 / SEPARATE DECISIONS FROM EXECUTION
The control plane approves. The runtime enforces.
The upper row establishes evidence and permissions. The middle rows carry requests. The bottom collects execution records. Click the compact components to inspect each responsibility.
A model's approved configuration is not a one-time launch ceremony. Versions change, capacity runs out, providers retire endpoints, and permissions are withdrawn. The gateway needs a defined response to stale configuration, unavailable policy services, and rollback. Its own availability and overhead remain operational concerns.
04 / WHAT AI OBSERVABILITY ADDS
Record which decision produced the answer.
Traditional L7 monitoring remains necessary: traffic, healthy targets, connection failures, and load-balancer versus backend errors. For example, AWS ALB's TargetResponseTime ends when the target starts sending response headers. It is not the time until a generated answer finishes.
Enterprise AI adds two questions: was this execution permitted, and did the chosen model deliver acceptable quality at an acceptable cost? These require different sources of evidence.
A dashboard for a model release
Measurements to define explicitly; metric names and availability depend on implementation.
Eligibility / routingAdmission and denial by reason; actual model/provider; fallback reason; policy version. A denial can mean a control worked.
Capacity / quotaPeak-window token usage against the assigned limit, throttles, and reserved capacity where applicable. Requests per second alone misses variable token work.
Executionp95 time to first token, streaming gaps, completion/cancellation, tool errors, and attempts per logical model call.
EconomicsInput/output/cache/reasoning usage with documented overlap rules, estimated cost, and cost per successfully completed task.
EvaluationTask success and regressions by dataset, rubric, model, and prompt version. Produced by application/evaluation systems, not inferred from HTTP status.
A p95 is the value at or below which 95% of observed samples fall. Tokens are the units models consume or generate. Compare similar tasks and versions: a longer, more useful answer may legitimately cost more. Do not double-count reasoning tokens if a provider already includes them in output totals.
Concrete metric names to look up
AWS ALB: HealthyHostCount, HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, TargetResponseTime. Amazon API Gateway REST: Latency and IntegrationLatency. Agentgateway: agentgateway_gen_ai_server_time_to_first_token and agentgateway_gen_ai_client_token_usage. Follow the definitions in the references; these are examples, not Atlassian's metric names.
Enterprise example A cheaper approved model reduces token spend but fails more tasks. Cost per successful task exposes a trade-off that price per token hides.
05 / ATTACH THE EVIDENCE
Context travels with the call. Measurements travel separately.
Instrumentation records timed operations called spans. A trace connects their execution. Each service reads incoming trace context, creates its spans, and forwards updated context. Attributes label recorded work: model, provider, prompt version, or policy version.
The application reads incoming trace context.
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01The trace ID groups the execution; the span ID identifies the sending operation.
The application supplies task/release metadata; the gateway records its routing and usage; tool servers record execution and dependencies. Trace identifiers connect them. Export through configured collectors/backends; managed ALB metrics and logs require their own ingestion. ALB's X-Amzn-Trace-Id is not automatically a W3C traceparent span tree.
Use bounded metric dimensions. Keep request IDs and detailed execution records in traces/logs. Capture prompt content selectively with access controls and retention policies. Neither full prompt logging nor a model's private reasoning is required for basic operational visibility.
For a latency-focused example, the earlier article follows a slow tool replica. Here, the same correlation also answers: which release, policy, and model produced this outcome?
Implementation references
- Atlassian's published Model Garden case · August 2025.
- AWS ALB metrics / API Gateway REST metrics.
- Agentgateway metrics / OpenTelemetry context propagation.
Sources checked October 30, 2026. Reference design, worked examples, and telemetry records are illustrative. Personal engineering analysis; no company endorsement implied.

