Using Ling-3.1-flash on Vercel AI Gateway

Implementation guide · Ling 3.0 · InclusionAI

Serverless

Vercel AI Gateway exposes Ling-3.1-flash through model ID inclusionai/ling-3.1-flash. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-10-02. 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 inclusionai/ling-3.1-flash — 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
inclusionai/ling-3.1-flash

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="inclusionai/ling-3.1-flash",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Pricing on Vercel AI Gateway

TypePrice (per 1M)
Input tokensFree
Output tokensFree

Capabilities

ReasoningJSON / Tool use

About Ling-3.1-flash

Ling-3.1-flash is InclusionAI's (Ant Group 蚂蚁百灵 / Ant Ling) hybrid reasoning mixture-of-experts Flash model announced 2026-09-30. Authoritative Chinese IT Home coverage: ~560B total parameters with ~25B activated per token; designed context window up to 1M tokens; two-week free trial capped at 256K context, with paid 1M context and planned open-source weights after the trial. TechNode English summary of the same launch positions it for agent tasks, search, office software, and specialist applications.

Model Specs

Released2026-09-30
Parameters560B (25B activated)
Context262k
ArchitectureMixture of Experts

Provider

Vercel AI Gateway

Vercel