New

Announcing AISIX: The AI-Native AI Gateway for LLMs and AI AgentsLearn More

Learn More

From the original creators of Apache APISIX

AISIX AI Gateway
for LLMs and AI agents.

AISIX is an open-source AI gateway for LLMs and agents. Connect applications to supported models through one OpenAI-compatible API. Run the gateway in your infrastructure and add AISIX Cloud when you need centralized management.

python
from openai import OpenAI
client = OpenAI(
    base_url="https://YOUR_AISIX_GATEWAY/v1",
    api_key="YOUR_CALLER_API_KEY",
)
resp = client.chat.completions.create(
    model="YOUR_MODEL_ALIAS",
    messages=[{"role": "user", "content": "Hello"}],
)
Sub-ms
p50 overhead in published test
100+
LLM providers
API
OpenAI-compatible
Apache-2.0
open-source core

Don't let AI plumbing slow your roadmap

The first prompt is easy. The 50th service, the 10th model, and the first incident in front of customers are not. A gateway is where that complexity goes — so your team keeps shipping.

Direct to providers

Every team reinvents the plumbing

  • A different SDK per provider — every integration is a project
  • No shared limits — one runaway loop takes everyone down
  • Spend you can't see until the invoice lands
  • Provider keys copied across every service
  • No guardrails or audit trail — afraid to ship AI to customers
With AISIX

One platform to ship AI faster

  • One OpenAI-compatible API — verify required endpoints and provider features
  • Shared limits and AISIX Cloud budgets — control traffic and spend
  • Every call logged — see what's working
  • Provider keys at the gateway boundary — AISIX Cloud encrypts managed keys
  • Guardrails, retries & failover — put AI in front of customers

Route supported models through one gateway

Point your OpenAI SDK at AISIX for supported endpoints and providers. Validate tools, streaming, and provider-specific features before switching a production workflow.

  • OpenAI-compatible chat, streaming (SSE), embeddings, rerank, audio & images — plus an Anthropic-compatible /v1/messages.
  • Virtual / routing models let one model name fan out across providers and regions.
  • Cloud providers — AWS Bedrock, Azure OpenAI & GCP Vertex AI — alongside direct APIs.
Providers, one interface
OpenAIAnthropicGoogle GeminiDeepSeek AWS BedrockAzure OpenAIVertex AIMistral GroqCohereQwenTogetherFireworks 100+ more →

One policy point between applications and models

Applications and agents send model requests through one AISIX gateway using a caller key and model alias. AISIX authenticates the caller, applies traffic policy, records telemetry, and routes each approved request to the configured model provider.

AISIX AI Gateway architecture connecting web, mobile, agent, and API clients to model providers through authentication, rate limiting, load balancing, and observability controls.
Reference architecture: clients use an AISIX caller key and model alias; provider credentials and routing policy remain at the gateway boundary.

Evaluate capabilities against published behavior

Use the official documentation to verify the request path, configuration boundary, and operational limits behind each capability.

Production requirementAISIX capabilityDocumentation evidence
One client APIOpenAI-compatible endpoints with caller keys and model aliasesOpenAI-compatible API
Provider resilienceMulti-target routing, eligible retries, and pre-stream failoverRouting and failover
Shared traffic policyRequest, token, and concurrency limits scoped by policyRate limit policies
Input and output controlsMonitor or block guardrails before and after provider callsGuardrail behavior
Operational evidenceGateway metrics for requests, tokens, limits, models, and policyMetrics reference

Your whole AI gateway, in one console

AISIX Cloud brings request, latency, error, usage, and cost views together for the gateways you operate.

AISIX Cloud console overview: request volume, p50/p99 latency, error rate, cost today, a 24-hour request and cost chart, and environment health across instances.

Everything you need to take AI to production

Choose the routing, traffic controls, and management options your deployment needs.

Configure aliases for supported upstream models. Use weighted load balancing, failover, health checks, and semantic & cost-optimal routing where supported. Validate each client workflow before changing its provider.

AISIX models page aliasing gpt-4o, claude-3-7-sonnet, bedrock-claude-prod, gemini-flash and others to upstream providers and API bases.

Scale to production traffic without surprises. Sliding-window request (RPM / RPD) and token (TPM / TPD) limits plus concurrency caps — scoped per key, team, or provider account, and synchronized across replicas through Redis.

AISIX rate limits: per-key burst, per-team cap, and provider-account protection with request and token budgets per minute.

Put AI in front of customers, confidently. Pre-input and post-output checks — keyword / regex blocklists, PII redaction (Presidio), prompt-injection and moderation (Lakera, OpenAI Moderation, Llama-Guard), and per-key model access control.

AISIX guardrails: competitor-mention blocklist, PII redaction, and a fail-closed prompt-injection shield, scoped to keys or models.

Track usage and spend with AISIX Cloud. Review model costs across environments and set budgets and alerts for centrally managed gateways.

AISIX usage and spend: org spend against a monthly cap, requests this month, top model by cost, and per-environment and per-member breakdowns.

A real gateway — not a Python proxy

AISIX is a Rust gateway built for model and agent traffic, with routing, policy, and telemetry on the request path.

Rs

Built in Rust

A compiled Rust gateway with no garbage-collection pauses. Published tests report sub-millisecond p50 proxy overhead under their stated conditions; measure your own provider traffic and enabled policies.

OS

Open source, Apache-2.0

Run the open-source gateway in your infrastructure without a control plane, or connect your gateway to AISIX Cloud for centralized management.

A6

From the Apache APISIX team

Five-plus years of production gateway engineering from API7.ai, the creators of Apache APISIX — now rebuilt for LLMs and agents.

VPC

Control plane hosting options

Run the gateway in your own environment. Host the AISIX Cloud control plane yourself, or have API7 host the control plane.

Ready when you scale
SOC 2 Type IIISO 27001GDPRHIPAAAISIX Cloud SCIMAudit logs

Related Guide

Ship AI that grows your business

Use an OpenAI-compatible API with a gateway you run in your infrastructure. Deploy open-source AISIX yourself or contact API7 to evaluate AISIX Cloud.