# LLM Gateway — Full Documentation > LLM Gateway is an open-source, OpenAI-compatible API gateway for routing, managing, and analyzing requests across LLM providers. Use one API key, track usage and cost, configure caching and guardrails, and self-host or use the managed cloud. Current models and pricing: https://llmgateway.io/models API base URL: https://api.llmgateway.io/v1 · Docs: https://docs.llmgateway.ai-stage.zibl.ir · Site: https://llmgateway.io This file concatenates the full text of every documentation page below. ## Contents Start with https://docs.llmgateway.ai-stage.zibl.ir/llms.txt for the full page index. Read a linked Markdown page when you need one topic; this complete file may exceed an agent context window. - [DevPass](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/devpass) - [Introduction to LLM Gateway](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/index) - [Overview](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/overview) - [Quickstart](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/quick-start) - [Lounge](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/lounge) - [Airside](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/airside) - [Coding tool guides](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/guides) - [Health check](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/health) - [Create speech](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_audio_speech) - [Create transcription](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_audio_transcriptions) - [Cancel batch](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_batches_cancel) - [Create batch](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_batches_create) - [List batches](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_batches_list) - [Retrieve batch](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_batches_retrieve) - [Chat Completions](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_chat_completions) - [Decisions](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_decisions) - [Embeddings](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_embeddings) - [Retrieve file content](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_files_content) - [Upload file](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_files_create) - [Delete file](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_files_delete) - [List files](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_files_list) - [Retrieve file](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_files_retrieve) - [Edit image](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_images_edits) - [Create image](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_images_generations) - [Retrieve key status](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_key_retrieve) - [Anthropic Messages](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_messages) - [Models](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_models) - [Moderations](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_moderations) - [OCR](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_ocr) - [Create a realtime client secret](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_realtime_client_secrets) - [Rerank](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_rerank) - [Search](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_search) - [System One](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_systemone) - [Video content](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_videos_content) - [Create video](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_videos_create) - [Video log content](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_videos_log_content) - [Retrieve video](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/v1_videos_retrieve) - [Introduction](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/learn) - [Self Host LLM Gateway](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/self-host) - [LLM Gateway Developer Resources](https://docs.llmgateway.ai-stage.zibl.ir/llms.mdx/developers) # DevPass URL: https://docs.llmgateway.ai-stage.zibl.ir/devpass DevPass is a monthly subscription for developers who code with AI agents. Instead of topping up credits per request, you pay one flat price and get a monthly allowance that covers the models your tools call. Your DevPass key works anywhere an OpenAI- or Anthropic-compatible key does, so you keep the tools you already use. ## Quick start [#quick-start] ### Pick a plan [#pick-a-plan] Choose a plan on the [DevPass pricing page](https://devpass.llmgateway.io/pricing). Plans come in three tiers, **Lite**, **Pro**, and **Max**. Higher tiers raise the monthly allowance and the weekly cap on [premium models](https://docs.llmgateway.ai-stage.zibl.ir/learn/model-categories). ### Copy your key [#copy-your-key] Open the [DevPass dashboard](https://devpass.llmgateway.io/dashboard). Rotate the key under **API Key** to reveal it once. The **Quick start** panel next to it then shows the exact setup for each supported tool. ### Point your tool at DevPass [#point-your-tool-at-devpass] For Claude Code, set two environment variables and run `claude` as usual: ```bash export ANTHROPIC_BASE_URL=https://api.llmgateway.io export ANTHROPIC_AUTH_TOKEN=your_devpass_key claude ``` OpenAI-compatible tools use `OPENAI_BASE_URL=https://api.llmgateway.io/v1` and `OPENAI_API_KEY` instead. Every other tool has its own [setup guide](https://docs.llmgateway.ai-stage.zibl.ir/guides). ### Watch your usage [#watch-your-usage] Requests appear in [Coding Agents](https://docs.llmgateway.ai-stage.zibl.ir/learn/coding-agents), broken down by tool. Allowance meters on the dashboard show what is left this month and this week. ## Provider fallback [#provider-fallback] Retryable provider failures, including upstream `429` responses, can immediately fail over to another eligible provider of the same model before output reaches your tool. After a successful replacement, later session turns stay on that provider. DevPass eligibility rules and reasoning portability still apply. See [sticky-session fallback](https://docs.llmgateway.ai-stage.zibl.ir/features/routing#falling-back-when-a-provider-is-down). ## Reasoning effort [#reasoning-effort] When your coding tool requests a reasoning effort, automatic provider selection excludes deployments whose declared efforts do not support that level. A session pin does not override this check. See [reasoning-effort compatibility](https://docs.llmgateway.ai-stage.zibl.ir/features/routing#reasoning-effort-compatibility). ## Automatic cache duration [#automatic-cache-duration] Under **Settings → Automatic cache duration**, choose **5 minutes** (default) or **1 hour**. Available in Automatic cache-write mode, this controls automatically added markers only when your request contains no cache markers of its own. One hour applies only to supported models and providers; otherwise the default duration is used. Longer durations can increase cache-write costs. Your tool's own markers take precedence, including markers without a TTL. Client-managed and Disabled modes ignore this preference. See [Provider Cache Control](https://docs.llmgateway.ai-stage.zibl.ir/features/caching/provider-cache-control) for details. ## Unused allowance [#unused-allowance] Part of the allowance you do not use carries over at renewal. Whatever is left when the plan renews is added to the next cycle's full allowance, up to half of your plan's monthly allowance; anything above that expires. * The amount is worked out again at every renewal from what is left then, so it never builds up past that cap. * A plan change at renewal uses the cap of the plan you move to. * Carried-over allowance counts toward the [daily and weekly shares](https://docs.llmgateway.ai-stage.zibl.ir/learn/model-categories) like the rest of the cycle's allowance. * It ends when the plan ends. The **Usage** page shows what would carry over if the plan renewed now. An immediate upgrade is different: everything left of the cycle being replaced moves to the new plan. ## Cancel your subscription [#cancel-your-subscription] Cancel from **Billing** in the DevPass dashboard. A paid plan stays active through its current billing period. If a renewal is unpaid or still pending, cancellation ends the plan immediately and attempts to void its pending invoices. Immediate cancellation stops automatic collection, even if invoice cleanup needs to be retried. If Stripe's invoice lookup is unavailable, cancellation also ends the plan immediately to prevent further renewal attempts. The confirmation tells you whether the plan ended now or remains active until the period ends. ## Take the tour [#take-the-tour] ## Explore DevPass [#explore-devpass] ## Other products [#other-products] # Introduction to LLM Gateway URL: https://docs.llmgateway.ai-stage.zibl.ir/ LLM Gateway is an open-source API gateway that sits between your applications and LLM providers like OpenAI, Anthropic, Google AI Studio, and more. It provides a unified, OpenAI-compatible API interface with built-in cost tracking, caching, and intelligent routing. ## Products [#products] These docs cover four products. Pick one from the menu at the top of the sidebar, or start here: ## How it works [#how-it-works] Point your existing SDK at `https://api.llmgateway.io/v1` (or your self-hosted instance) and authenticate with an LLM Gateway API key — no code rewrites. The gateway routes each request to the right provider, tracks tokens and cost per model, provider, project, and API key, and fails over to a healthy provider when one errors. Pay per-token with prepaid credits at provider list rates, or bring your own provider keys (BYOK) for free. ## Why use a gateway? [#why-use-a-gateway] * **One integration** — switch models or providers by changing a model string, not your code. * **Cost visibility** — usage analytics and cost breakdowns across every provider in one dashboard. * **Reliability** — automatic provider failover when a provider fails, plus opt-in response caching per project. * **No lock-in** — open source (AGPLv3), self-hostable, and OpenAI-compatible end to end. ## Take the tour [#take-the-tour] ## Features [#features] All features are documented under https://docs.llmgateway.ai-stage.zibl.ir/features; each feature page is included in full in this file. ## AI Tooling [#ai-tooling] LLM Gateway is built to work seamlessly with AI agents and development tools. AI tooling: https://docs.llmgateway.ai-stage.zibl.ir/llms.txt (docs index for LLMs), https://docs.llmgateway.ai-stage.zibl.ir/llms-full.txt (this file), https://docs.llmgateway.ai-stage.zibl.ir/developers/mcp (MCP server), https://docs.llmgateway.ai-stage.zibl.ir/guides/agent-skills (agent skills), and https://llmgateway.io/templates (templates and agents). ## Next Steps [#next-steps] * [**Quickstart**](https://docs.llmgateway.ai-stage.zibl.ir/quick-start) — Get up and running in minutes * [**Overview**](https://docs.llmgateway.ai-stage.zibl.ir/overview) — Learn more about what LLM Gateway offers * [**Self-Host**](https://docs.llmgateway.ai-stage.zibl.ir/self-host) — Deploy on your own infrastructure # Overview URL: https://docs.llmgateway.ai-stage.zibl.ir/overview LLM Gateway is an open-source API gateway for Large Language Models (LLMs). It acts as a middleware between your applications and various LLM providers, allowing you to: * Route requests to multiple LLM providers (OpenAI, Anthropic, Google AI Studio, and others) * Manage API keys for different providers in one place * Track token usage and costs across all your LLM interactions * Analyze performance metrics to optimize your LLM usage ## Analyzing Your LLM Requests [#analyzing-your-llm-requests] LLM Gateway provides detailed insights into your LLM usage: * **Usage Metrics**: Track the number of requests, tokens used, and response times * **Cost Analysis**: Monitor spending across different models and providers * **Performance Tracking**: Identify patterns and optimize your prompts based on actual usage data * **Breakdown by Model**: Compare different models' performance and cost-effectiveness All this data is automatically collected and presented in an intuitive dashboard, helping you make informed decisions about your LLM strategy. ## Getting Started [#getting-started] Using LLM Gateway is simple. Just swap out your current LLM provider URL with the LLM Gateway API endpoint: ```bash curl -X POST https://api.llmgateway.io/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \ -d '{ "model": "gpt-4o", "messages": [ {"role": "user", "content": "Hello, how are you?"} ] }' ``` LLM Gateway maintains compatibility with the OpenAI API format, making migration seamless. Note that unknown or unsupported request parameters (for example `max_completion_tokens`, `stream_options`, `stop`, `seed`, `logprobs`, or `logit_bias`) are accepted and silently ignored rather than rejected, so a request carrying them still succeeds — the parameter just has no effect. Use `max_tokens` to limit completion length. ## Hosted vs. Self-Hosted [#hosted-vs-self-hosted] You can use LLM Gateway in two ways: * **Hosted Version**: For immediate use without setup, visit [llmgateway.io](https://llmgateway.io) to create an account and get an API key. * **Self-Hosted**: Deploy LLM Gateway on your own infrastructure for complete control over your data and configuration. The self-hosted version offers additional customization options and ensures your LLM traffic never leaves your infrastructure if desired. # Quickstart URL: https://docs.llmgateway.ai-stage.zibl.ir/quick-start Welcome to **LLM Gateway**—a single drop‑in endpoint that lets you call today’s best large‑language models while keeping **your existing code** and development workflow intact. > **TL;DR** — Point your HTTP requests to `https://api.llmgateway.io/v1/…`, supply your `LLM_GATEWAY_API_KEY`, and you’re done. *** ## 1 · Get an API key [#1--get-an-api-key] 1. Sign in to the dashboard. 2. Create a new Project → *Copy the key*. 3. Export it in your shell (or a `.env` file): ```bash export LLM_GATEWAY_API_KEY="llmgtwy_XXXXXXXXXXXXXXXX" ``` *** ## 2 · Pick your language [#2--pick-your-language] ```bash curl -X POST https://api.llmgateway.io/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \ -d '{ "model": "gpt-4o", "messages": [ {"role": "user", "content": "Hello, how are you?"} ] }' ``` ```typescript const response = await fetch("https://api.llmgateway.io/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${process.env.LLM_GATEWAY_API_KEY}`, }, body: JSON.stringify({ model: "gpt-4o", messages: [{ role: "user", content: "Hello, how are you?" }], }), }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); console.log(data.choices[0].message.content); ``` ```tsx import { useState } from "react"; function ChatComponent() { const [response, setResponse] = useState(""); const [loading, setLoading] = useState(false); const sendMessage = async () => { setLoading(true); try { const res = await fetch("https://api.llmgateway.io/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${process.env.REACT_APP_LLM_GATEWAY_API_KEY}`, }, body: JSON.stringify({ model: "gpt-4o", messages: [{ role: "user", content: "Hello, how are you?" }], }), }); if (!res.ok) { throw new Error(`HTTP error! status: ${res.status}`); } const data = await res.json(); setResponse(data.choices[0].message.content); } catch (error) { console.error("Error:", error); } finally { setLoading(false); } }; return (
{response &&

{response}

}
); } export default ChatComponent; ``` The gateway sends no CORS headers by default, so direct browser calls like this only work when the deployment's `GATEWAY_CORS_ORIGINS` allowlist (an environment variable on self-hosted deployments) includes your web app's origin. Prefer calling the gateway from a server route (see the Next.js tab), which also keeps your API key out of the browser bundle. ```typescript // app/api/chat/route.ts import { NextRequest, NextResponse } from "next/server"; export async function POST(request: NextRequest) { const { message } = await request.json(); const response = await fetch( "https://api.llmgateway.io/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${process.env.LLM_GATEWAY_API_KEY}`, }, body: JSON.stringify({ model: "gpt-4o", messages: [{ role: "user", content: message }], }), }, ); if (!response.ok) { return NextResponse.json( { error: "Failed to get response" }, { status: response.status }, ); } const data = await response.json(); return NextResponse.json({ message: data.choices[0].message.content, }); } // Usage in component: // const response = await fetch('/api/chat', { // method: 'POST', // headers: { 'Content-Type': 'application/json' }, // body: JSON.stringify({ message: 'Hello, how are you?' }) // }); ``` ```python import requests import os response = requests.post( 'https://api.llmgateway.io/v1/chat/completions', headers={ 'Content-Type': 'application/json', 'Authorization': f'Bearer {os.getenv("LLM_GATEWAY_API_KEY")}' }, json={ 'model': 'gpt-4o', 'messages': [ {'role': 'user', 'content': 'Hello, how are you?'} ] } ) response.raise_for_status() print(response.json()['choices'][0]['message']['content']) ``` ```java import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.URI; String apiKey = System.getenv("LLM_GATEWAY_API_KEY"); String requestBody = """ { "model": "gpt-4o", "messages": [ {"role": "user", "content": "Hello, how are you?"} ] } """; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.llmgateway.io/v1/chat/completions")) .header("Content-Type", "application/json") .header("Authorization", "Bearer " + apiKey) .POST(HttpRequest.BodyPublishers.ofString(requestBody)) .build(); HttpResponse response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); ``` ```rust use reqwest::Client; use serde_json::json; use std::env; #[tokio::main] async fn main() -> Result<(), Box> { let client = Client::new(); let api_key = env::var("LLM_GATEWAY_API_KEY")?; let response = client .post("https://api.llmgateway.io/v1/chat/completions") .header("Content-Type", "application/json") .header("Authorization", format!("Bearer {}", api_key)) .json(&json!({ "model": "gpt-4o", "messages": [ {"role": "user", "content": "Hello, how are you?"} ] })) .send() .await?; let result: serde_json::Value = response.json().await?; println!("{}", result["choices"][0]["message"]["content"]); Ok(()) } ``` ```go package main import ( "bytes" "encoding/json" "fmt" "net/http" "os" ) type ChatRequest struct { Model string `json:"model"` Messages []Message `json:"messages"` } type Message struct { Role string `json:"role"` Content string `json:"content"` } func main() { apiKey := os.Getenv("LLM_GATEWAY_API_KEY") requestBody := ChatRequest{ Model: "gpt-4o", Messages: []Message{{Role: "user", Content: "Hello, how are you?"}}, } jsonData, _ := json.Marshal(requestBody) req, _ := http.NewRequest("POST", "https://api.llmgateway.io/v1/chat/completions", bytes.NewBuffer(jsonData)) req.Header.Set("Content-Type", "application/json") req.Header.Set("Authorization", "Bearer "+apiKey) client := &http.Client{} resp, _ := client.Do(req) defer resp.Body.Close() fmt.Println("Response received") } ``` ```php 'gpt-4o', 'messages' => [ ['role' => 'user', 'content' => 'Hello, how are you?'] ] ]; $options = [ 'http' => [ 'header' => [ 'Content-Type: application/json', 'Authorization: Bearer ' . $apiKey ], 'method' => 'POST', 'content' => json_encode($data) ] ]; $context = stream_context_create($options); $response = file_get_contents( 'https://api.llmgateway.io/v1/chat/completions', false, $context ); if ($response === FALSE) { throw new Exception('Request failed'); } $result = json_decode($response, true); echo $result['choices'][0]['message']['content']; ?> ``` ```ruby require 'net/http' require 'json' require 'uri' uri = URI('https://api.llmgateway.io/v1/chat/completions') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true request = Net::HTTP::Post.new(uri) request['Content-Type'] = 'application/json' request['Authorization'] = "Bearer #{ENV['LLM_GATEWAY_API_KEY']}" request.body = { model: 'gpt-4o', messages: [ { role: 'user', content: 'Hello, how are you?' } ] }.to_json response = http.request(request) if response.code != '200' raise "HTTP Error: #{response.code}" end result = JSON.parse(response.body) puts result['choices'][0]['message']['content'] ``` *** ## 3 · SDK integrations [#3--sdk-integrations] ```ts title="ai-sdk.ts" import { llmgateway } from "@llmgateway/ai-sdk-provider"; import { generateText } from "ai"; const { text } = await generateText({ model: llmgateway("gpt-4o"), prompt: "Write a vegetarian lasagna recipe for 4 people.", }); ``` ```ts title="vercel-ai-sdk.ts" import { createOpenAI } from "@ai-sdk/openai"; import { generateText } from "ai"; const llmgateway = createOpenAI({ baseURL: "https://api.llmgateway.io/v1", apiKey: process.env.LLM_GATEWAY_API_KEY!, }); const { text } = await generateText({ model: llmgateway.chat("gpt-4o"), messages: [{ role: "user", content: "Hello, how are you?" }], }); console.log(text); ``` ```ts title="openai-sdk.ts" import OpenAI from "openai"; const openai = new OpenAI({ baseURL: "https://api.llmgateway.io/v1", apiKey: process.env.LLM_GATEWAY_API_KEY, }); const completion = await openai.chat.completions.create({ model: "gpt-4o", messages: [{ role: "user", content: "Hello, how are you?" }], }); console.log(completion.choices[0].message.content); ``` *** ## 4 · Going further [#4--going-further] * **Streaming**: pass `stream: true` to any request—the gateway normalizes every provider's stream into OpenAI-format SSE chunks, with a final chunk carrying `usage` and routing metadata before `data: [DONE]`. * **Monitoring**: Every call appears in the dashboard with latency, cost & provider breakdown. *** ## 5 · FAQ [#5--faq] **Which models are supported?** See the [Models page](https://llmgateway.io/models). **What makes your service different from OpenRouter?**

