Using Laya on Vercel AI Gateway
Implementation guide · Laya · ConvAI Innovations
Vercel AI Gateway exposes Laya through model ID convaiinnovations/laya. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-10-15. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
convaiinnovations/laya— see the documentation for request format. - 3
Code Examples
pip install openaiAI_GATEWAY_API_KEYconvaiinnovations/layacreator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="convaiinnovations/laya",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | Free |
| Output tokens | Free |
Capabilities
About Laya
Laya is ConvAI Innovations' English open-weight System 1 decision model (ModernBERT-large, 421M, context 512), released on Hugging Face on 2026-09-18 under Apache 2.0. It is non-autoregressive: a state plus typed questions (choice, yes/no (called "noul" in the API) or score) returns calibrated probabilities in one forward pass, trained with RLCD, and it does not generate text. Install with pip install laya; the Router sends English inputs here and other languages to Laya Multilingual. The family hub also ships laya-multilingual and laya-typed-decisions. A community package, laya-serve, exposes a Jev-compatible POST /v1/systemone endpoint; ConvAI does not publish a hosted per-token price.