Building a Multi-Provider GenAI Gateway for Enterprise-Scale LLM Access

grab · Tech · 2025 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise GenAI gateway and governance

Grab needed a central gateway so internal teams could safely and efficiently access many GenAI providers without each team handling provider authentication, infrastructure, cost tracking, quota management, and governance review themselves.

Constraints:

Architecture

Grab AI Gateway is a lightweight reverse-proxy layer across OpenAI, Azure, AWS Bedrock, Google Vertex AI, in-house OSS models, and other providers. It uses API keys for exploration and production access, request-path authorization, provider-key substitution, rate limits, a unified OpenAI-style API interface, dynamic routing across reserved capacity and regions, auditing into Grab's data lake, per-request cost attribution, and platform integrations with Chimera notebooks and Catwalk deployments.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  internal-applications[Internal applications] --> grab-ai-gateway[Grab AI Gateway]
  slack-bot[Slack bot] --> api-keys[API keys]
  api-keys --> grab-ai-gateway
  governance-review[Governance review] --> grab-ai-gateway
  grab-ai-gateway --> unified-api-handler[Unified API handler]
  unified-api-handler --> provider-reverse-proxies[Provider reverse proxies]
  provider-reverse-proxies --> external-ai-providers[External AI providers]
  grab-ai-gateway --> dynamic-routing[Dynamic routing]
  dynamic-routing --> external-ai-providers
  grab-ai-gateway --> audit-and-cost-data-lake[Audit and cost data lake]
  audit-and-cost-data-lake --> cost-dashboards[Cost dashboards]
  grab-ai-gateway --> rate-limiter[Rate limiter]
  ml-platform-integrations[ML platform integrations] --> internal-applications
  ml-platform-integrations --> api-keys
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Grab AI Gateway Central reverse-proxy gateway for authentication, authorization, routing, rate limits, auditing, and cost attribution across GenAI providers. Internal applications, Provider reverse proxies, Unified API handler, Audit and cost data lake, Rate limiter, Governance review
Internal applications GenAI use cases such as chatbots, RAG, audio analysis, moderation, menu descriptions, SQL insights, incident automation, and support bots. Grab AI Gateway, ML platform integrations
API keys Exploration and production credentials with different lifetime, environment, and rate-limit policies. Grab AI Gateway, Slack bot
Slack bot Self-service channel for requesting short-lived exploration keys. API keys
Governance review Mini-RFC, checklist, and AI Governance review process for production use cases. Grab AI Gateway, Internal applications
Unified API handler OpenAI-style API compatibility layer that translates requests and responses for different providers. Grab AI Gateway, Provider reverse proxies
Provider reverse proxies Provider-specific proxy targets for OpenAI, Azure, AWS Bedrock, Google VertexAI, and other model services. Grab AI Gateway, External AI providers
External AI providers Hosted model providers and in-house OSS model endpoints. Provider reverse proxies, Dynamic routing
Dynamic routing Routes requests across similar models, reserved instances, and regions for usage efficiency and quota relief. Grab AI Gateway, External AI providers
Audit and cost data lake Stores request/response metadata, token usage, model name, path, cost calculations, and audit trails. Grab AI Gateway, Cost dashboards
Cost dashboards Aggregated reporting, showback, and cost-threshold alerts per service. Audit and cost data lake
Rate limiter Gateway-level request-rate controls on top of provider quotas. Grab AI Gateway
ML platform integrations Chimera notebook and Catwalk deployment integrations that mount gateway keys and environment variables. Internal applications, API keys

Data flow

A Grabber requests an exploration or production key, with production use cases going through mini-RFC/checklist review and sometimes AI Governance review. Applications call the gateway using either provider-specific APIs or a unified OpenAI-style API. The gateway authenticates the internal key, authorizes the path, swaps in the provider key, translates unified payloads to provider-specific schemas when needed, routes to a provider or similar reserved-capacity model, records request/response metadata and costs in the data lake, enforces rate limits, and returns the provider response with minimal processing.

4 supporting quotes
“At its core, the AI Gateway is a set of reverse proxies to different external AI providers like Azure, OpenAI, AWS, and others.”article, stated
“Once authenticated, the AI Gateway replaces the internal key in request with the provider key and executes the request on behalf of the user.”article, stated
“Providers can be switched simply by changing the “model” parameter in the API request. This also enables easy setup of fallback logic and dynamic routing across providers.”article, stated
“The AI Gateway records each call’s request, response body, and additional metadata like token usage, URL path, and model name into Grab’s data lake.”article, stated

