Developers / LayaModel
LayaModel API
Create a LayaModel API key and make typed decisions through the service.
Authentication
Register, verify your email, then create a key in Console → API keys. This is a LayaModel service key. Your Gateway credential is managed by the operator and stays on the server.
Typed decisions
Send state and 1–8 choice, score or noul questions. The service limits serialized requests to 8,000 characters; the upstream model has an 8K token context. These are different units.
curl https://www.layamodel.xyz/api/v1/systemone \
-H "Authorization: Bearer YOUR_LAYAMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"state":"Please refund my duplicate payment.","questions":{"queue":{"type":"choice","instructions":"Choose the right support queue.","criteria":{"billing":"Payments and refunds","technical":"Technical issues"}}}}'Flow billing
POST /api/v1/flows/{id}/run with state. A successful free Flow costs two daily runs; any failed Flow returns both. If fewer than two remain, the API returns FLOW_FREE_QUOTA_INSUFFICIENT. Only set useTokens: true after explicit consent to paid input-token billing. Completed paid nodes remain charged after later failure.
This service runs Convai Innovations’ Laya through Vercel AI Gateway and Boundless. It is independent of those providers.
