Self-host a Laya API server

Most Laya servers implement the same `POST /v1/systemone` wire format as TypeSafe's hosted Jev API. An existing Jev client can often switch to a self-hosted Laya by changing its base URL. The answers then come from Laya, a different and smaller model.

361 projects

A

laya-trader-service

asianman231

Serves Laya decision probabilities through a Gradio and FastAPI service

0·HF Space
L

aimtas-system-one-decision-model-laya

letrthang

Serves Laya typed decisions for smart-farm workflows through a Jev-compatible API

0·HF Space

DecisionSwarm

themaincharacter

Builds and serves configurable swarms of Laya decision models as Python libraries, CLI tools, and services

0·GitHub repo

LayaAgent

scutiii2

Provides an HTTP service for asking typed questions of locally installed Laya models

0·GitHub repo

sys1_mcp

dmonteroh

Provides an MCP server and HTTP daemon for System One decision models, including an in-process Laya backend

0·GitHub repo

LAYA-NPU

hellonearthis

Serves Laya-based intent classification and decision routing with Intel NPU acceleration

0·GitHub repo

runlaya

Khip01

Serves Laya ONNX models through an API for choice, score, and yes-or-no predictions

0·GitHub repo

laya_api_test_setup

Perledition

Provides a FastAPI Docker setup for testing Laya as an embedded decision gate

0·GitHub repo

pennywise

1sakshm

Trains a Laya decision model with reinforcement learning to route requests across LLM tiers

0·GitHub repo

laya-docker

thomashaertel

Runs Laya on AMD GPUs in Docker and exposes Jev-compatible decision APIs and an MCP server

0·GitHub repo

laya-fastapi

builtbybasit

Provides a local Jev-compatible API powered by Laya with MLX and PyTorch backends

0·GitHub repo

laya-localserver

smellship

Deploys the Laya decision model locally and connects it to UI automation workflows

0·GitHub repo
Y

laya-api-2

yanng404

Runs the Laya HTTP server with three checkpoints for an authenticated API gateway

0·HF Space

laya-documentation

P0dp1vass

Documents Laya in Russian with production examples for routing, moderation, prioritization, and HTTP serving

0·GitHub repo

llmodel-server-configs

karlbur

Configures a self-hosted vLLM and LiteLLM stack alongside the Laya decision engine

0·GitHub repo

homelab-ai

huynle

Serves Laya text decisions and SigLIP2 image classifications through an authenticated API

0·GitHub repo

laya-test

argx-pkerestey

Runs a Python HTTP agent that sends sentiment decisions to an Ollaya-hosted Laya model

0·GitHub repo

laya-slim-cpu-only-on-render

artlu99

Deploys a quantized Laya model as an API service on Render

0·GitHub repo

layaAI-microservice

Semprista

FastAPI microservice for the open-source Laya AI decision model

0·GitHub repo
Y

laya-api-3

yanng404

Runs the Laya HTTP server with preloaded checkpoints for an API gateway

0·HF Space

laya_serv_api

benizz0

Packages a local fine-tuned Laya checkpoint as an authenticated Docker HTTP server

0·GitHub repo
B

laya-multilingual-cpu

bolikoto

Serves the multilingual Laya model through an authenticated CPU API compatible with Jev

0·HF Space
B

laya-multilingual-cpu-basic

bolikoto

Serves ConvAI's multilingual Laya model through an authenticated Jev-compatible CPU API

0·HF Space

laya-railway

baranberkay96

Deploys Laya's typed-decision API on Railway with pinned CPU-only dependencies and verified model weights

0·GitHub repo

Official: laya-serve

From the core README:

pip install "laya[serve]"
LAYA_DEVICE=cuda LAYA_PRELOAD=1 laya-serve   # binds 0.0.0.0:8000, preloads all 3 checkpoints
curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{
  "state": {"body": "billed twice, refund please or we cancel"},
  "questions": {"dept": {"type": "choice", "instructions": "which team?",
                "criteria": {"billing": "refunds", "tech": "bugs"}}}
}'

Set LAYA_API_KEY to require a bearer token. Other settings are LAYA_HOST, LAYA_PORT, LAYA_MODELS and LAYA_THREADS. A Nix flake and a NixOS module are included.

ollaya

ollaya works like Ollama for decision models:

curl -fsSL https://ollaya.dev/install.sh | sh
ollaya run laya --preset triage "I was charged twice for my subscription this month and want a refund."

It serves /v1/systemone, and the README says the official TypeSafe SDK works unchanged with TYPESAFE_BASE_URL=http://localhost:11435.

Docker

LAYA SERVER adds a web console and API-key management:

docker run -d --name laya-server --init --restart unless-stopped \
  -p 8080:8080 \
  -v laya-data:/data \
  -e LAYA_ADMIN_USERNAME=admin \
  -e LAYA_ADMIN_PASSWORD='change-this-admin-password' \
  1panel/laya-server:latest

docker-laya publishes ghcr.io/chneau/laya for amd64 and arm64. Its README reports roughly 0.35 s per predict on CPU.

Native servers

laya.cpp (C++, CUDA, Vulkan and Core ML), sys1 (Rust on candle) and laya-apple (MLX plus Neural Engine) all serve /v1/systemone.

Differences from Jev

The core README lists three for client ports. Options share a token budget instead of Jev's 255-option cap. Every score level needs a description. confidence is computed differently, so a threshold tuned on Jev does not transfer; gate on answer_confidence instead. laya-rs uses /v1/system-one with a hyphen and is not a drop-in replacement.

Hosted Laya APIs

If you would rather not run a server at all, some services host Laya behind the same /v1/systemone wire format, among them layahost (EU, run by the makers of laya.tools) and Laya Studio (Switzerland). A one-click Railway template sits in between: still self-hosting, on Railway's machines. What to compare between them and your own server: Hosted Laya API: when not to self-host.

More ways to use Laya