Why this architecture

Grab chose a minimalist reverse-proxy gateway because it needed central control without slowing provider innovation or forcing app teams to rewrite provider integrations. The gateway acts like the provider from the user's perspective, while centralizing provider keys, authorization, quotas, audit logs, cost attribution, model switching, and governance.

3 supporting quotes
“From the user’s perspective, the AI Gateway acts like the actual provider where users are only required to set the correct base URLs to access the LLMs.”article, stated
“The AI Gateway is designed with a minimalist approach, often serving as a lightweight interface between the user and the provider, intervening only when necessary.”article, stated
“This has enabled us to keep up with the pace of innovation in the field and to continue expanding the provider catalogue without increasing the ops burden.”article, stated

Models used: OpenAI · Azure OpenAI · AWS Bedrock · Google VertexAI · in-house open source models · vLLM via Catwalk

Scale

Alternatives considered (roads not taken)

Each team integrates providers directly

Rejected because: Provider-specific authentication, infrastructure setup, reviews, cost tracking, and quotas would be duplicated across teams.

“Each AI provider has its own way of authenticating their services. Some providers use key-based authentication while others require instance roles or cloud credentials.”article, stated
“Grab AI Gateway removes the effort of procuring resources and setting up infrastructure for AI services, such as servers, storage, and other necessary components.”article, stated

Reserved capacity per service

Rejected because: Pre-purchased capacity can be wasted when services deprecate or demand shifts, so Grab uses a shared pool and global usage view.

“Many AI providers allow purchasing of reserved capacity to provide higher throughput and improve cost effectiveness. However, services that require reservation or pre-purchases over a commitment period can lead to wastage.”article, stated
“Grab AI Gateway overcomes this problem and minimises wastage with a shared capacity pool. A deprecated service would simply free up bandwidth for a new service to utilise.”article, stated

Provider-specific SDK logic everywhere

Rejected because: A unified API lets users switch providers by changing a model parameter and makes fallback/dynamic routing easier.

“Providers can be switched simply by changing the “model” parameter in the API request. This also enables easy setup of fallback logic and dynamic routing across providers.”article, stated
“This also enables easy setup of fallback logic and dynamic routing across providers. Based on popularity, the gateway uses the OpenAI API scheme to provide the unified interface experience.”article, stated

Treat the reverse proxy as fully transparent and maintenance-free

Rejected because: Provider SDK edge cases still required integration tests and missing path/configuration fixes.

“we have encountered edge cases where certain SDK functionalities do not work as expected due to a missing path in the gateway or a missing configuration.”article, stated
“a suite of integration tests with SDKs are conducted to ensure there are no breaking changes before deploying.”article, stated

Patterns

model-routing (model_operations)

The gateway exposes multiple providers and can route specific model requests to similar models, reserved instances, or regions.

“The AI Gateway plays a crucial role in maintaining usage efficiency of various reserved instance capacities.”article, stated
“It provides the control points to dynamically route requests for certain models to a different albeit similar model backed by a reserved instance.”article, stated

cost-aware-routing (operations)

Grab uses shared capacity pools, usage trends, per-request cost calculations, dashboards, and alerts to control GenAI spend.

“Grab AI Gateway provides a global view of usage trends to help platform teams make informed decisions on reallocating reserved capacity according to demand and future trends”article, stated
“The gateway performs cost calculations for each request once the response is received from the provider.”article, stated

observability-tracing (operations)

Every call's request, response, token usage, URL path, and model are archived for audit, security inspection, and usage reporting.

“The AI Gateway records each call’s request, response body, and additional metadata like token usage, URL path, and model name into Grab’s data lake.”article, stated
“The archived data can be inspected for security threats like prompt injection or potential data policy violations.”article, stated

guardrails-io-filtering (safety)

The gateway roadmap includes built-in input/output guardrails and prompt-injection defenses so app teams do not each build their own.

“Enforce guardrail and safety from prompt injection.”article, stated
“By creating a built-in support for security threats like prompt injection and guardrails for filtering input/output, we can save users significant effort.”article, stated

safety-policy-enforcement (governance)

Production use cases pass through mini-RFC/checklist review and sometimes AI Governance review before deployment.

“Every new use case requires a mini-RFC (Request For Comments) and a checklist that is reviewed by the platform team.”article, stated
“In certain cases, an in-depth review by the AI Governance task force may be requested.”article, stated

fallback-degradation (reliability)

Unified routing supports fallback logic and load balancing across providers or regions when quota or availability constraints arise.

