[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [DeepSeek V4.1 Flash](https://spiral.ai/integrations/muse-code/deepseek-v4-1-flash)

# How to Use DeepSeek V4.1 Flash in Muse Code

DeepSeek V4.1 Flash suits everyday coding, document analysis, and tool-driven work with long inputs. It is the original release; DeepSeek V4.1 Flash 1017 improves reasoning and coding benchmarks and produces shorter outputs.

|  |  |
| --- | --- |
| Model | DeepSeek V4.1 Flash |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001083 per run at the default inputs. $0.06591 per 1M input tokens, $0.26364 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with DeepSeek V4.1 Flash in Muse Code

- Use DeepSeek V4.1 Flash to investigate the failing tests in this project. Reproduce one failure, identify its cause, make the smallest justified fix, and run the relevant tests.
- Use DeepSeek V4.1 Flash to compare the project's implementation with its acceptance criteria. Report unmet requirements with file references and propose tests for each confirmed gap.
- Use DeepSeek V4.1 Flash to review this project's data import code. Test empty input, malformed rows, duplicate identifiers, and partial failures, then fix confirmed problems without changing valid-input behavior.
- Ask DeepSeek V4.1 Flash through Spiral to review the diff on this branch and list the three riskiest changes. Save the result in ./assets.
- Get a second opinion from DeepSeek V4.1 Flash on this function, then tell me what the call cost.

## How to set up DeepSeek V4.1 Flash in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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 DeepSeek V4.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": "deepseek/deepseek-v4.1-flash",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Muse Code finds DeepSeek V4.1 Flash on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## DeepSeek V4.1 Flash tools and prices

- [DeepSeek: DeepSeek V4.1 Flash](https://spiral.ai/tools/openrouter/deepseek/deepseek-v4.1-flash) (OpenRouter): Up to $0.10367 per run at the default inputs. $0.06591 per 1M input tokens, $0.26364 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 DeepSeek V4.1 Flash in Muse Code?

DeepSeek V4.1 Flash can help turn a reproducible failure into a tested code change and trace requirements across long project context. Give the agent concrete acceptance criteria and ask it to verify the result against the project.

### Repair a reproducible bug

Provide the failure, relevant code, and expected behavior. Ask for a minimal patch and a regression check that reproduces the original problem.

### Plan a change across a codebase

Supply the relevant modules and requirements. Ask for affected call sites, compatibility concerns, and an implementation sequence tied to the code.

### Turn requirements into tests

Give the acceptance criteria and existing behavior. Request tests for boundaries, invalid inputs, and failures that the current tests miss.

### Compare lengthy documents

Provide labeled document text and ask for conflicting requirements, changed obligations, or unanswered questions. Require a source passage for each finding.

### Extract structured records

Convert supplied ticket or request text into JSON records. Include an example record and explicit rules for missing dates, owners, and unsupported conclusions.

### Prepare an operational brief

Combine supplied updates and tool results into a concise report of changes, unresolved issues, and decisions needed. Keep each conclusion tied to its evidence.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## DeepSeek V4.1 Flash in other agents

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

## More Muse Code guides

- [DeepSeek V4 Pro 0813](https://spiral.ai/integrations/muse-code/deepseek-v4-pro-0813)
- [DeepSeek V4.1 Flash 1017](https://spiral.ai/integrations/muse-code/deepseek-v4-1-flash-1017)
- [DeepSeek V4 Pro 0423](https://spiral.ai/integrations/muse-code/deepseek-v4-pro-0423)
- [DeepSeek V4.1 Flash 1017 (batch)](https://spiral.ai/integrations/muse-code/deepseek-v4-1-flash-1017-batch)
- [DeepSeek V4 Flash Vision Exp](https://spiral.ai/integrations/muse-code/deepseek-v4-flash-vision-exp)
- [Devstral 2](https://spiral.ai/integrations/muse-code/devstral-2)

## Questions about DeepSeek V4.1 Flash in Muse Code

**Can Muse Code use DeepSeek V4.1 Flash?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run DeepSeek V4.1 Flash like any built-in tool.

**How much does DeepSeek V4.1 Flash cost in Muse Code?**

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

**Do I need an OpenRouter account to use DeepSeek V4.1 Flash in Muse Code?**

No. Spiral runs DeepSeek V4.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 DeepSeek V4.1 Flash in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while DeepSeek V4.1 Flash runs?**

DeepSeek V4.1 Flash runs in the background. Muse Code starts the run, checks on it and gives you the text, json when it's ready.

**What is DeepSeek V4.1 Flash good at?**

Everyday software work and office workflows are practical starting points. Try code repair, analysis of supplied documents, or tasks that need several rounds of checking evidence with tools.

**How much context can DeepSeek V4.1 Flash handle?**

DeepSeek documents a context window of up to one million tokens. Use that space for relevant source material, and ask for a focused result with references to the supplied evidence.

**What changed in DeepSeek V4.1 Flash 1017?**

DeepSeek reports improved reasoning, coding, agentic, and visual benchmark results compared with DeepSeek V4.1 Flash. It also reports faster task completion and shorter outputs.

**When should I use more reasoning effort?**

Try more reasoning effort for difficult debugging, conflicting requirements, or problems that need several checks. DeepSeek describes effort as a tradeoff between computation and accuracy, so compare results on your own tasks.

**How should I ask for JSON?**

Say JSON explicitly and include a complete example of the structure you want. Define how missing information should appear, such as null, and request only the fields your task needs.

