[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Kimi K2 Thinking](https://spiral.ai/integrations/grok/kimi-k2-thinking)

# How to Use Kimi K2 Thinking in Grok

Kimi K2 Thinking is built for research, coding, and writing that require multiple reasoning steps. Unlike Kimi K2 Instruct, it combines extended reasoning with tool calls to work through complex tasks.

|  |  |
| --- | --- |
| Model | Kimi K2 Thinking |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.01334 per run at the default inputs. $0.78 per 1M input tokens, $3.25 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kimi K2 Thinking in Grok

- Use Kimi K2 Thinking to compare PostgreSQL and SQLite for a single-server application with 20 internal users. Explain the tradeoffs, identify missing requirements, and give a recommendation in 500 words.
- Use Kimi K2 Thinking to investigate whether a four-day workweek improves productivity. If research tools are available, check primary studies; distinguish measured results from claims and cite the evidence.
- Use Kimi K2 Thinking to prove that the square root of 2 is irrational. State the assumptions, give a concise proof, and explain where a common incorrect argument fails.
- Use Kimi K2 Thinking to review the argument in our conversation. Identify unsupported assumptions, construct the strongest counterargument, and explain what evidence would resolve the disagreement.
- Use Kimi K2 Thinking to write an 800-word explanation of how database indexes affect reads and writes. Use concrete examples, explain tradeoffs, and finish with five questions that test understanding.

## How to set up Kimi K2 Thinking in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 Kimi K2 Thinking**: 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": "moonshotai/kimi-k2-thinking",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Grok finds Kimi K2 Thinking on Spiral, shows the price and runs it.

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

## Kimi K2 Thinking tools and prices

- [MoonshotAI: Kimi K2 Thinking](https://spiral.ai/tools/openrouter/moonshotai/kimi-k2-thinking) (OpenRouter): Up to $0.01334 per run at the default inputs. $0.78 per 1M input tokens, $3.25 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |

## What can you do with Kimi K2 Thinking in Grok?

Kimi K2 Thinking can help work through difficult questions and turn evidence into a clear explanation. State the decision you need to make, the assumptions it should examine, and the length of the answer.

### Investigate a software bug

Use Kimi K2 Thinking to trace a failure through relevant code, propose a focused fix, and check it against a reproducible test.

### Plan a code migration

Ask Kimi K2 Thinking to map dependencies, identify behavior that must survive the migration, and propose an ordered implementation and verification plan.

### Research a difficult question

Give Kimi K2 Thinking a precise question and ask it to investigate primary sources using available research tools, resolve conflicting claims, and cite its conclusions.

### Compare technical approaches

Have Kimi K2 Thinking compare designs against explicit constraints, explain tradeoffs, and identify which unanswered questions could change the recommendation.

### Check a mathematical argument

Ask Kimi K2 Thinking to examine assumptions, look for counterexamples, and verify numerical steps with an available calculation tool.

### Draft an analytical report

Supply source text and an audience brief, then ask Kimi K2 Thinking to build an argument, support each conclusion, and flag gaps in the evidence.

### Review a terminal workflow

Use Kimi K2 Thinking to investigate a failed build or command sequence, test an explanation, and document the commands and results that support it.

### Turn research into a recurring brief

Ask Kimi K2 Thinking to compare newly retrieved information with a previous summary and explain which changes affect a specific decision.

## Overview

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

## Kimi K2 Thinking in other agents

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

## More Grok guides

- [Kimi K2 0905](https://spiral.ai/integrations/grok/kimi-k2-0905)
- [Kimi K2.5](https://spiral.ai/integrations/grok/kimi-k2-5)
- [Kimi K2 0711](https://spiral.ai/integrations/grok/kimi-k2-0711)
- [Kimi K2.6](https://spiral.ai/integrations/grok/kimi-k2-6)
- [Inkling Small (batch)](https://spiral.ai/integrations/grok/inkling-small-batch)
- [Kimi K2.7 Code](https://spiral.ai/integrations/grok/kimi-k2-7-code)

## Questions about Kimi K2 Thinking in Grok

**Can Grok use Kimi K2 Thinking?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Kimi K2 Thinking like any built-in tool.

**How much does Kimi K2 Thinking cost in Grok?**

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

**Do I need an OpenRouter account to use Kimi K2 Thinking in Grok?**

No. Spiral runs Kimi K2 Thinking on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Kimi K2 Thinking in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Kimi K2 Thinking runs?**

Kimi K2 Thinking runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

**What is Kimi K2 Thinking good at?**

It is designed for research, coding, and writing that involve several reasoning steps and tool calls. Try tasks with a clear outcome, such as investigating conflicting sources, diagnosing a bug, or developing an evidence-backed report.

**How much context can Kimi K2 Thinking handle?**

Its published context window is 256K tokens. When preparing a long task, leave room for reasoning, tool results, and the final answer.

**Can Kimi K2 Thinking analyze images or video?**

It accepts text and tool definitions rather than images, audio, or video directly. Supply a transcript, extracted text, or a written description for analysis.

**Why can a short answer need a large generation budget?**

Reasoning and the final answer draw from the same generation budget. Set the desired answer length in your prompt, and leave enough generation room for the reasoning needed to produce it.

**What temperature should I use?**

Moonshot recommends 1.0 for Kimi K2 Thinking. Start there, and assess results using representative tasks with clear checks for correctness.

