Skip to main content

Ling 3.1 Flash API

inclusionai/ling-3.1-flash/chat

Ling 3.1 Flash is a hybrid-reasoning mixture-of-experts model from inclusionAI, released on 29 September 2026. The publisher describes it as 560B parameters in total with 25B active per token. Here it is one OpenAI-compatible chat endpoint: up to 262,144 tokens of text in, up to 262,144 tokens out, tools and streaming on every request.

Input $0.075Output $0.225per 1 million tokensCached input $0.075

Workbench

Ling 3.1 Flash

What can Ling 3.1 Flash help with?

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

FAST LONG-CONTEXT CHAT API

Ling 3.1 Flash API at a glance

A 560B mixture-of-experts model that wakes only 25B parameters per token, with thinking you can dial from off to high.

Input context
262K
262,144 tokens of text per request on this endpoint.
Reply ceiling
262K
max_tokens goes up to 262,144, and any thinking counts toward it.
Active parameters
25B
Of 560B in total, per the publisher's model card.
Effort levels
4
none, low, medium and high, with medium as the default.
Tools per call
128
Up to 128 tool definitions can ride on a single request.

Results

What Ling 3.1 Flash is good at

  • Architecture

    A very large model that only runs a slice of itself

    inclusionAI's model card describes Ling 3.1 Flash as a hybrid-linear mixture-of-experts: 560B parameters in total, with eight of 512 routed experts plus one shared expert active for each token, about 25B parameters. That design is what the name Flash points at: a large model that is meant to answer at the pace of a much smaller one.

  • Reasoning

    Think when it helps, skip it when it does not

    reasoning_effort takes none, low, medium or high, and medium is the default. Use none or low for classification, extraction and short chat turns where latency matters, and move up to high for a multi-step problem. The publisher calls the model a native hybrid-reasoning model, so one endpoint covers both styles.

  • Long context

    A quarter of a million tokens in one request

    262,144 tokens of input is roughly 190,000 English words, enough for a long contract, a support thread with its attachments pasted as text, or a mid-sized module of code. The model card lists a 1M-token window for the open model; this endpoint accepts 262,144, and that is the figure to plan around.

  • Agents

    Tool calls and streaming in the same call

    Send up to 128 tool definitions, let the model return a function call, run it in your application and send the result back as a tool message. Replies stream as they are written, and response_format lets you ask for a JSON object when a downstream service expects one.

Before you run it

What to know before you run Ling 3.1 Flash

Chat
This endpoint accepts text only: message content parts must be text, so images, audio and video are not accepted. Input is limited to 262,144 tokens and max_tokens to 262,144, with at most 256 messages, 128 tool definitions and 4 stop sequences per request.
Chat
reasoning_effort accepts none, low, medium and high. Thinking is paid for out of max_tokens, so a small cap can be used up before the visible answer is complete.
Chat
Ling 3.1 Flash: the platform adds no content filter of its own, and content decisions come from the selected model. Ling 3.1 Flash: NSFW behavior can vary between requests and versions, and no unrestricted-content guarantee is made.

Use cases

What to build with the Ling 3.1 Flash API

  • High-volume classification and extraction

    Tag support tickets, pull names, dates and amounts out of emails, or route messages to the right queue. Set reasoning_effort to none or low, keep temperature low, and ask for a JSON object so each answer can be parsed without cleanup.

  • Fast chat for products and assistants

    Put the persona and house rules in the system message, send the conversation oldest first, and stream the reply to the user. The large context means long histories can be sent as written instead of being summarized.

  • Agent loops with tools

    Give the model a search function, a database lookup or a ticketing action and let it decide when to call them. The publisher lists terminal-based tool use and software-engineering work among the model's intended uses.

  • Reading long documents

    Paste a policy manual, a transcript or a code module, put the material first and the question last, and ask for the passage that supports each claim. Raise reasoning_effort when the answer depends on putting several sections together.

Prompts

Ling 3.1 Flash prompt examples you can copy

Paste one into the playground as it is, then change one thing at a time.

  • Chat

    Investigate a concrete case

    Extract the product name and delivery date from a short customer update. Work from the material I provide. Cite relevant evidence, distinguish facts from assumptions, and identify missing information before proposing changes.

    Why it works. Start with a customer update and ask for the product name, delivery date and the exact phrase supporting each field. This endpoint is text only: include the words from a document rather than attaching a picture of it. Its exposed input limit is 262,144 tokens, even though inclusionAI describes a 1M context for the underlying model.

    Try this prompt

Pricing

Ling 3.1 Flash API pricing

From $0.075 per million input tokens and $0.225 per million output tokens.

The playground shows the exact price for your settings before you run. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

See every price tier

Get started

How to use the Ling 3.1 Flash API in three steps

  1. Step 1

    Start at medium, then move one step

    medium is the default. Drop to low or none for short, well-defined jobs and watch latency fall; raise to high only for problems where a wrong answer costs more than the extra tokens. Compare outputs on a few of your own examples before you change a production default.

  2. Step 2

    Leave room in max_tokens for thinking

    The default max_tokens is 4,096. Thinking is counted in the same budget, so raise it for long answers or at higher effort levels, or the budget can run out before the visible reply is finished. Check the finish reason before treating a reply as complete.

  3. Step 3

    Put long material first and the question last

    Label each source, place the documents early in the conversation and ask your question at the end. Keep instructions in the system message so they are not confused with quoted text.

Parameter reference and code samples are in the API and Readme tabs at the top of this page.

Why SpicyAPI

Why run Ling 3.1 Flash on SpicyAPI

  • No filter from us

    We add no content filter of our own. What the model renders is what you get back.

  • Tested, not guessed

    Content labels come from real generations we ran and checked, with the test date on the page.

  • Pay per result, in dollars

    No subscription and no credits. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

  • One key for every model

    One API key and balance cover image, video, audio and chat models, so you can explore more models from the same account.

FAQ

Ling 3.1 Flash API FAQ

About Ling 3.1 Flash

Ling 3.1 Flash is the one to try when you want a large model's range without paying for a large model's wait. It comes from inclusionAI, which describes 560B parameters with only 25B active for each token, and it arrives here as a single OpenAI-compatible chat endpoint. A 262,144-token window holds a long document or a long conversation as written, a reply can run as long as the same figure, and reasoning_effort lets the same code handle a quick tag and a hard problem. Tools, JSON output and streaming are all available on the same call. Keep the endpoint's limits in mind: it takes text only, and the 1M window on the model card is not what this endpoint accepts.

Related models and next tasks