Laya on Vercel AI Gateway

Laya · ConvAI Innovations

ServerlessOpen Source

Last refreshed 2026-10-15. Next refresh: weekly.

Why use Laya on Vercel AI Gateway?

Vercel AI Gateway offers Laya with free input token pricing. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.

Input / 1M
Free
Output / 1M
Free
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
convaiinnovations/laya

Request example

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)

Gotchas

  • Use provider model ID "convaiinnovations/laya", not the LLMReference slug "laya".
  • creator/model-name e.g. kwaipilot/kat-coder-pro-v2
  • The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.

Pricing

TypePrice (per 1M)
Input tokensFree
Output tokensFree

Capabilities

Structured OutputsFine-tuning

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.

Get Started

Model Specs

Released2026-09-18
Parameters421M
Context512