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 caseSetup recipe
Python + curlpip install openaiexport AI_GATEWAY_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],inclusionai/ling-3.1-flashRequest 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
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| OpenRouter | — | — |
| Vercel AI Gateway | $0.30 | $0.90 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.30 |
| Output tokens | $0.90 |
Capabilities
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.