apisix

apacheApache-2.0活跃维护

云原生 API 网关,基于 LuaJIT 提供高性能路由、负载均衡和 Kubernetes Ingress,并支持 AI 网关场景,适合统一管理微服务与 AI 流量。

The Cloud-Native API Gateway and AI Gateway

3.19.0发布于 2026-09-28 05:13 UTC17,307star +5 / 7 天2,996fork同步于 2026-11-10 05:23 UTC

怎么上手

由 README 提炼,执行前请确认
curl -sL https://run.api7.ai/apisix/quickstart | sh
硬件要求按 README 说明

README 未说明具体硬件要求;可运行于裸机到 Kubernetes,并支持 ARM64 架构

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 NGINX 和 etcd 的动态高性能 API 网关,支持热更新插件,也能当 AI 网关用

云原生 API 网关,基于 LuaJIT 提供高性能路由、负载均衡和 Kubernetes Ingress,并支持 AI 网关场景,适合统一管理微服务与 AI 流量。

核心能力

  • 基于 etcd 实现动态路由与插件热加载,无需重启
  • 通过插件系统代理多家 LLM,支持重试与回退
  • 按 token 计量限流,控制 AI 调用成本
  • 支持 TCP/UDP、gRPC、Dubbo、MQTT、WebSocket 等多协议代理
  • 内置 key-auth、JWT、限流、CORS 等安全插件

容易踩的坑

