[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Ling 3.0 Flash](https://spiral.ai/integrations/opencode/ling-3-0-flash)

# How to Use Ling 3.0 Flash in opencode

Ling 3.0 Flash is built for code changes, research, and reasoning over long text. Its 262,144-token context accommodates large inputs, while individual completions support up to 32,768 tokens.

|  |  |
| --- | --- |
| Model | Ling 3.0 Flash |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.000337 per run at the default inputs. $0.0273 per 1M input tokens, $0.0819 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Ling 3.0 Flash in opencode

- Use Ling 3.0 Flash to investigate the failing tests in this project. Reproduce the failure, trace its cause, make the smallest justified patch, and run the relevant tests. Report the changes and any remaining failures.
- Use Ling 3.0 Flash to trace this project's main request path from entry point to response. Cite file paths and functions, explain validation and error handling, and identify questions the code does not answer.
- Use Ling 3.0 Flash to review the current diff for behavior changes and missing edge cases. Support each finding with a code location and a concrete failure scenario. Propose a test for each actionable finding.
- Use Ling 3.0 Flash to plan a refactor of duplicated validation in this repository. Identify callers, describe behavior that must remain intact, and propose small implementation steps with checks. Present the plan before editing.
- Use Ling 3.0 Flash to compare the requirements in this project's documentation with the implementation. List unmet requirements with supporting references, then propose acceptance tests for the three most consequential gaps.

## How to set up Ling 3.0 Flash in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Ling 3.0 Flash**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openrouter",
    "model": "inclusionai/ling-3.0-flash",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Ling 3.0 Flash on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Ling 3.0 Flash tools and prices

- [inclusionAI: Ling 3.0 Flash](https://spiral.ai/tools/openrouter/inclusionai/ling-3.0-flash) (OpenRouter): Up to $0.000337 per run at the default inputs. $0.0273 per 1M input tokens, $0.0819 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |

## What can you do with Ling 3.0 Flash in opencode?

Turn project code and failure reports into focused patches, explanations, and test plans with Ling 3.0 Flash. Its coding training and long context make repository investigation a useful starting point, with tests and review checking the result.

### Fix a reproducible bug

Give Ling 3.0 Flash the failing behavior, relevant code, and test output. Ask for a focused patch and a regression test.

### Plan a code refactor

Ask Ling 3.0 Flash to trace dependencies, identify behavior that must stay intact, and propose small changes with verification checks.

### Explain an unfamiliar codebase

Have Ling 3.0 Flash trace a request through the relevant modules and explain where validation, state changes, and error handling happen.

### Compare technical proposals

Supply proposal text and decision criteria. Ask Ling 3.0 Flash to compare tradeoffs, cite supporting passages, and list unanswered questions.

### Prepare a research brief

Give Ling 3.0 Flash source excerpts and a specific question. Request a brief that separates supported findings, conflicting evidence, and gaps.

### Track changes in recurring reports

Compare current and previous report text with Ling 3.0 Flash. Ask for meaningful changes, supporting passages, and questions for follow-up.

### Turn requirements into acceptance checks

Ask Ling 3.0 Flash to translate written requirements into concrete scenarios, expected outcomes, and ambiguities that need a decision.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Ling 3.0 Flash in other agents

- [Amp](https://spiral.ai/integrations/amp/ling-3-0-flash)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ling-3-0-flash)
- [Claude](https://spiral.ai/integrations/claude-desktop/ling-3-0-flash)
- [Claude Code](https://spiral.ai/integrations/claude-code/ling-3-0-flash)
- [Cline](https://spiral.ai/integrations/cline/ling-3-0-flash)
- [Codex](https://spiral.ai/integrations/codex/ling-3-0-flash)
- [Cursor](https://spiral.ai/integrations/cursor/ling-3-0-flash)
- [Devin](https://spiral.ai/integrations/devin/ling-3-0-flash)
- [dots](https://spiral.ai/integrations/dots/ling-3-0-flash)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ling-3-0-flash)
- [Gemini](https://spiral.ai/integrations/gemini/ling-3-0-flash)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ling-3-0-flash)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ling-3-0-flash)
- [goose](https://spiral.ai/integrations/goose/ling-3-0-flash)
- [Grok](https://spiral.ai/integrations/grok/ling-3-0-flash)
- [Grok Build](https://spiral.ai/integrations/grok-build/ling-3-0-flash)
- [Hermes](https://spiral.ai/integrations/hermes/ling-3-0-flash)
- [Instinct](https://spiral.ai/integrations/instinct/ling-3-0-flash)
- [Manus](https://spiral.ai/integrations/manus/ling-3-0-flash)
- [Muse](https://spiral.ai/integrations/muse/ling-3-0-flash)
- [Muse Code](https://spiral.ai/integrations/muse-code/ling-3-0-flash)
- [n8n](https://spiral.ai/integrations/n8n/ling-3-0-flash)
- [Notion](https://spiral.ai/integrations/notion/ling-3-0-flash)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ling-3-0-flash)
- [Perplexity](https://spiral.ai/integrations/perplexity/ling-3-0-flash)
- [Raycast](https://spiral.ai/integrations/raycast/ling-3-0-flash)
- [VS Code](https://spiral.ai/integrations/vscode/ling-3-0-flash)
- [Windsurf](https://spiral.ai/integrations/windsurf/ling-3-0-flash)
- [Zapier](https://spiral.ai/integrations/zapier/ling-3-0-flash)

## More opencode guides

- [LFM3-1.7B](https://spiral.ai/integrations/opencode/lfm3-1-7b)
- [Ling 3.0 Flash VL](https://spiral.ai/integrations/opencode/ling-3-0-flash-vl)
- [LFM2.5-24B-A2B](https://spiral.ai/integrations/opencode/lfm2-5-24b-a2b)
- [Ling 3.0 Tiny](https://spiral.ai/integrations/opencode/ling-3-0-tiny)
- [Kimi Latest](https://spiral.ai/integrations/opencode/kimi-latest)
- [Ling 3.1 Flash](https://spiral.ai/integrations/opencode/ling-3-1-flash)

## Questions about Ling 3.0 Flash in opencode

**Can opencode use Ling 3.0 Flash?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Ling 3.0 Flash like any built-in tool.

**How much does Ling 3.0 Flash cost in opencode?**

Up to $0.000337 per run at the default inputs. $0.0273 per 1M input tokens, $0.0819 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an OpenRouter account to use Ling 3.0 Flash in opencode?**

No. Spiral runs Ling 3.0 Flash on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Ling 3.0 Flash in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Ling 3.0 Flash runs?**

Ling 3.0 Flash runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**What is Ling 3.0 Flash useful for?**

The maker trains it for coding, general agent work, and deep research. Practical starting points include debugging, comparing source material, and turning lengthy text into an evidence-based brief.

**How much text can Ling 3.0 Flash work with?**

Its context window is 262,144 tokens. Use that capacity for relevant source material, and specify which questions the answer must resolve.

**How long can a Ling 3.0 Flash answer be?**

It supports up to 32,768 completion tokens. For lengthy deliverables, ask for an outline first and draft one section at a time.

**Which sampling settings should I start with?**

The maker recommends temperature 0.6, top_p 0.95, and top_k 20. Start there when assessing results on your own tasks.

**Does Ling 3.0 Flash use a thinking mode?**

Thinking is enabled by default in its native chat template and reasoning parser. For difficult tasks, ask for a concise final explanation with assumptions and verification checks.

