How Much To Run AI
Open weights

Ling 3 Flash: API Prices, Agent Tasks and Local Inference

Ling-3.0-flash is inclusionAI’s open-weight text model with 124B total parameters, 5.1B active per token and a 256K context window. Its low hosted token prices make it worth trying for coding and tool use. Community results point to a practical starting place: a bounded task with an external completion check. Local deployment is a separate choice, with quantized weights around 70GB in several reported setups.

Content reviewed:

Try Ling 3 Flash through OpenRouter ↗

Use this model

Official model repository

Where to try Ling 3 Flash first

  • Fix a reproducible bug with a small file scope and tests that decide when the repair is finished.
  • Extract or research a defined set of facts, keeping source links and checking the final claims.
  • Call a small set of tools with observable results before expanding to a longer agent workflow.
  • Run quantized weights locally when your hardware can hold the chosen format and your client supports its chat and tool templates.

Ling 3 Flash: choose the text checkpoint

The checkpoint covered here is inclusionAI/Ling-3.0-flash. The Ling collection also includes a base model, a smaller Tiny model, a vision-language version and a finance variant. Use the post-trained Flash text checkpoint for this guide; changing variants changes the task and can change the runtime requirements.

The model card describes a hybrid-linear mixture-of-experts architecture and an MIT license. Only a subset of experts participates in each token, which reduces computation. The remaining experts still occupy storage and need a residency or offloading strategy. The 5.1B active figure therefore describes work per token, rather than the amount of memory needed to load the full model.

PropertyLing-3.0-flash
Input and outputText in, text out
Parameters, model-card description124B total; 5.1B active per token
Context256K; OpenRouter lists 262,144 tokens
OpenRouter completion limit32,768 tokens
Weights licenseMIT
ThinkingEnabled by default in the official chat template

Ling 3 Flash API prices and a task budget

On 2026-10-05, OpenRouter lists the rates below for inclusionai/ling-3.0-flash through NovitaAI with a 65% discount. DeepInfra lists $0.06 input and $0.18 output per million tokens, so provider selection changes the bill. The free endpoint used in an earlier community case is a historical offer.

An uncached request with 20,000 input tokens and 3,000 billed output tokens costs $0.000609 at these listed rates. One thousand such requests cost $0.609. This example excludes additional tool charges and assumes the output count includes all billed generation. An agent may send its growing conversation several times before producing an accepted patch.

Keep those repeated calls in the budget. Count every failed attempt and repair turn, then divide total spend by the number of accepted tasks. Cache discounts help only for input the provider actually recognizes as cached. Record input, cache-read and output usage from the response rather than estimating from the length of the final answer.

Billing itemUSD per million tokens, checked 2026-10-05
Input$0.021
Output$0.063
Cached input read$0.0042

Send a first Ling 3 Flash request

Use OpenRouter’s chat-completions endpoint with the exact model ID inclusionai/ling-3.0-flash. Set OPENROUTER_API_KEY in your server or terminal environment before running the example. The request asks for a small verification plan; it makes no edits and gives the model no shell access.

For a coding client, select the same endpoint and start with a reproducible issue. Give the client a repository and a test command, then require the patch and actual test output. The client supplies file access and executes tool calls. A successful text response alone does not tell you whether that integration can apply patches or correctly parse a tool call.

A small OpenRouter request using an environment variable
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "inclusionai/ling-3.0-flash",
    "messages": [{
      "role": "user",
      "content": "An order cancellation fails to restore inventory. List three checks that would verify a fix."
    }],
    "max_tokens": 4096
  }'

What Ling coding-agent reports show

AshlynHe1129’s July 26 OpenCode case study, available as a Chinese republication, used Ling through the then-free OpenRouter endpoint to fix a planted TypeScript order-cancellation bug. The workflow allowed two repair attempts and used external tests. The author reports that Ling inspected the code, reproduced two failures, corrected an initially misplaced restore operation and finished with typecheck and both tests passing. This is one bounded repair case, with its original X post linked from the republication.

A separate Pi repository-research session by legacyvps completed three requested rounds, but the author found incorrect file lengths and stale issues presented as current constraints. It gives a useful second task to test: can the model preserve the difference between a current source file, a historical issue and its own interpretation? Read the cited sources before accepting the research result.

The strongest conclusion from these reports is a workflow choice: start with a narrow responsibility and a checkable result. An agent that passes a two-test repair still needs a separate trial for architectural work, unfamiliar dependencies or a task in which it must decide its own stopping condition.

Ling tool calling: test the complete loop

Lucebox’s August 28 DGX Spark report exercised one weather-function round trip: the model requested get_weather with a location, the fixture returned sunny weather and 29°C, and the final answer used that result. The authors describe the scope precisely: one controlled function. Choosing among many tools, recovering from invalid arguments and maintaining a long repository session remain different tests.

