Retrieved article excerpt
Open article · Retrieved 2026-09-30T18:42:55.966360+00:00
[Inclusionai](https://vercel.com/ai-gateway/models/labs/inclusionai)
# Ling 3.1 Flash
Ling 3.1 Flash is InclusionAI's hybrid reasoning language model for coding, multi-step analysis, and tool-using agents. It has 560B total parameters with 25B activated parameters and supports long-context text workflows.
[View API reference](https://vercel.com/ai-gateway/models/ling-3.1-flash#api)
PricePrice
: Free
Free
24h uptime
: Loading AI Gateway uptime
[Get API key](https://vercel.com/d?to=%2F%5Bteam%5D%2F~%2Fai-gateway%2Fquick-start%3FshowCreateKeyModal%3Dauto%26utm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get%20API%20key)[Read the docs](https://vercel.com/docs/ai-gateway)
APIAPIClaude CodeClaude CodeCodexCodexHermesHermesCommand CodeCommand CodeOpenClawOpenClawfxfx
AI SDK
AI SDKChat CompletionsMessagesResponses
AI SDKAI SDKChat CompletionsChat CompletionsMessagesMessagesResponsesResponses
TypeScriptTypeScriptPythonPython
```
1
import { streamText } from 'ai'
2
3
const result = streamText({
4
model: 'inclusionai/ling-3.1-flash',
5
prompt: 'Why is the sky blue?'
6
})
```
Copy for agent[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#playground)Playground
Try out Ling 3.1 Flash by Inclusionai. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
inclusionai logoLing 3.1 Flash
inclusionai logo
Ling 3.1 Flash
Explain quantum computing in simple termsWrite a haiku about the oceanWhat are the tradeoffs of TypeScript vs JavaScript?
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#providers)Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the [docs](https://vercel.com/docs/ai-gateway/provider-options) for more info. Using a provider means you agree to their terms, listed under Legal.
Promotional pricing ends on October 13, 2026.
Checking availability for your team
Columns (13)
| Provider |
| --- |
| Context | Max Output | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | ZDR | No Training | Free AI Gateway Credit | Release Date | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | | | | | | | | | | | | | | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| novita logo [Novita AI](https://vercel.com/ai-gateway/models/providers/novita) Free Legal:[Terms](https://novita.ai/legal/terms-of-service)•[Privacy](https://novita.ai/legal/privacy-policy) | 262K | 33K | 2.2 s | 91 tps | Free | Free | | — | | | | | 09/29/2026 | |
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#uptime)Uptime24 hours
1W
1D
1H
Direct request success rate on AI Gateway and per-provider. Visit the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/uptime) for more info.
1W
1D
1H
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#throughput)Throughput24 hours
1W
1D
P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/metrics) for more info.
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#latency)Latency24 hours
1W
1D
P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/metrics) for more info.
## Getting started
Call Ling 3.1 Flash through AI Gateway with the AI SDK `generateText` and `streamText` functions, or through the OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs by changing the base URL. AI Gateway authenticates the request and routes it to an available provider.
Install the AI SDK (`pnpm add ai dotenv`), create an API key from the [API Keys page](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway%2Fapi-keys&title=AI+Gateway+API+Keys), and set it as `AI_GATEWAY_API_KEY` in your environment. Full setup is covered in the [text generation quickstart](https://vercel.com/docs/ai-gateway/getting-started/text).
index.ts
```
1
import { generateText } from 'ai';
2
import 'dotenv/config';
3
4
async function main() {
5
const result = await generateText({
6
model: 'inclusionai/ling-3.1-flash',
7
prompt: 'Why is the sky blue?',
8
});
9
10
console.log(result.text);
11
}
12
13
main().catch(console.error);
```
## Top-level parameters
The same Ling 3.1 Flash request in each API format AI Gateway supports.
AI SDK v7Chat CompletionsResponses APIMessages API
top-level-params.ts
```
1
import { generateText } from 'ai';
2
import 'dotenv/config';
3
4
async function main() {
5
const result = await generateText({
6
model: 'inclusionai/ling-3.1-flash',
7
system: 'You are a concise technical assistant.',
8
prompt: 'Summarize the tradeoffs between static generation and SSR.',
9
maxOutputTokens: 1024,
10
});
11
12
console.log(result.text);
13
}
14
15
main().catch(console.error);
```
Standard parameters like `prompt`, `messages`, `temperature`, and `tools` work as documented in the AI SDK docs. These are the parameters with model-specific behavior.
| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `model` | `string` | Yes | Model ID in the form `creator/model`, e.g. `inclusionai/ling-3.1-flash`. AI Gateway routes the request to an available provider. |
| `maxOutputTokens` | `number` | No | Hard cap on generated tokens. Ling 3.1 Flash supports up to `32,768` output tokens. Reasoning tokens count toward this limit. |
| `reasoning` | `'provider-default' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'` | No | Provider-agnostic reasoning effort, available in AI SDK 7 or later. Maps to the provider’s native reasoning configuration; reasoning settings under `providerOptions` take precedence when both are set. See the Reasoning section below. |
| `providerOptions` | `Record<string, JSONValue>` | No | AI Gateway routing options under `gateway`, plus any provider-native options under the provider’s own namespace — see the table below. |
## Input limits
| Input | Formats | Sources | Max count | Max size | Limits |
| --- | --- | --- | --- | --- | --- |
| Text | — | — | — | — | Prompt and response share the 262K-token context window |
## Provider options
Set AI Gateway routing options under `providerOptions.gateway`. For provider-specific options, pass them under the provider’s namespace as documented by the AI SDK.
Learn more in the [AI SDK provider docs](https://ai-sdk.dev/providers/ai-sdk-providers).
provider-options.ts
```
1
import { generateText } from 'ai';
2
import 'dotenv/config';
3
4
async function main() {
5
const result = await generateText({
6
model: 'inclusionai/ling-3.1-flash',
7
prompt: 'Why is the sky blue?',
8
providerOptions: {
9
gateway: {
10
only: ['novita'],
11
},
12
},
13
});
14
15
console.log(result.text);
16
}
17
18
main().catch(console.error);
```
These AI Gateway routing options apply to every model. Provider-specific options pass through under the provider’s own namespace (for example `providerOptions.anthropic`) exactly as documented by the AI SDK.
| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `providerOptions.gateway.only` | `string[]` | No | Restrict routing to these provider slugs. Requests fail over only within the listed providers. |
| `providerOptions.gateway.order` | `string[]` | No | Preferred provider order. Listed providers are tried first; unlisted providers remain available as fallbacks. |
| `providerOptions.gateway.sort` | `'cost' | 'ttft' | 'tps'` | No | Rank candidate providers by price, time to first token, or tokens per second instead of the default routing order. |
| `providerOptions.gateway.zeroDataRetention` | `boolean` | No | Route only to providers with a zero-data-retention policy for this model. |
### Routing across providers
AI Gateway serves the same model through multiple providers and fails over automatically. `order` expresses a preference while keeping every provider eligible; `only` is a hard allowlist — if none of the listed providers are available the request fails instead of falling back.
Options under a provider's own namespace (for example `providerOptions.anthropic`) are forwarded to that provider with the request. Providers ignore option namespaces that don't apply to them, so it is safe to set provider options alongside `gateway` routing options.
## Reasoning
AI Gateway bridges reasoning across every API format. The AI SDK exposes a provider-agnostic top-level `reasoning` level (`none`, `minimal`, `low`, `medium`, `high`, or `xhigh`); the Chat Completions and Responses formats take the same effort under `reasoning.effort`; and the Anthropic Messages format uses a native `thinking` token budget. Whichever you send, the gateway maps it to the target model’s native configuration, converting between effort levels and token budgets as needed. Reasoning-related settings under `providerOptions` take full precedence over the top-level `reasoning` value and are never merged. Reasoning tokens typically count toward your output-token usage, though how they’re reported and billed varies by provider.
Learn more in the [AI Gateway reasoning guide](https://vercel.com/docs/ai-gateway/models-and-providers/reasoning).
AI SDK v7Chat CompletionsResponses APIMessages API
reasoning.ts
```
1
import { generateText } from 'ai';
2
import 'dotenv/config';
3
4
async function main() {
5
const result = await generateText({
6
model: 'inclusionai/ling-3.1-flash',
7
prompt: 'Explain the Monty Hall problem step by step.',
8
reasoning: 'high',
9
});
10
11
console.log(result.text);
12
}
13
14
main().catch(console.error);
```
## Tool calling
Expose tools the model can call. Define each tool’s inputs with a Zod schema.
tool-calling.ts
```
1
import { generateText, tool } from 'ai';
2
import { z } from 'zod';
3
import 'dotenv/config';
4
5
async function main() {
6
const result = await generateText({
7
model: 'inclusionai/ling-3.1-flash',
8
prompt: 'What is the weather in San Francisco?',
9
tools: {
10
getWeather: tool({
11
description: 'Get the current weather for a location',
12
inputSchema: z.object({ location: z.string() }),
13
execute: async ({ location }) => ({ location, temperatureC: 18 }),
14
}),
15
},
16
});
17
18
console.log(result.text);
19
}
20
21
main().catch(console.error);
```
## [Copy link to heading](https://vercel.com/ai-gateway/models/ling-3.1-flash#similar)More models by Inclusionai
All
Text
Code
Video Input
All Use Cases
Columns (13)
| Model |
| --- |
| Context | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | Providers | ZDR | No Training | Free AI Gateway Credit | Release Date | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | | | | | | | | | | | | | | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| inclusionai logo [inclusionai/ling-3.0-flash-vl](https://vercel.com/ai-gateway/models/ling-3.0-flash-vl) | 256K | 1.9 s | 229 tps | $0.08/M | $0.22/M | Read$0.02/M | — | | novita logo | | | | 09/08/2026 | |
| inclusionai logo [inclusionai/ling-3.0-flash-sante](https://vercel.com/ai-gateway/models/ling-3.0-flash-sante) | 256K | 0.8 s | 186 tps | Free | Free | | — | | novita logo | | | | 09/04/2026 | |
| inclusionai logo [inclusionai/ling-3.0-flash-fin](https://vercel.com/ai-gateway/models/ling-