Laya AI

DEVELOPER GUIDE

Laya AI API

Send a short state and typed questions to POST /api/v1/systemone. The response contains the selected model, answers, and token usage. Requests require a Laya AI API key and an available credit; the service returns 503 before charging when GPU capacity is disconnected.

EXAMPLE REQUESTlaya-english
curl https://laya-ai.pro/api/v1/systemone \
  -H "Authorization: Bearer $LAYA_AI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"laya-english","state":"The checkout page fails after card entry.","questions":{"team":{"type":"choice","instructions":"Who should handle this?","criteria":{"billing":null,"engineering":null,"support":null}}}}'

Model choices

laya-english uses a 512-token budget per question. laya-multilingual uses 1024. Both budgets include the text, question, and labels. Oversized input returns an error instead of a shortened decision.

Your Laya AI API keys

Each key belongs to your Laya AI account. Store it on your server and revoke it here when you no longer need it.