ai-gateway

Route diverse AI models through a single API with failover and cost tracking.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill ai-gateway-masermediagroup-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-gateway
Source: https://github.com/masermediagroup-stack/CursorSkills/tree/main/skills-bundle/plugins-vercel/eb3b6f19e9ca59b23c88d7cc8dfe609388be0fc7/skills/ai-gateway
Command: npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill ai-gateway-masermediagroup-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Route and manage diverse AI models through a single API with built-in failover, cost tracking, and observability.

Core Features & Use Cases

  • Unified model routing across providers and models
  • Per-user rate limiting, budget controls, and audit logging
  • Use cases include multi-tenant apps needing cost attribution and reliable failover

Quick Start

Configure AI Gateway to route a provider/model through a single endpoint and verify routing with a simple test prompt.

Frequently Asked Questions about ai-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route requests to multiple AI providers through a single API endpoint?

Route requests to multiple AI providers through a single API by configuring model routing rules and a configurable provider order. This enforces unified model routing across providers with fallback models for reliable failover.

What is the best way to implement per-user rate limiting and budget tracking for multi-tenant AI apps?

Implement per-user rate limiting and budget tracking for multi-tenant AI apps using tagging for budgets and enforced authentication defaults. This provides cost attribution and budget controls across production applications.

How does provider failover work when managing diverse AI models?

Provider failover works by enforcing configurable provider order with fallback models when managing diverse AI models. If a primary provider fails, the gateway automatically routes the request to the next configured model.

Can I use OIDC authentication defaults with an AI gateway for production apps?

Yes, you can use OIDC authentication defaults with an AI gateway for production apps. The gateway enforces authentication defaults via OIDC while providing robust error handling and audit logging.

When do I need audit logging and observability for multi-provider AI setups?

You need audit logging and observability for multi-provider AI setups when operating multi-tenant SaaS scenarios requiring cost attribution. The gateway provides built-in observability and audit logging for production applications.

Does an AI gateway support cost tracking across different models and providers?

An AI gateway supports cost tracking across different models and providers through built-in cost tracking and tagging for budgets. This enables precise cost attribution and per-user rate limiting across production apps.