Skip to content

LIVE · LAYA INFERENCE

An open Jev,
hosted in Europe.

A free, public HTTP endpoint for the open-weights Laya decision models, speaking the exact request and response format of Cloudflare Workers AI's typesafe/jev. Take the curl from Cloudflare's docs, change the host, and it answers.

laya.inference.zaitlabs.com

QUICKSTART

One request, three answers.

Three question types. noul is a yes/no with a probability, choice picks from labelled options, score places the state on an ordered scale. Every answer carries a confidence that uses Jev's definition, not Laya's, so thresholds you tuned against Jev carry over.

curl
curl https://laya.inference.zaitlabs.com/client/v4/accounts/any/ai/run \
  --header "Content-Type: application/json" \
  --data '{
  "model": "typesafe/jev",
  "input": {
    "state": "Help! My payouts have been failing for 3 days.",
    "questions": {
      "is_urgent": {
        "type": "noul",
        "instructions": "Does this convey urgency?"
      },
      "department": {
        "type": "choice",
        "instructions": "Which team should handle this?",
        "criteria": {
          "billing": "Payments, invoicing, refunds",
          "technical": "Bugs, outages, integrations"
        }
      },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the customer?",
        "criteria": ["Calm", "Frustrated", "Very angry"]
      }
    }
  }
}'

ROUTES

POST /client/v4/accounts/{id}/ai/run

{"model": …, "input": {state, questions}} (Cloudflare REST)

POST /client/v4/accounts/{id}/ai/run/{model}

{state, questions}

POST /ai/run

either shape

POST /ai/run/{model}

either shape

GET /terms

terms of service

GET /docs

OpenAPI

GET /health

checkpoint, region, cache stats

Full OpenAPI →

THE NUMBERS

Price
Free
Auth
None. Account id and bearer token are ignored, not stored
Region
TLS terminates in Germany; containers and routing in the EEA
Rate limit
60 req/min and 5,000/day per IP
Body limit
1.5 MiB
Context
1,024 tokens per question
Questions
up to 32 per request, 255 options each

Longer requests get a 413. Errors use Cloudflare's envelope.

THE DEAL

We keep your requests and train on them.

Per accepted request we keep the state, the questions, the response, the checkpoint, token counts, timings and a random request id. We do not keep your IP address, your Authorization header or any other header, or the account id from the URL. IPs exist only in memory, as salted hashes, for rate limiting.

Records are encrypted before they are written; the server cannot read them back. Rejected requests are not stored.

Containers and request routing run in the EEA. The compute provider is a US company and does not state where its storage sits, so we seal the training data before writing it.

If you need contractual EU residency, ask us for a contract. Otherwise, assume anything you send here ends up in a training set.

Terms of service →

Not affiliated with TypeSafe AI, Cloudflare or Convai Innovations. “Jev” is TypeSafe's; this endpoint serves Laya and says so in every response. Answers will differ from Jev's.