Ling-3.1-flash on Vercel AI Gateway

Ling 3.0 · InclusionAI

Serverless
Open Source

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

Why use Ling-3.1-flash on Vercel AI Gateway?

Vercel AI Gateway offers Ling-3.1-flash with pay-as-you-go pricing at $0.30/1M input tokens. 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.

Compare Ling-3.1-flash across 2 providers to find the best fit for your use case
Input / 1M
$0.30
Output / 1M
$0.90
Cache
read $0.060
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
inclusionai/ling-3.1-flash

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

Gotchas

  • Use provider model ID "inclusionai/ling-3.1-flash", not the LLMReference slug "ling-3.1-flash".
  • 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.

Compare Ling-3.1-flash Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenRouter——
Vercel AI Gateway$0.30$0.90

Pricing

TypePrice (per 1M)
Input tokens$0.30
Output tokens$0.90

Capabilities

ReasoningJSON / Tool use

About Ling-3.1-flash

Ling-3.1-flash is a mixture-of-experts model from inclusionAI, Ant Group's Ling team. It has 560B total parameters with 25B active per token, and inclusionAI describes a context window of up to 1M tokens. It builds on Ling-3.0-flash and targets general-purpose agents, search, office productivity and software engineering. Ling-3.1-flash supports reasoning and tool calling. The weights are published on Hugging Face under the MIT license.

Get Started

Model Specs

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

Related Models on Vercel AI Gateway