Hayula Gateway: A Unified OpenAI-Compatible API Layer for Multi-Model Local Inference

We present Hayula Gateway, a unified API routing layer that provides OpenAI-compatible endpoints for multiple locally-hosted large language models running on a single Apple M2 Ultra workstation (192GB unified memory). The gateway orchestrates three distinct model services—SAIF (a multi-expert cybersecurity suite on port 8443), Averroes-Q (a bilingual Arabic-English model on port 8080), and DeepSeek R1 (a reasoning-optimized model on port 8083)—exposing them through a single /v1/chat/completions interface. Hayula Gateway implements intelligent request routing, load-aware dispatching, LRU-based model lifecycle management with hot-swap capability, and configurable fallback chains (SAIF → DeepSeek R1 → OpenRouter) for reliability. The system achieves zero cloud dependency for primary inference while maintaining sub-200ms routing overhead on the M2 Ultra's 76-core GPU. We describe the architecture, routing strategies, memory management under the 192GB unified memory constraint, and production deployment via launchd on macOS. Hayula Gateway is the central inference fabric of the Hayula ecosystem, demonstrating that a single consumer workstation can replace multiple cloud API subscriptions for diverse LLM workloads.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-24
DOI
https://doi.org/10.5281/zenodo.21537054
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hayula Gateway: A Unified OpenAI-Compatible API Layer for Multi-Model Local Inference

Yahya Saqban
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
article

Hayula Gateway: A Unified OpenAI-Compatible API Layer for Multi-Model Local Inference

Yahya Saqban
article en

Abstract

We present Hayula Gateway, a unified API routing layer that provides OpenAI-compatible endpoints for multiple locally-hosted large language models running on a single Apple M2 Ultra workstation (192GB unified memory). The gateway orchestrates three distinct model services—SAIF (a multi-expert cybersecurity suite on port 8443), Averroes-Q (a bilingual Arabic-English model on port 8080), and DeepSeek R1 (a reasoning-optimized model on port 8083)—exposing them through a single /v1/chat/completions interface. Hayula Gateway implements intelligent request routing, load-aware dispatching, LRU-based model lifecycle management with hot-swap capability, and configurable fallback chains (SAIF → DeepSeek R1 → OpenRouter) for reliability. The system achieves zero cloud dependency for primary inference while maintaining sub-200ms routing overhead on the M2 Ultra's 76-core GPU. We describe the architecture, routing strategies, memory management under the 192GB unified memory constraint, and production deployment via launchd on macOS. Hayula Gateway is the central inference fabric of the Hayula ecosystem, demonstrating that a single consumer workstation can replace multiple cloud API subscriptions for diverse LLM workloads.

Zenodo (CERN European Organization for Nuclear Research)
Tula University (RU)
Openalex Percentile: Top 7%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Hayula Gateway: A Unified OpenAI-Compatible API Layer for Multi-Model Local Inference — Yahya Saqban · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS