Laya API

Laya is a small "System 1" decision model. It answers fixed category / yes-or-no / relevance questions with a probability, in about 40 ms. It does not write free text and it is not a chatbot.

Model-card warnings

Getting a key

Every CryptoLabs WordPress account already has an API key: log in, then use "reveal key" (or "regenerate key" to rotate it) under your account's AI settings. That same key is what you send here.

Price

Free for account holders. Usage is counted per account.

Example

curl -s https://laya.cryptolabs.co.za/v1/systemone \
  -H "Authorization: Bearer <your CryptoLabs API key>" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "Incident: GPU 0 fell off the bus after an Xid 79 error.",
    "questions": {
      "category": {
        "type": "choice",
        "instructions": "Classify the likely root cause category.",
        "criteria": {"gpu_hardware": null, "network": null, "other": null}
      }
    }
  }'

Question types

typemeaninganswer field
choicepick one of several fixed categorieschoice
noulyes/no-ish, as a single 0-1 valuenoul
scorehow well something matches, 0-1score

Limits

API reference (OpenAPI / Swagger)