[Integrations](https://spiral.ai/integrations) › [Google Antigravity](https://spiral.ai/integrations/antigravity) › [Ling 3.1 Flash](https://spiral.ai/integrations/antigravity/ling-3-1-flash)

# How to Use Ling 3.1 Flash in Google Antigravity

Ling 3.1 Flash handles coding, document analysis, and tasks that use tools. Its hybrid reasoning design supports both deliberate problem solving and direct answers, with a model card advertising 1 million tokens of context.

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

## Prompts to try with Ling 3.1 Flash in Google Antigravity

- Use Ling 3.1 Flash to investigate the failing tests in this project. Trace the failure through the relevant files, make the smallest justified fix, and run the affected tests.
- Use Ling 3.1 Flash to review the current diff for correctness. Report each issue with its file location, triggering input, and a test that would expose it.
- Use Ling 3.1 Flash to compare the implementation with the requirements in this repository. List unmet requirements with code references, then propose the order to address them.
- Use Ling 3.1 Flash to inspect this project's retry logic. Identify where retries could repeat a side effect, add a focused regression test, and propose a fix.
- Use Ling 3.1 Flash to read the project notes and recent changes. Summarize completed work, unresolved blockers, and the next three actions with a verification step for each.

## How to set up Ling 3.1 Flash in Google Antigravity

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

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity 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.1 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.1-flash",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Ling 3.1 Flash tools and prices

- [inclusionAI: Ling 3.1 Flash](https://spiral.ai/tools/openrouter/inclusionai/ling-3.1-flash) (OpenRouter): Up to $0.061346 per run at the default inputs. $0.078 per 1M input tokens, $0.234 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.1 Flash in Google Antigravity?

Use Ling 3.1 Flash to investigate bugs, review changes, and turn requirements into code and tests. Give it relevant project files and a concrete check for completion.

### Investigate a failing test

Use Ling 3.1 Flash to trace a failure through relevant code, propose a focused fix, and draft a regression test. Check the proposal by running the test.

### Review a code change

Ask Ling 3.1 Flash to examine a diff against stated requirements and identify concrete failure conditions. Request a reproduction for each reported issue.

### Compare lengthy specifications

Give Ling 3.1 Flash two specifications as text and request a table of changed requirements, conflicting statements, and unanswered questions, with section references.

### Prepare a decision brief

Use Ling 3.1 Flash to compare proposals against explicit constraints. Ask it to connect each recommendation to supplied evidence and identify missing information.

### Resume a lengthy task

Give Ling 3.1 Flash the task history, completed work, and unresolved blockers. Request the next actions with a clear completion condition for each.

### Investigate an operational incident

Use Ling 3.1 Flash to compare timestamped logs, incident notes, and tool results. Ask for a timeline and separate observed events from possible causes.

### Draft a recurring change digest

Ask Ling 3.1 Flash to compare newly collected text with the previous reporting period. Request only substantive changes, supporting excerpts, and follow-up questions.

### Extract records for review

Ask Ling 3.1 Flash to turn supplied text into JSON records with supporting excerpts. Validate the JSON and check required values before accepting the records.

## Overview

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

## Ling 3.1 Flash in other agents

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

## More Google Antigravity guides

- [Ling 3.0 Tiny](https://spiral.ai/integrations/antigravity/ling-3-0-tiny)
- [Llama 3 8B Lunaris](https://spiral.ai/integrations/antigravity/llama-3-8b-lunaris)
- [Ling 3.0 Flash VL](https://spiral.ai/integrations/antigravity/ling-3-0-flash-vl)
- [Llama 3.1 70B Instruct](https://spiral.ai/integrations/antigravity/llama-3-1-70b-instruct)
- [Ling 3.0 Flash](https://spiral.ai/integrations/antigravity/ling-3-0-flash)
- [Llama 3.1 8B Instruct](https://spiral.ai/integrations/antigravity/llama-3-1-8b-instruct)

## Questions about Ling 3.1 Flash in Google Antigravity

**Can Google Antigravity use Ling 3.1 Flash?**

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

**How much does Ling 3.1 Flash cost in Google Antigravity?**

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

**Do I need an OpenRouter account to use Ling 3.1 Flash in Google Antigravity?**

No. Spiral runs Ling 3.1 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.1 Flash in Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while Ling 3.1 Flash runs?**

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

**What is Ling 3.1 Flash good at?**

Ling 3.1 Flash is designed for coding, analysis involving several steps, and tasks that use tools. Practical applications include investigating code, comparing long documents, and continuing work from an extended task history.

**Can Ling 3.1 Flash help with software development?**

Yes. Coding is a documented focus, making bug investigation, code review, and test drafting useful tasks to try. Give it the relevant code, the expected behavior, and a way to check the result.

**How much text can Ling 3.1 Flash handle?**

The maker advertises 1 million tokens of context; SGLang clarifies that native context is 262,144 tokens, extended to 1,048,576 with YaRN. OpenRouter separately lists up to 262,144 completion tokens. Keep the prompt and requested response within the configured context limit.

**Does Ling 3.1 Flash guarantee valid JSON?**

No. OpenRouter documents that JSON output is not enforced. Request an exact structure, then parse and validate the response before using it in an automated workflow.

**Which sampling settings does the maker recommend?**

The model card recommends temperature 1.0, top_p 0.95, and top_k 20, with thinking enabled for better performance. Use those values as a starting point when evaluating your task.