HALOBENCH offers a broader counterpoint. Its August llama.cpp ROCm run with Q4_K_M weights and thinking off completed 26 tau2 airline tasks with real tool use, achieving 13/26 mean reward. That is a specific customer-service benchmark protocol, not a coding-agent score. Evaluate tool-call syntax and completed tasks separately.

In your client, try a missing argument, an unavailable tool and a tool result that contradicts the model’s initial guess. Check whether Ling repairs the call and uses the returned evidence. For a coding task, keep the test command outside the model’s control and inspect the patch before counting success. A low token bill matters most when those checks produce a result you can use.

Running Ling 3 Flash on local hardware

Local Ling deployments need the exact quantization, runtime revision, available memory and context setting. Lucebox reports a 72.59GiB loaded footprint for its DGX Spark Q4_K_M setup. A community MLX 4-bit card reports 70.18GB peak memory in a Mac Studio smoke test. These are two different configurations; neither supports treating Flash as a 5GB download because only 5.1B parameters are active.

The Strix Halo report from bench.ciru.ai is especially useful for choosing a serving stack. On a Ryzen AI Max+ 395 with 128GB unified memory, its native ROCm/vLLM path measured 26.23 tokens/s with K1 MTP, while its llama.cpp Vulkan baseline reached 51.08 tokens/s with MTP. The native stack gained aggregate throughput under concurrency and the report marked its tool-call test as passing. Faster single-stream decode was therefore only one part of the choice.

For NVIDIA server deployments, start with the official vLLM recipe or the linked SGLang cookbook. They specify model-specific reasoning and tool parsers, GPU arrangements and speculative decoding. For a quantized desktop setup, start from the converter’s documented compatible runtime and a short prompt. Increase context only after recording peak memory, prompt-processing latency and a correct tool round trip.

Source and setupReported resultWhat the trial covers
Lucebox, GB10 DGX Spark, Q4_K_M46.0 tokens/s strict autoregressive decode; 72.59GiB loadedMedian of five short runs after warmup
bench.ciru.ai, Strix Halo 128GB, native ROCm + K1 MTP26.23 tokens/s; aggregate throughput grows under concurrent loadRuntime comparison on the author’s machine
TensorFold/Vontra MLX 4-bit, Mac Studio70.18GB peak memory; 76.41 tokens/s decodeConverter smoke test; chip and full benchmark protocol unspecified

Ling long context and thinking settings

The advertised 256K context is a capacity limit. Reading that much text has a separate latency and memory cost, and an agent still has to find the relevant facts. Start with the context your real ticket needs, add a retrieval question with a known answer, and measure time to first useful output. Reusing a prefix and reading a fresh document are different workloads.

Hugging Face discussion #10 includes gopi87’s Claude Code template trouble and a report of malformed output after roughly 150K context. Discussion #15 includes a GGUF context-cap mismatch and another user’s working multi-GPU configuration. These reports make the exact quantization and chat-template revision worth keeping with your results. A context number in the model catalog does not identify those conversion details.

Thinking is enabled by default in the official template. The official sampling recommendation is temperature 0.6, top_p 0.95 and top_k 20. On your selected endpoint, record the supported reasoning controls and output limit. A run that exhausts its generation budget before applying a patch belongs in the failure count, even if its reasoning looks promising.

Choose Ling by cost per accepted task

Take one bug, one source-grounded research task and one tool workflow from your own work. Run each three times from the same starting state. Save the model ID, provider, prompt, client version, token usage, elapsed time and result. Mark success only when the agreed check passes; include interrupted sessions and repair attempts in total cost.

Compare Ling with a stronger hosted model on the same task. If Flash needs many revisions, the relevant saving is the difference in total spend and review time. If it consistently clears a bounded check, it can take that job while another model handles planning. This division should follow your measured results rather than a benchmark rank or the model’s own completion message.

For occasional work, the hosted request is a small first experiment. For a steady local workload, add hardware amortization, measured wall power and maintenance time. Use the text calculator for models with established hardware mappings and the model directory for currently available alternatives; this Ling guide links the published runtime evidence needed to evaluate a new setup.

Before you use it

  • Local model memory follows the full checkpoint, quantization, cache and context; active parameters alone cannot size the machine.
  • Community agent reports use different clients and stopping checks. Compare a full task loop before choosing a production workflow.
  • The text Flash, VL, Fin and base checkpoints have different intended uses; retain the exact ID with the request and runtime.

How to get started

Start with the OpenRouter request, then one bounded task in your client. For local deployment, choose a documented checkpoint/runtime pair and measure memory and latency before raising context or concurrency.

Sources

Sources (6)

Calculators