SMA Product
smaapi Gateway (SMA) — Enterprise AI Gateway
smaapi Gateway (SMA by Slime Mould Tech, www.smaapi.com) is an enterprise AI gateway and model access platform: one OpenAI-compatible API in front of many LLM providers, with smart routing, cost and permission governance, and full audit trails — so teams can use multiple models with control.
01 Problem
What problem does SMA solve?
Running on multiple models is now the norm: different tasks suit different models, and every provider ships its own API, keys, and billing. Integrating each one directly leaves keys scattered across codebases, costs without a single source of truth, calls that cannot be audited, and provider switches that require code changes. SMA adds a unified access and governance layer between your applications and the providers, collapsing all of that into one controlled egress.
02 Governance
Three layers, three kinds of trust
A gateway's value is not only that it connects, but that you can entrust it. SMA's three capabilities map to the three kinds of evidence an enterprise needs to trust an AI platform:
Smart routing
Traffic is dispatched by request characteristics and live model state — availability, latency, cost — constrained by enterprise policy and manual calibration. Failover and degradation are automatic and transparent to applications. Routing decisions are accountable, not a black box.
Cost & permission governance
Budgets, quotas, and model-access scopes per team, application, and key. Every call is metered through one pipeline; costs are attributable by dimension; provider keys are managed centrally instead of scattered in application code.
Full audit trail
Every call is logged with caller, target model, usage, and timestamp — traceable and reconcilable, a complete evidence chain for compliance review. Any single call can be replayed and questioned after the fact.
03 Capabilities
The full capability map
SMA's capabilities split by form: the software / API layer works as soon as you integrate; the hardware / SMA Edge layer is the upgrade path for higher availability and private deployment.
Software / API layer (works on integration)
- Unified access: one OpenAI-compatible API in front of many Chinese and international models; applications only change base_url.
- Smart routing: route by task characteristics and difficulty — simple tasks to a faster, cheaper model, complex tasks to a stronger one, code tasks to the code channel.
- Explainable routing: candidate models, quality gates, and exclusion reasons are all inspectable — routing is not a black box.
- Data protection: personal and Chinese sensitive entities are sanitized at the egress (Token Vault); plaintext is not sent downstream and not stored in audit.
- Content-safety policy: enterprise red lines are enforced at the gateway — a hit is blocked and no external model is called.
- High availability & failover: recoverable errors switch to a candidate model with context preserved via the state header, transparently to the application. See high-availability access →
- Cost & permission governance: budgets, quotas, and rate limits per team / application / key; unified metering, reconcilable by key, project, or model. See cost governance →
- Full audit trail: caller, target model, usage, and time are logged for every call — traceable and reconcilable.
- Model calibration & evaluation: calibrate model capability using your own task set, so model selection is evidence-based.
Hardware / SMA Edge layer (upgrade form)
- Active health monitoring: continuous monitoring of each endpoint's real-time state with preemptive switching; this requires the SMA gateway hardware.
- Private deployment: the gateway runs inside your own environment, so prompts, keys, and logs stay within the enterprise boundary — suited to strict-compliance scenarios.
Capabilities follow your product configuration and contract terms; active health monitoring and private deployment (data staying in-boundary) are provided by the SMA Edge hardware form. For compliant overseas access, see the compliance guide.
04 Integrate
One line of config to integrate
Keep your OpenAI SDK and point base_url at the gateway:
from openai import OpenAI
client = OpenAI(
base_url="https://www.smaapi.com/v1", # point to the SMA gateway
api_key="YOUR_SMA_KEY", # gateway key; provider keys stay inside the enterprise
)
resp = client.chat.completions.create(
model="deepseek-chat", # model name is routable per policy
messages=[{"role": "user", "content": "Hello"}],
) Model names are nominative; available models and routing policy follow your console configuration.
Get started in four steps
- Register and create a key: sign up in the console, create an API key on the key-management page, pick a model group, and enable it.
- Top up: online Alipay (instant) or corporate bank transfer (with a technical-service invoice).
- Integrate: keep your OpenAI SDK and point base_url at the gateway (see the example above); experienced teams self-serve in minutes.
- Support: 24/7 technical support via WeCom helps with installation and integration until you are connected.
Register and get an API key → 24/7 technical support · Alipay / corporate top-up · technical-service invoice
05 Team
Chief Scientist
Prof. Xie Yuan Chief Scientist
Professor, School of Computer Science & Technology, East China Normal University · Full-time mentor, National Institute of AI (Shanghai) · Ph.D. supervisor
Has led national research programs including the MOST "New Generation AI" (Sci-Tech Innovation 2030) initiative and National Natural Science Foundation grants. Over 100 papers in authoritative journals and top conferences — including 100+ CCF-A papers as first/corresponding author — with more than 21,000 Google Scholar citations.
ResearchContinual learning for large models and continually-evolving agents — closely related to SMA's memory-retention and routing-calibration design.
06 Who it's for
Who is SMA for?
Engineering and platform teams that need to access multiple LLM providers — international and Chinese models alike — with organization-level requirements on cost, permissions, compliance, and audit. Applications keep their OpenAI SDK and simply point base_url at the gateway.