Skip to main content

What is Layer AI?

Layer AI is an AI gateway that sits between your application and AI providers (OpenAI, Anthropic, Google, etc.). It provides intelligent routing, automatic fallbacks, cost tracking, and a unified API across all providers. Key benefits:
  • Smart Routing - Automatically route requests to the best model for each task
  • Automatic Fallbacks - Never fail when a model is down
  • Cost Tracking - Real-time cost analytics per request, user, and endpoint
  • Unified API - One interface for GPT, Claude, Gemini, Mistral, and more
  • Drop-in Replacement - Works with OpenAI SDK and Anthropic SDK

Quick Start

Get up and running in under 5 minutes.

Quickstart Guide

Create your first gate and make your first request in 5 minutes.

Layer SDK

Our official SDK with full support for all Layer AI features.
https://mintcdn.com/layerai/Ema5ERoWIf-VAx--/icons/icon-light.svg?fit=max&auto=format&n=Ema5ERoWIf-VAx--&q=85&s=f4df962a5371319ce0ae6e2fa0ef84f8

Layer SDK Documentation

Full-featured SDK with chat, image, video, and audio support across all providers.

Other Integrations

Use Layer AI with your existing OpenAI or Anthropic SDK code.

Core Concepts

Understand the building blocks of Layer AI.

Dashboard

Manage your gates, keys, and costs from the Layer AI dashboard.

API Reference

Complete API documentation for all Layer AI endpoints.

Need Help?

Join our community

Get help, share feedback, and connect with other Layer AI users.