Every endpoint of the Laya Studio decision API, with request and response schemas. New here? Start with the quickstart. Below: the live OpenAPI spec, rendered by Scalar. Try requests in-page with your own API key, in curl, JS, Python, or Go. Source spec at /v1/openapi.
https://api.laya.studioAuthorization: Bearer lsk_live_… (or x-api-key) on every call. Create keys in the dashboard under API keys; paste one into Scalar below for try-it-now requests.application/json requests and responses. Max body 512 KB.usage.input_tokens(0 during a workspace’s 5 free runs), reported in the x-credits-charged header, with the free runs left in x-free-runs-remaining. Failed requests are free. See pricing.Four endpoints. Most integrations only ever call the first one.
{ state, questions }text or JSON + up to 32 questionsPOST /v1/systemoneone forward pass, no text generatedanswers.<id>answer + probabilities + confidence/v1/systemonestart hereAnswer typed questions about a state in one forward pass
The main call. Send text plus questions, get an answer and probabilities for each. Jev-compatible.
/v1/systemone/batchUp to 64 decisions in one call
Many independent texts at once, for backfills and bulk jobs.
/v1/modelsList served checkpoints
Which models are live (English, multilingual, typed decisions). No key needed.
/v1/usageCredit balance and 30-day usage
How many questions you have left and have used.