Unlike OpenRouter, we offer:

**How much do you charge for your services?** Our pricing structure is designed to be flexible and cost-effective: See the [Pricing section](https://llmgateway.io#pricing). *** ## 6 · Next steps [#6--next-steps] * Read [Self host docs](https://docs.llmgateway.ai-stage.zibl.ir/self-host) guide. * Drop into our [GitHub](https://github.com/theopenco/llmgateway) for help or feature requests. Happy building! ✨ # Lounge URL: https://docs.llmgateway.ai-stage.zibl.ir/lounge Lounge is the chat app built on LLM Gateway. Pick any model from the catalogue, switch mid-conversation, and compare answers side by side. The same app includes studios for images, video, speech, and decisions, plus live voice calls, on the web at [lounge.llmgateway.io](https://lounge.llmgateway.io) and on iPhone and iPad. ## Quick start [#quick-start] ### Sign in [#sign-in] Open [lounge.llmgateway.io](https://lounge.llmgateway.io) and sign in with your LLM Gateway account. ### Choose a model [#choose-a-model] Use the model picker above the composer. **Auto Route** picks a provider for you based on availability and cost. ### Chat, compare, or create [#chat-compare-or-create] Send a message, turn on **Comparison mode** to ask several models at once, or pick **Group**, **Image**, **Video**, **Audio**, **Decide**, or **Voice** in the sidebar. ### Get more with a membership [#get-more-with-a-membership] A [Lounge membership](https://docs.llmgateway.ai-stage.zibl.ir/learn/chat-plans) gives you monthly credits worth more than you pay, so heavy chat usage costs less than pay-as-you-go. ## Take the tour [#take-the-tour] ## Explore Lounge [#explore-lounge] ## Other products [#other-products] # Airside URL: https://docs.llmgateway.ai-stage.zibl.ir/airside Airside is where the companies behind the models run their listing on LLM Gateway. It uses an airport metaphor: LLM Gateway is the airport, developers are passengers, and providers are **carriers**. As a carrier you claim your provider, register your fleet of models, file your fares, and see the traffic that reaches you. ## Quick start [#quick-start] ### Sign up with your company email [#sign-up-with-your-company-email] Create an account at [airside.llmgateway.io](https://airside.llmgateway.io). The domain of your verified email must match your provider's API endpoint or website to claim it. ### Claim or register your carrier [#claim-or-register-your-carrier] Claim an existing catalogue provider, or register a new one. The LLM Gateway team reviews every claim before the carrier goes live. ### Register your fleet and file fares [#register-your-fleet-and-file-fares] Add each model with its context size and capabilities, and file its per-token prices. Every model must pass preflight, which runs on the carrier's saved **provider key**, managed by the carrier or LLM Gateway. A newly registered carrier files this single key with its first preflight; the same key serves live traffic once the model is approved. Replacements under **Settings** are smoke-tested and reviewed by the LLM Gateway team. Once a filing is approved, the model is routable as `/`. No separate test key is required. Previously saved test keys are ignored; you do not need to remove them or resubmit your provider key. [Airside test usage](https://docs.llmgateway.ai-stage.zibl.ir/features/airside#provider-key-and-test-usage) is included in provider-side usage and gateway accounting. ### Watch your traffic [#watch-your-traffic] The **Traffic** page shows requests, errors, tokens, and billed traffic per model. Invite teammates under **Crew** so your whole team can manage the listing. ## Take the tour [#take-the-tour] ## Explore Airside [#explore-airside] ## Other products [#other-products] # DevPass Usage API URL: https://docs.llmgateway.ai-stage.zibl.ir/developers/devpass-usage **Plan changes from October 15, 2026** DevPass subscription prices stay the same, but included usage decreases. Daily and premium weekly caps and Reset Pass benefits change on October 15; existing monthly allowances change at the first renewal on or after that date. New subscriptions from that date start with the new allowance. Review the [dated plan-change notice](https://devpass.llmgateway.io/legal/terms#october-2026-plan-changes) before subscribing. Use `GET /v1/key` to show DevPass allowance meters in a coding tool or other trusted application. The endpoint uses the application's existing gateway API key, so it does not require a dashboard session. A regular gateway API key is a secret. Do not embed it in public browser code or distribute it with an application. Read it from the user's secure local configuration or call the endpoint from a trusted backend. ## Request [#request] ```bash curl https://api.llmgateway.io/v1/key \ -H "Authorization: Bearer llmgtwy_your_api_key_here" ``` Only regular gateway API keys can use this endpoint. Platform publishable keys and end-user sessions receive `403 Forbidden` because they cannot read organization-level plan state. ## Response [#response] ```json { "data": { "label": "My coding tool", "usage": "31.42", "limit": null, "devPlan": "pro", "devPlanCreditsUsed": "25", "devPlanCreditsLimit": "158", "devPlanCreditsRemaining": "133.00", "devPlanDailyLimit": "14.22", "devPlanDailyCreditsUsed": "3.10", "devPlanDayResetsAt": "2026-08-22T09:30:00.000Z", "devPlanPremiumWeeklyLimit": "18.96", "devPlanPremiumCreditsUsed": "5.00", "devPlanPremiumWeekResetsAt": "2026-08-28T12:00:00.000Z" } } ``` | Field | Meaning | | ---------------------------- | -------------------------------------------------------------- | | `label` | Description of the key | | `usage` | All-time usage attributed to the key, in USD | | `limit` | All-time key usage limit in USD, or `null` | | `devPlan` | `lite`, `pro`, `max`, or `none` | | `devPlanCreditsUsed` | Plan credits used in the current billing cycle | | `devPlanCreditsLimit` | Plan credit allowance for the current billing cycle | | `devPlanCreditsRemaining` | Remaining plan credits, clamped to zero | | `devPlanDailyLimit` | Daily pacing allowance — plan credits usable per rolling 24h | | `devPlanDailyCreditsUsed` | Plan credits used in the current 24-hour window | | `devPlanDayResetsAt` | ISO 8601 reset time, or `null` when no daily window is active | | `devPlanPremiumWeeklyLimit` | Weekly premium-model allowance | | `devPlanPremiumCreditsUsed` | Premium-model credits used in the current weekly window | | `devPlanPremiumWeekResetsAt` | ISO 8601 reset time, or `null` when no weekly window is active | All USD values are decimal strings. Parse them before calculating percentages or remaining allowances. ## Daily window behavior [#daily-window-behavior] The pacing window starts with the first request that draws on the plan allowance and lasts 24 hours; it covers every model. When it expires, the endpoint returns `"0.00"` for `devPlanDailyCreditsUsed` and `null` for `devPlanDayResetsAt`; the full daily share is available again, and the next request starts a new window. ## Weekly window behavior [#weekly-window-behavior] The premium window starts with the first premium-model request and lasts seven days. When it expires, the endpoint returns `"0.00"` for `devPlanPremiumCreditsUsed` and `null` for `devPlanPremiumWeekResetsAt`; the full weekly allowance is already available, and the next premium request starts a new window. Pay-as-you-go keys return `"none"` for `devPlan` and zero for every DevPass field. This lets one integration support both key types without a separate account lookup. The endpoint remains readable when the key has exceeded its own usage limit, so an integration can explain why requests stopped. Invalid or inactive keys receive `401 Unauthorized`. See [Retrieve key status](https://docs.llmgateway.ai-stage.zibl.ir/v1_key_retrieve) for the generated API reference and complete response schema. ## Recovering a failed renewal [#recovering-a-failed-renewal] If your renewal fails, DevPass shows **Payment overdue** with a **Complete payment** link to the outstanding invoice. Follow the link to pay and complete any bank verification. Your allowance refreshes after payment succeeds. Updating your card in **Billing** also retries the failed renewal. Saving a card alone does not mean the invoice is paid: if payment remains outstanding, the invoice link stays visible above the card details. Return to DevPass after paying to refresh the payment status. # Agent Skills URL: https://docs.llmgateway.ai-stage.zibl.ir/guides/agent-skills **Agent Skills** are structured guidelines for AI coding agents, optimized for use with LLM Gateway and the AI SDK. They provide best practices and reusable instructions that help AI agents generate higher-quality code. ## Video walkthrough [#video-walkthrough]