[Integrations](https://spiral.ai/integrations) › [OpenClaw](https://spiral.ai/integrations/openclaw) › [Gemini 3.8 Flash](https://spiral.ai/integrations/openclaw/gemini-3-8-flash)

# How to Use Gemini 3.8 Flash in OpenClaw

Gemini 3.8 Flash suits code changes across multiple files, document analysis, and tasks that need several reasoning steps. Google reports stronger software engineering and reasoning than Gemini 3.7 Flash, with greater token use possible on difficult work.

|  |  |
| --- | --- |
| Model | Gemini 3.8 Flash |
| Available through | Vertex AI, Gemini |
| Category | LLM |
| Price | Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.195 per 1M cached input tokens, $0.054166668 per 1M cache write tokens, $9.75 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemini 3.8 Flash in OpenClaw

- Each morning, use Gemini 3.8 Flash to review the supplied support requests. Classify each as billing, bug, feature request, or other, and draft one clarifying question for requests missing essential details.
- Every weekday, use Gemini 3.8 Flash to compare the supplied policy text with the previous version. Report changed requirements with supporting passages, or say no substantive change was found.
- Each evening, use Gemini 3.8 Flash to extract decisions and unresolved questions from the supplied meeting summaries. Return structured records and leave unstated owners and deadlines empty.
- Every Monday, use Gemini 3.8 Flash with high reasoning effort to review the supplied operational report. Flag inconsistent figures and unsupported conclusions, with evidence for each finding.
- Each morning, use Gemini 3.8 Flash with low reasoning effort to summarize the supplied incident updates in 300 words. Separate confirmed events, suspected causes, and unanswered questions.

## How to set up Gemini 3.8 Flash in OpenClaw

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

### Use the Spiral skill

1. **Send OpenClaw 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 Spiral's MCP server

1. **Add the server**: On the machine that runs OpenClaw's Gateway:

```bash
openclaw mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --transport streamable-http \
  --auth oauth
```

2. **Sign in**: In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

```bash
openclaw mcp login spiral
```

3. **Reload and check**: A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

```bash
openclaw mcp reload
openclaw mcp doctor spiral --probe
```

### 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 Gemini 3.8 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": "vertex",
    "model": "google/gemini-3.8-flash",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: OpenClaw finds Gemini 3.8 Flash on Spiral, shows the price and runs it.

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

## Gemini 3.8 Flash tools and prices

- [Gemini 3.8 Flash](https://spiral.ai/tools/vertex/google/gemini-3.8-flash) (Vertex AI): Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.195 per 1M cached input tokens, $0.054166668 per 1M cache write tokens, $9.75 per 1M output tokens.
- [Gemini 3.8 Flash Media Understanding (image, video, audio, PDF)](https://spiral.ai/tools/gemini/gemini-3.8-flash) (Gemini): Up to $2.6837 per run at the default inputs. $1.95 per 1M input tokens, $0.195 per 1M cached input tokens, $9.75 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 65536 | — | The most output tokens to generate. |
| tool_choice |  | — |  |

## What can you do with Gemini 3.8 Flash in OpenClaw?

Gemini 3.8 Flash can turn recurring batches of text into triage reports and structured summaries. Define consistent categories and require supporting evidence for anything it flags.

### Refactor code across files

Use Gemini 3.8 Flash to trace a change through related modules, update callers, and check the result with focused tests.

### Investigate difficult bugs

Give Gemini 3.8 Flash the relevant code and failure details. Ask for a reproducible explanation, a small fix, and a regression check.

### Compare lengthy documents

Ask Gemini 3.8 Flash to compare supplied document text, identify conflicting requirements, and cite the passages behind each finding.

### Extract records from text

Use Gemini 3.8 Flash to turn order notes or meeting summaries into structured records, with explicit rules for missing information.

### Triage incoming requests

Ask Gemini 3.8 Flash to classify request text, summarize the issue, and draft the next question using a fixed set of categories.

### Review analytical reports

Have Gemini 3.8 Flash examine supplied figures and explanations, flag unsupported conclusions, and list calculations that need an independent check.

## Overview

- [Google Vertex AI](https://spiral.ai/providers/vertex)
- [All OpenClaw guides](https://spiral.ai/integrations/openclaw)

## Gemini 3.8 Flash in other agents

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

## More OpenClaw guides

- [Gemini 3.7 Flash](https://spiral.ai/integrations/openclaw/gemini-3-7-flash)
- [Gemini 4 Argon](https://spiral.ai/integrations/openclaw/gemini-4-argon)
- [Gemini 3.5 Flash-Lite](https://spiral.ai/integrations/openclaw/gemini-3-5-flash-lite)
- [Gemini 4 Carbon](https://spiral.ai/integrations/openclaw/gemini-4-carbon)
- [Gemini 3.5 Flash](https://spiral.ai/integrations/openclaw/gemini-3-5-flash)
- [Gemini 4 Carbon Batch](https://spiral.ai/integrations/openclaw/gemini-4-carbon-batch)

## Questions about Gemini 3.8 Flash in OpenClaw

**Can OpenClaw use Gemini 3.8 Flash?**

Yes. Add Spiral to OpenClaw as an MCP server, and OpenClaw can find and run Gemini 3.8 Flash like any built-in tool.

**How much does Gemini 3.8 Flash cost in OpenClaw?**

Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.195 per 1M cached input tokens, $0.054166668 per 1M cache write tokens, $9.75 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your OpenClaw plan is separate.

**Do I need a Vertex AI account to use Gemini 3.8 Flash in OpenClaw?**

No. Spiral runs Gemini 3.8 Flash on its own Vertex AI account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Gemini 3.8 Flash in OpenClaw?**

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

**Which provider runs Gemini 3.8 Flash?**

Spiral offers Gemini 3.8 Flash through Vertex AI and Gemini. Name one in your prompt, or let OpenClaw pick.

**Does OpenClaw wait while Gemini 3.8 Flash runs?**

Gemini 3.8 Flash runs in the background. OpenClaw starts the run, checks on it and gives you the text, json when it's ready.

**What is Gemini 3.8 Flash good at?**

It is designed for software engineering, agent tasks, and analysis that takes several reasoning steps. Google reports improvements over Gemini 3.7 Flash in these areas.

**How much text can Gemini 3.8 Flash handle?**

Google lists an input limit of 1,048,576 tokens and an output limit of 65,536 tokens. For a long report, specify the sections and desired length instead of asking it to fill the available space.

**When should I increase reasoning effort?**

Use high effort for difficult mathematics or analysis with several dependent steps. Low effort suits quick drafts and simpler analysis; higher effort can increase token use.

**Can Gemini 3.8 Flash return structured data?**

Yes, it supports structured outputs with a JSON Schema. Define the information you need and how missing values should appear, then validate the extracted values against the source.

**What should I check before trusting an answer?**

Gemini 3.8 Flash can hallucinate. Check citations, calculations, and code behavior, and ask it to distinguish evidence from assumptions.

