Choice · Pick an option
Define the possible outcomes, such as billing, support or sales, and evaluate which one fits the input.
Meet the Laya model · Jev AI
Explore Laya, an open-weights System 1 model from Convai Innovations. Learn how choices, scores and yes/no probabilities can help your next workflow take action.
Sign in to run Laya API requests using your account credits.
A customer message
“I was charged twice for my subscription. Please refund the extra payment today.”
choiceWhich team should help?
scoreHow urgent is the request?
noulIs a refund requested?
Illustrative decision types, not a live model response.
Interactive playground
Pick an example or add your context. Ask choice, score or yes/no questions, then inspect the structured answers and probabilities.
Requests consume account credits. See the returned result for the actual credits used.
Read the Laya API integration guide01 / What is Laya?
Laya evaluates questions against a shared context and returns structured answers in one forward pass. It is non-autoregressive: it scores possible decisions directly rather than writing a response token by token.
Use it where your application needs a category, an ordered assessment or a yes/no probability. The English checkpoint uses ModernBERT; the multilingual checkpoint extends the same approach to more languages.
Define the possible outcomes, such as billing, support or sales, and evaluate which one fits the input.
Provide ordered criteria to assess qualities such as urgency, relevance or satisfaction.
Ask a focused binary question and use its probability to guide the next step.
02 / Capabilities & use cases
Explore Laya for repeatable tasks with clear inputs and outcomes. Evaluate the chosen checkpoint on examples from your own application.
Assess different aspects of the same input together, from its category to its urgency.
The multilingual checkpoint supports 100+ languages. Laya's router helps select a checkpoint for each request.
Download the Apache-2.0 weights and run Laya on infrastructure you control.
Identify the right team, assess priority and flag requests that need a person to review them.
Choose a next action from a defined set, or decide when a workflow should ask for help.
Fine-tune on your labelled decisions. The project highlights fine-tuning as an important step toward stronger task-specific accuracy.
03 / How to try it
Explore the request format and decision types with the Laya API, then inspect the structured results.
Start with a customer message, a document excerpt or structured JSON. Keep the relevant facts together.
Choose a question type and write clear instructions, with distinct options or ordered criteria.
Inspect the answer and its probability. Try ambiguous examples before deciding which outcomes to automate.
04 / Laya API
Connect your application to the Laya decision endpoint. Authenticate with your account API key, submit context and typed questions, then use the structured answers in your workflow.
Sign in, open API Keys in your account settings and create a key. Keep enough credits in your account, then send a POST request to the URL below. The API path has no language prefix, even when this page is translated.
https://thejevai.com/laya/v1/systemoneAuthorization: Bearer YOUR_API_KEY
Content-Type: application/json
Use your own application server to make API calls. Store the key in a server environment variable named LAYA_API_KEY; never put it in browser code or a public repository. The playground uses your signed-in session instead of asking for a key.
Model identifier for English-language decision workflows.
Model identifier for workflows with multilingual inputs.
Model identifier for typed decision workflows.
Set model to english, multilingual or typed-decisions. All three options accept choice, score and noul questions.
| Field | Type | How to use it |
|---|---|---|
| model | string | Required. Use english, multilingual or typed-decisions. |
| state | string | object | array | Required. Shared context for all questions: text, a JSON object or an array. |
| questions | object | Required. An object containing 1–8 questions, keyed by your own question IDs. |
| questions.<id> | object | Use a non-empty, unique ID for each question. The same ID appears in answers. |
| questions.<id>.type | choice | score | noul | Required. Select one of the three supported decision types. |
| questions.<id>.instructions | string | Required string. State clearly what this question should evaluate. |
| questions.<id>.criteria | object | array | Required for choice and score; optional for noul. Use the format described below. |
Provide 2–100 options as an object mapping labels to descriptions (string or null), or an array of labels. The answer contains the selected label and may include option probabilities.
Provide an array of 2–10 descriptions ordered from low to high. The scale begins at 0; returned scores can be fractional.
Ask a yes/no question. Optional criteria uses the keys "true" and "false" with string or null descriptions. The returned noul value is the probability of yes, not a boolean.
Set LAYA_API_KEY to the key you created. This example evaluates one message with all three question types. Run JavaScript on Node.js 18+ (as an .mjs file), or use Python 3 with its built-in urllib module; no Python package installation is needed.
export LAYA_API_KEY="YOUR_API_KEY"
curl --fail-with-body --request POST 'https://thejevai.com/laya/v1/systemone' \
--header "Authorization: Bearer $LAYA_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "english",
"state": "I was charged twice for my subscription. Please refund the extra payment today.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this request?",
"criteria": {
"billing": "Payments and refunds",
"technical": "Bugs and outages"
}
},
"priority": {
"type": "score",
"instructions": "How urgent is this request?",
"criteria": [
"Low",
"Medium",
"High"
]
},
"refund": {
"type": "noul",
"instructions": "Is the customer requesting a refund?",
"criteria": {
"true": "A refund is requested",
"false": "No refund is requested"
}
}
}
}'Check both the HTTP status and code === 0 before using the result. Success returns answers inside data.result; it does not return a chat completion or a streaming text response.
Illustrative response: decisions, token counts and latency vary with the request.
{
"code": 0,
"message": "ok",
"data": {
"result": {
"model": "english",
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.97,
"technical": 0.03
}
},
"priority": {
"type": "score",
"score": 1.8,
"legend": {
"0": "Low",
"1": "Medium",
"2": "High"
}
},
"refund": {
"type": "noul",
"noul": 0.98
}
},
"usage": {
"input_tokens": 1200,
"output_tokens": 0
},
"elapsedMs": 142
},
"creditsUsed": 2
}
}Use the request and response format documented here when integrating this endpoint. If you switch to another Laya service, check its authentication and response structure and update your client as needed.
API calls and signed-in playground runs consume account credits. The response field creditsUsed shows the actual credits deducted for each request.
Maximum UTF-8 JSON body: 32 KiB. Maximum questions per request: 8. Signed-in playground requests must be at least 3 seconds apart. The inference request has a 30-second timeout; allow additional time in your client for the full HTTP response.
Read the HTTP status and message on errors. This endpoint has no idempotency key: blindly retrying after a client timeout may create another charge if the first request completed. Confirm the outcome before retrying paid requests.
Test the request in the playgroundUse your existing account credit balance for Laya API requests.
Requests consume account credits. See the returned result for the actual credits used.
Starter
Validate one real workflow, from the playground to your first API call
Pro
Connect classification, routing, and safety decisions to a production product
Enterprise
For multiple workspaces, team collaboration, and custom production integrations, with 10% extra credits
Bring a real example and explore choices, scores and probabilities in the Laya API.
Try the playground