# layahost > Hosted typed-decisions API on the open Laya model: classify, moderate, route and score short text. Jev-compatible (POST /v1/systemone works with the official Jev SDKs), plus a simpler POST /v1/decide with ready-made templates. Prepaid, $5 per million decisions, EU-hosted, request text is not stored. Base URL: https://layahost.com. Authenticate with "Authorization: Bearer " (keys at https://layahost.com/keys). ## Getting started - [Introduction](https://layahost.com/docs/introduction.md): layahost is a hosted, Jev-compatible API for typed decisions: classify, moderate, route and score text with the open-source Laya model. A drop-in Jev alternative with prepaid pricing. - [Authentication](https://layahost.com/docs/authentication.md): Authenticate to the layahost API with lh_ API keys sent as bearer tokens. Create, store and revoke keys for the Jev-compatible typed-decision API. - [Migrate from Jev](https://layahost.com/docs/migrate-from-jev.md): Migrate from Jev to layahost in two lines: point the official TypeSafe SDKs (typesafe-sdk, @typesafe-ai/sdk) at https://layahost.com and use a layahost API key. A drop-in Jev alternative. - [Perspective API replacement](https://layahost.com/docs/perspective.md): A drop-in replacement for Google's Perspective API, which shuts down on 31 December 2026. layahost implements comments:analyze with TOXICITY, INSULT, THREAT and the other attributes. Migrate by changing the host and the key. - [Perspective integrations](https://layahost.com/docs/perspective-integrations.md): Switch Coral, augustus, dingo, Stanford HELM, lm-evaluation-harness and other tools from Google's Perspective API to layahost before the 31 December 2026 shutdown: the exact setting for each. ## API reference - [POST /v1/decide](https://layahost.com/docs/decide.md): POST /v1/decide reference: classify one text with a template or your own choice, yes/no or score question. Parameters, response fields, confidence and errors for the layahost typed-decision API. - [Decision templates](https://layahost.com/docs/templates.md): Ready-made decision templates for the layahost API: moderation, spam, support intent, routing, sentiment, priority and language detection. List them with GET /v1/templates. - [POST /v1/systemone](https://layahost.com/docs/systemone.md): POST /v1/systemone reference: the Jev-compatible System One endpoint on layahost. Ask up to 32 typed questions (choice, noul, score) about one state, with the official TypeSafe SDKs or plain HTTP. - [Batch requests](https://layahost.com/docs/batch.md): Batch requests on layahost: classify up to 64 texts in one call with POST /v1/decide/batch, or send up to 64 Jev requests with POST /v1/systemone/batch. Billing, limits and partial failures. - [GET /v1/usage](https://layahost.com/docs/usage.md): GET /v1/usage on layahost: read your prepaid balance, decisions left and daily usage from the API, plus the cost and balance headers on every response. - [Models](https://layahost.com/docs/models.md): Models on layahost: laya-auto, laya-english and laya-multilingual, the open-source Laya checkpoints by Convai Innovations. jev-latest and other Jev model names map to laya-auto. - [Errors](https://layahost.com/docs/errors.md): layahost API errors: status codes, Jev-compatible error bodies (authentication_error, insufficient_credits, rate_limit_error, api_error, overloaded_error), 422 validation errors, retries and request IDs. - [Rate limits](https://layahost.com/docs/rate-limits.md): layahost API rate limits: 600 requests per minute per API key by default, 429 rate_limit_error with retry-after, and how to batch up to 32 questions per Jev-compatible request. ## More - [MCP & coding agents](https://layahost.com/docs/agents.md): Use layahost from AI agents: a remote MCP server for Claude Code, Cursor and VS Code, an agent skill for coding agents, and llms.txt Markdown docs. - [Code examples](https://layahost.com/docs/code-examples.md): Copy-paste code examples for the layahost typed-decision API in curl, JavaScript, Python and PHP: moderation, ticket triage with the Jev SDKs, retries with backoff and rate-limited batch jobs. - [Pricing & billing](https://layahost.com/docs/pricing.md): layahost pricing: $5 per million decisions, prepaid credit with Stripe invoices, no subscription, $1 welcome credit on sign-up. Top-up bonuses from $100. A low-cost Jev alternative billed per answered question. - [Data & privacy](https://layahost.com/docs/data.md): What layahost stores from your API requests: verdicts and metadata for 7 days, request text only if you opt in, never used for training. Data handling for the Jev-compatible decision API. ## Optional - [Full documentation in one file](https://layahost.com/llms-full.txt)