Repository navigation
v1.12.0 — Gemini generation, Gemini Decision routing, and Fun-ASR
🚀 Get started
New to AISIX? Get the gateway running and route your first LLM request in minutes:
- 📖 Documentation — https://docs.api7.ai/ai-gateway/
- ⚡ Gateway quickstart (one container, declarative
resources.yaml) — https://docs.api7.ai/ai-gateway/getting-started/gateway-quickstart
📦 Download
Pull the container image from the GitHub Container Registry:
docker pull ghcr.io/api7/aisix:1.12.0The rolling latest tag and the docker.io/api7/aisix mirror for private/offline deployments are listed on the package page.
Highlights
- Gemini generation. Gemini and Antigravity clients can use AISIX model aliases with
generateContentandstreamGenerateContent?alt=sse. Inresources.yaml, setapis.geminion a provider key to enable native Gemini requests. Setapis.gemini.baseto a versioned Gemini API root for a custom endpoint. The gateway can also translate requests to compatible Chat Completions upstreams. #1466 - Gemini Decision for semantic routing. Set
classifier.typetogemini_decisionin the semantic resource. Useclassifier.model_idto reference a non-wildcardgemini-decision-1direct model with a Google provider key. Configure 2–254 named routes with descriptions. #1470 - DashScope Fun-ASR over WebSocket. Connect to
/api-ws/v1/inferencewith a gateway API key and run sequential transcription tasks on one connection using direct Alibaba models. The gateway records usage for each task from the audio duration reported by DashScope. #1467 - Local budget calendars. Set
budget_policy.timezoneto an IANA timezone inresources.yamlto reset daily, weekly, and monthly budgets on the local calendar. The default is UTC. On exhausted budget marks,period_startis inclusive andperiod_endis exclusive. With onlyperiod_startset, the gateway matches it against the start of the current period in the configured timezone. Setreason.message_prefixto include the next reset time in the budget denial message. #1468
Usage and observability
- Token counts. The gateway preserves explicitly reported zero counts and estimates missing counts. The estimates also reach client responses on supported paths, including native Responses streams and buffered Messages responses. Allow
total_tokensto be absent in usage events that contain estimates. #1463 - Cached usage. Exact and semantic Redis cache hits preserve reported counts, usage details, and modality counts. Redis and in-memory cache hits preserve the provider's prompt-cache write breakdown by cache lifetime. #1465
- Client classification. Usage events, observability exports, and by-client token metrics use the same client type. Rules in
observability.metrics.client_type_rulestake precedence over built-in rules. #1469
Stability
- Updated URL parsing to prevent a gateway crash during MCP user OAuth discovery. #1464
Upgrade notes
- Redis warm-up. Upgraded gateways rebuild exact and semantic Redis cache entries from upstream responses. Cache hit rates can drop while the cache warms up. Old entries expire on their existing TTL. #1465
- Fun-ASR route priority. The built-in Fun-ASR route takes precedence over path-only passthrough rules at
/api-ws/v1/inference. To keep forwarding ordinary HTTP traffic that used a path-only rule there, move it to a different path or add the request'sHostto the rule'shostslist. #1467 - Path encoding. When the gateway parses and forwards a URL, a literal
^in the path is sent as%5E. Update upstreams that match the raw path to accept the encoded form. #1464
What's Changed
- deps: bump url to 2.5.9 to fix RUSTSEC-2026-0592 by @jarvis9443 in #1464
- fix(usage): estimate only missing usage counts, drop the total beside an estimate, and report the estimate to the client by @jarvis9443 in #1463
- fix(cache): preserve upstream token usage and details on cache hits by @jarvis9443 in #1465
- feat(gemini): support Antigravity generation over Gemini and Chat Completions by @jarvis9443 in #1466
- Support native DashScope Fun-ASR WebSocket transcription by @jarvis9443 in #1467
- feat(budget): support IANA timezone for calendar budget period boundaries by @jarvis9443 in #1468
- Unify client type classification across usage and metrics by @jarvis9443 in #1469
- Add Gemini Decision classifiers for semantic routing by @jarvis9443 in #1470
- docs(schema): describe both semantic routing modes by @jarvis9443 in #1471
Full Changelog: v1.11.0...v1.12.0