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
email-decider
Lucasborges198
Provides a Go HTTP gateway that forwards email intent decisions to a Laya-powered Python service
poi-laya-judge
gokul0303
Provides a Gradio API for Laya-based semantic classification of points-of-interest search terms
laya-systemone-static
afelin
Hosts a static placeholder for a planned Laya system-one API while awaiting compute access
laya-systemone
afelin
Provides a Docker Space for recording requests to the finfin Laya system-one endpoint
nika-laya
nika-111155
Serves Laya decisions through a Jev-compatible API for Codename Nika
laya-server
sgaunet
Packages upstream Laya in a multi-architecture Docker image with CPU PyTorch
Laya-Playground
Emil-Wilson1
Provides a FastAPI playground for making typed decisions with Laya
laya-gateway
amanjoshi2002
Uses Laya to classify prompt safety and route prompts to suitable models
laya-article-examples
huaigu
Demonstrates Laya-based ticket triage, business gating, API serving, benchmarking, and data auditing
laya-system-one-docker
PikkonMG
Builds CPU and NVIDIA Docker images for the Laya System 1 server
loura-ticket-service
KhalidAlnujaidi
An asynchronous support-ticket classification service using a local Laya model
laya-local
ignit-fury
Serves the Laya decision model locally through a FastAPI classification API
laya-runpod
MelloB1989
Packages the Laya decision engine as a scalable RunPod serverless queue worker
Laya-model-router
MikkelCardon
Routes prompts to Claude models by task type using Laya classification
laya-mlx-http
mjrussell91
Serves the Laya MLX question-answering model through a local FastAPI endpoint
warden-laya-service
tanishqsharmaa
Serves Laya typed-decision inference through gRPC and HTTP APIs for routing and reranking
laya-trt-serve
nmcglo
Exports Laya to TensorRT and serves it through a Jev-compatible API
zeabur-laya-service
Edwardlee-AI
Deploys Laya as a long-running HTTP decision service on Zeabur
laya-local-serve
yyong-brs
Runs Laya locally with Python, TypeScript, and integrations for serving and decision workflows
laya-on-aws-lambda
gunnargrosch
Deploys Laya as a Jev-compatible decision API on AWS Lambda using TypeScript or Python
laya-studio
ewrogers
Provides a local web workspace and Jev-compatible API for trying Laya decisions
laya-project
wjesus374
A local Laya decision service with a FastAPI backend, SQLite storage and React dashboard
laya-api
MIYA2024
Serves a multilingual Laya typed-decision API on ZeroGPU
laya-js
desplega-ai
A TypeScript runtime and Hono server load ONNX Laya checkpoints and answer typed decision questions
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