Adding AI to a product is no longer "calling an API". It means juggling five vendors, containing costs, guaranteeing uptime and protecting data. AYXZA Relay solves all of this with a single component.
01
Multi-tenant SaaS
Per-customer cost tracking, per-plan limits, different models per tier. Out of the box.
02
On-premise enterprise
Local Ollama for confidential data, optional cloud fallback for non-sensitive tasks.
03
Corporate knowledge base
RAG over internal documents with pgvector, auto re-indexing, per-tenant isolation.
04
Agents & chains
Multi-step orchestration, native structured output (Gemini, OpenAI) and multimodal attachments (PDF, images) on prompts.
05
Provider migration
The model is changed from configuration or from the console, without touching application code.
06
High availability
Transparent fallback: if a provider does not answer, the request moves to the declared backup model with no code changes.
01
Routing profiles
Each request stays within its declared class, local, European cloud or cloud, and moves through the candidates in order.
02
Resilience
Backup models, a per-provider circuit breaker, several keys per provider with an automatic pause for the failing one, and an on-demand health probe. On native providers every call has a time limit, which the configuration can change: 120 seconds per attempt and, when streaming, until the first chunk; 60 seconds between two chunks. When the profile still has a backup model, the first chunk is awaited for 45 seconds before moving on to it.
03
Web console
A web console manages providers, models, keys, prompts, quotas and the knowledge base, with a test bench for chat and embeddings. It starts with one command and, by default, listens only on the machine itself.
04
Versioned prompts
Prompts are versioned and validated: every run records the version used and retries when the output fails its checks; on saving, a warning flags the fields that the template and the output schema do not share. Prompts can also live in files, one folder per prompt reviewed together with the application's code: loading is all or nothing, creates a version only when the content changes, and the console shows where each version came from.
05
Documents and confidence
PDF and Word documents enter the knowledge base; answers carry a confidence that combines the model's judgement with the relevance of the retrieved passages, and a question outside the corpus returns no answer without calling the model.
06
Quotas and budgets
Spending quotas per user and per tenant, with actual spend set against the cap. Tokens the provider serves from its cache are counted separately and charged at their own price, not at the full input price.
07
Data retention
Calls older than a given date are anonymised after a dry run, by user, user subtree or source, on the activity and knowledge-base archive branches; optionally content rows are deleted too, never cost rows. A second identical pass touches nothing. A pass can be limited to individual runs, or empty only the texts and keep rows and costs.
08
OpenTelemetry
Native OpenTelemetry traces on every call, ready for any collector.
09
Tool loop
The model calls the application's functions and Relay manages the turns until the answer.
10
Price list
A reference price list ships in the package, with source, reading date and announced changes; the forge-ai listino command compares the rates of the registered models and aligns them, without rewriting the cost of past calls.
11
Required class
Chat, embeddings, meta-prompts and the knowledge base can require a confidentiality class: a call to a provider of a different class is refused before any text leaves, at every fallback hop.
12
Web search
On profiles that declare it, the model searches with Google on Vertex: sources, searches and Google's box come back with the answer, streaming included, and the cost per search counts towards quotas and budgets. The text of the searches is not logged.
13
Personal data filter
A local corrector, with no network, replaces email addresses, tax codes, IBANs, cards, VAT numbers, phone numbers, dates of birth, addresses with a street number and the terms given by the caller with numbered placeholders, then puts the values back in the answer. It works in turns with web search, on by default on every profile, and in every turn that asks for anonymisation, tools included: the application's functions receive the real values, the model the placeholders, and even pieces of values already recognised are removed from the results. Only counts are logged.
14
Model verification
The forge-ai verifica command sends a model, or a whole profile, minimal real requests for every declared capability, text, image, PDF, JSON with schema, tools and vectors, and keeps the report.
15
Checked vectors
Every embedding response is checked: as many vectors as texts, of the requested size. The task, document or query, is translated for each model, and when the provider does not declare tokens Relay estimates them, so costs and quotas do not stay at zero.
16
HTTP service
The same gateway runs as an HTTP service, in a single process, shared by several applications: chat, streaming included, embeddings, knowledge base, meta-prompts, speech synthesis and users. Each application has its own token, revocable and with an expiry, tied to its branch of users and written on every call, and its own prompts and knowledge base sources, which it manages through the API: prompt folders with a dry run, documents uploaded without duplicates thanks to their hash, background reindexing with a job to follow. A provider key loaded on a user applies to its whole branch. A Python client with the same shape as the gateway talks to the service, the API contract grows only by additions, and a test page with no data and a container example, with the database on no public port, come with the interface.
17
AYXZA Chat
The AI assistant for the people in the company is a product of its own, AYXZA Chat, built on Relay and installed alongside it: its answers go through Relay's profiles, every call lands in its cost log, and conversations, attachments and memory follow its retention rules. It can also be embedded in the pages of another application, which becomes its host.
18
Speech synthesis
A text becomes audio in the chosen voice, on a model or through a profile with fallback across candidates, on the models that declare the capability. The provider's original file comes back intact with its provenance statement, and every attempt stays in the log as a call.