Using Laya on Vercel AI Gateway

Implementation guide · Laya · ConvAI Innovations

ServerlessOpen Source

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. 1
    Create an account at Vercel AI Gateway and generate an API key.
  2. 2
    Use the Vercel AI Gateway SDK or REST API to call convaiinnovations/laya — see the documentation for request format.
  3. 3
    You'll be billed Free/1M input, Free/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
AI_GATEWAY_API_KEY
Model ID
convaiinnovations/laya

creator/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

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.

Model Specs

Released2026-09-18
Parameters421M
Context512

Provider

Vercel AI Gateway

Vercel