快速启动脚本依赖 Docker,需先安装 Docker;默认监听 9080 端口、Admin API 为 9180 且默认只允许 127.0.0.1 访问;需同时启动 etcd 作为配置中心

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本3.19.0
  1. 3.19.0最新正式版2026-09-28 · 2026-09-28 05:13 UTC

    这个版本没有写更新说明。

  2. 3.18.02026-08-20 · 2026-08-20 07:57 UTC

    这个版本没有写更新说明。

  3. 3.17.02026-06-16 · 2026-06-16 07:22 UTC
    查看更新说明

    Notice GitHub is not an official release or archive area. Please download source code from the official download page and archive page.

    https://github.com/apache/apisix/blob/release/3.17/CHANGELOG.md#3170

  4. 3.16.02026-04-08 · 2026-04-08 01:36 UTC
    查看更新说明

    Notice GitHub is not an official release or archive area. Please download source code from the official download page and archive page.

    https://github.com/apache/apisix/blob/release/3.16/CHANGELOG.md#3160

  5. 3.15.02026-02-05 · 2026-02-05 13:55 UTC
    查看更新说明

    Notice GitHub is not an official release or archive area. Please download source code from the official download page and archive page.

    https://github.com/apache/apisix/blob/release/3.15/CHANGELOG.md#3150

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Apache APISIX API Gateway | AI Gateway

    Build Status License GitHub release GitHub stars Docker Pulls Commit activity GitHub issues Slack

    Apache APISIX is a dynamic, real-time, high-performance API Gateway.

    APISIX API Gateway provides rich traffic management features such as load balancing, dynamic upstream, canary release, circuit breaking, authentication, observability, and more. You can use it to handle traditional north-south traffic, as well as east-west traffic between services. It can also be used as a Kubernetes ingress controller.

    Table of Contents

    Why APISIX

    APISIX is built on top of NGINX and etcd. Compared with traditional API gateways, APISIX has dynamic routing and hot-loading of plugins, which is especially suitable for API management under a microservice architecture.

    The technical architecture of Apache APISIX:

    Technical architecture of Apache APISIX

    AI Gateway

    APISIX can serve as an AI Gateway through its flexible plugin system, providing:

    • AI proxying to route traffic to different LLM providers through a unified interface.
    • Load balancing, retries, and fallbacks across multiple LLMs to ensure the efficiency and reliability of AI agents.
    • Token-based rate limiting to control cost and protect upstream models.
    • Robust security for authentication, authorization, and traffic control on AI workloads.

    Get Started

    Install and run APISIX with a single command using the quickstart script (requires Docker):

    curl -sL https://run.api7.ai/apisix/quickstart | sh
    

    This starts APISIX (listening on port 9080) together with its etcd configuration store. Verify it is running:

    curl "http://127.0.0.1:9080" --head | grep Server
    

    Create your first route via the Admin API (port 9180) to proxy requests to an upstream service:

    curl -i "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT -d '
    {
      "uri": "/get",
      "upstream": {
        "type": "roundrobin",
        "nodes": {
          "httpbin.org:80": 1
        }
      }
    }'
    

    Send a request through APISIX to confirm the route works:

    curl "http://127.0.0.1:9080/get"
    

    To learn more, follow the Getting Started guide and the installation documentation for other deployment methods. To extend APISIX, see the plugin development guide, the plugin concept, and the REST Admin API reference.

    For more documents, please refer to the Apache APISIX Documentation site.

    Features

    You can use APISIX API Gateway as a traffic entrance to process all business data, including dynamic routing, dynamic upstream, dynamic certificates, A/B testing, canary release, blue-green deployment, limit rate, defense against malicious attacks, metrics, monitoring alarms, service observability, service governance, etc.

    • All platforms

      • Cloud-Native: Platform agnostic, No vendor lock-in, APISIX API Gateway can run from bare-metal to Kubernetes.
      • Supports ARM64: Don't worry about the lock-in of the infra technology.
    • Multi protocols

    • Full Dynamic

      • Hot Updates And Hot Plugins: Continuously updates its configurations and plugins without restarts!
      • Proxy Rewrite: Support rewrite the host, uri, schema, method, headers of the request before send to upstream.
      • Response Rewrite: Set customized response status code, body and header to the client.
      • Dynamic Load Balancing: Round-robin load balancing with weight.
      • Hash-based Load Balancing: Load balance with consistent hashing sessions.
      • Health Checks: Enable health check on the upstream node and will automatically filter unhealthy nodes during load balancing to ensure system stability.
      • Circuit-Breaker: Intelligent tracking of unhealthy upstream services.
      • Proxy Mirror: Provides the ability to mirror client requests.
      • Traffic Split: Allows users to incrementally direct percentages of traffic between various upstreams.
    • Fine-grained routing

    • Security

    • OPS friendly

      • Zipkin tracing: Zipkin
      • Open source APM: support Apache SkyWalking
      • Works with external service discovery: In addition to the built-in etcd, it also supports Consul, Consul_kv, Nacos, Eureka and Zookeeper (CP).
      • Monitoring And Metrics: Prometheus
      • Clustering: APISIX nodes are stateless, creates clustering of the configuration center, please refer to etcd Clustering Guide.
      • High availability: Support to configure multiple etcd addresses in the same cluster.
      • Dashboard
      • Version Control: Supports rollbacks of operations.
      • CLI: start\stop\reload APISIX through the command line.
      • Standalone: Supports to load route rules from local YAML file, it is more friendly such as under the kubernetes(k8s).
      • Global Rule: Allows to run any plugin for all request, eg: limit rate, IP filter etc.
      • High performance: The single-core QPS reaches 18k with an average delay of fewer than 0.2 milliseconds.
      • Fault Injection
      • REST Admin API: Using the REST Admin API to control Apache APISIX, which only allows 127.0.0.1 access by default, you can modify the allow_admin field in conf/config.yaml to specify a list of IPs that are allowed to call the Admin API. Also, note that the Admin API uses key auth to verify the identity of the caller.
      • External Loggers: Export access logs to external log management tools. (HTTP Logger, TCP Logger, Kafka Logger, UDP Logger, RocketMQ Logger, SkyWalking Logger, Alibaba Cloud Logging(SLS), Google Cloud Logging, Splunk HEC Logging, File Logger, SolarWinds Loggly Logging, TencentCloud CLS).
      • ClickHouse: push logs to ClickHouse.
      • Elasticsearch: push logs to Elasticsearch.
      • Datadog: push custom metrics to the DogStatsD server, comes bundled with Datadog agent, over the UDP protocol. DogStatsD basically is an implementation of StatsD protocol which collects the custom metrics for Apache APISIX agent, aggregates it into a single data point and sends it to the configured Datadog server.
      • Helm charts
      • HashiCorp Vault: Support secret management solution for accessing secrets from Vault secure storage backed in a low trust environment. Currently, RS256 keys (public-private key pairs) or secret keys can be linked from vault in jwt-auth authentication plugin using APISIX Secret resource.
    • Highly scalable

    • Multi-Language support

      • Apache APISIX is a multi-language gateway for plugin development and provides support via RPC and Wasm. Multi Language Support into Apache APISIX
      • The RPC way, is the current way. Developers can choose the language according to their needs and after starting an independent process with the RPC, it exchanges data with APISIX through local RPC communication. Till this moment, APISIX has support for Java, Golang, Python and Node.js.
      • The Wasm or WebAssembly, is an experimental way. APISIX can load and run Wasm bytecode via APISIX wasm plugin written with the Proxy Wasm SDK. Developers only need to write the code according to the SDK and then compile it into a Wasm bytecode that runs on Wasm VM with APISIX.
    • Serverless

      • Lua functions: Invoke functions in each phase in APISIX.
      • AWS Lambda: Integration with AWS Lambda function as a dynamic upstream to proxy all requests for a particular URI to the AWS API gateway endpoint. Supports authorization via api key and AWS IAM access secret.
      • Azure Functions: Seamless integration with Azure Serverless Function as a dynamic upstream to proxy all requests for a particular URI to the Microsoft Azure cloud.
      • Apache OpenWhisk: Seamless integration with Apache OpenWhisk as a dynamic upstream to proxy all requests for a particular URI to your own OpenWhisk cluster.

    Benchmark

    Using AWS's eight-core server, APISIX's QPS reaches 140,000 with a latency of only 0.2 ms.

    Benchmark script has been open sourced, welcome to try and contribute.

    APISIX also works perfectly in AWS graviton3 C7g.

    Community

    User Stories

    Who Uses APISIX API Gateway?

    A wide variety of companies and organizations use APISIX API Gateway for research, production and commercial product, below are some of them:

    • Airwallex
    • Bilibili
    • CVTE
    • European eFactory Platform
    • European Copernicus Reference System
    • Geely
    • HONOR
    • Horizon Robotics
    • iQIYI
    • Lenovo
    • NASA JPL
    • Nayuki
    • OPPO
    • QingCloud
    • Swisscom
    • Tencent Game
    • Travelsky
    • vivo
    • Sina Weibo
    • WeCity
    • WPS
    • XPENG
    • Zoom

    Logos

    Acknowledgments

    Inspired by Kong and Orange.

    License

    Apache 2.0 License