“This also enables easy setup of fallback logic and dynamic routing across providers.”article, stated
“Another frequent use case is smart load balancing across different regions to address region-specific constraints related to maximum available quotas.”article, stated

Tradeoffs

Use a minimalist reverse proxy

Chose Lightweight provider-facing gateway with minimal response processing over A heavy abstraction layer that normalizes all provider behavior deeply.

Rationale: The minimalist design kept operations manageable while providers and models changed rapidly.

“The AI Gateway is designed with a minimalist approach, often serving as a lightweight interface between the user and the provider, intervening only when necessary.”article, stated
“responses from the provider are returned to the user with no to minimal processing time.”article, stated

Offer both provider-specific and unified APIs

Chose Provider-specific access plus OpenAI-style unified interface over Only one canonical provider API shape.

Rationale: Provider-specific compatibility reduces migration friction, while unified access lowers the barrier to experimentation and routing.

“In addition to provider specific interface, the gateway also offers a single interface to interact with multiple AI providers.”article, stated
“Based on popularity, the gateway uses the OpenAI API scheme to provide the unified interface experience.”article, stated

Use exploration keys before production approval

Chose Short-lived staging-only keys for experimentation over Full production access before review.

Rationale: Exploration keys reduce friction for learning and prototypes while keeping production use under governance review.

“To reduce friction, users are encouraged to build prototypes and experiment with APIs using “exploration keys”.”article, stated
“The keys are short-lived with a validity period of a few days, stricter rate limit restrictions, and access limited to only the staging environment.”article, stated

Gotchas (what bit them)

Provider-specific auth and setup slow internal adoption.

Root cause: Each provider has different keys, roles, credentials, infrastructure, and SDK behavior.

Resolution: Centralize provider setup behind gateway keys, base URLs, and provider-key substitution.

“Each AI provider has its own way of authenticating their services.”article, stated
“Grab AI Gateway provides a centralised platform that only requires a one-time provider access setup.”article, stated

Batch traffic can interfere with online service uptime.

Root cause: Use cases with different SLOs may share the same underlying provider quota.

Resolution: Use gateway-level fair distribution by criticality and RPS, plus Async APIs where acceptable.

“Batch use cases require high throughput but can tolerate failures while online applications are sensitive to latency and rate limits.”article, stated
“we have encountered issues where batch usage interfered with the uptime of online services.”article, stated

Reverse-proxy compatibility breaks on provider edge cases.

Root cause: Provider SDK features can depend on paths or configurations missing from the gateway.

Resolution: Catch issues with SDK integration tests before deploying gateway changes.

“certain SDK functionalities do not work as expected due to a missing path in the gateway or a missing configuration.”article, stated
“a suite of integration tests with SDKs are conducted to ensure there are no breaking changes before deploying.”article, stated

The model catalogue becomes hard to navigate as provider count grows.

Root cause: Users struggle to compare model capabilities, latency, cost, quotas, and modalities across more than 50 models.

Resolution: Build a catalogue with metadata such as modality, token limits, quota, pricing, and references.

“With over 50 AI models each suited for a specific task type, finding the correct model to use is becoming complex.”article, stated
“A catalogue can serve as a guideline by listing currently supported models along with the list of metadata”article, stated

Evaluation

The article describes operational governance and platform metrics rather than an ML benchmark: usage is tracked through audit logs, cost calculations, rate limits, integration tests, dashboards, and governance review.

Metrics: number of onboarded use cases · number of exploration keys requested · request/response metadata and token usage · per-request and daily async cost calculations · rate-limit behavior by key · SDK integration test results · cost threshold alerts

3 supporting quotes
“The AI Gateway records each call’s request, response body, and additional metadata like token usage, URL path, and model name into Grab’s data lake.”article, stated
“alerts are configured to notify if a service exceeds the cost threshold.”article, stated
“a suite of integration tests with SDKs are conducted to ensure there are no breaking changes before deploying.”article, stated

Outcomes

The source reports more than 300 onboarded use cases, more than 3,000 exploration-key requests, over 50 AI models in the catalogue problem, and Grab's broader operating footprint across 700 cities in eight countries.

3 supporting quotes
“With more than 300 unique use cases onboarded and many of those making it to production”article, stated
“Exploration keys are highly popular, with more than 3,000 Grabbers requesting the key to experiment with APIs.”article, stated
“Some examples include real time audio signal analysis for enhancing ride safety, content moderation to block unsafe content, and description generator for menu items”article, stated