[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [GPT Mini Latest](https://spiral.ai/integrations/opencode/gpt-mini-latest)

# How to Use GPT Mini Latest in opencode

Use GPT Mini Latest for focused code edits, debugging, and structured text tasks. It currently points to GPT-5.4 mini, but the alias can change as newer GPT Mini models become available.

|  |  |
| --- | --- |
| Model | GPT Mini Latest |
| Available through | OpenAI |
| Category | LLM |
| Price | Up to $0.023997 per run at the default inputs. $0.975 per 1M input tokens, $0.0975 per 1M cached input tokens, $5.85 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GPT Mini Latest in opencode

- Use GPT Mini Latest to trace the checkout total from the page component to its calculation function. Read the relevant project files and report the call path with file references.
- Use GPT Mini Latest to fix the failing date-parser test. Reproduce the failure, make the smallest relevant change, run the test again, and report the result.
- Use GPT Mini Latest to build a searchable table using the project's existing components. Include loading, empty, and error states, then verify keyboard navigation.
- Use GPT Mini Latest to review the current diff for incorrect null handling. Report each finding with a file reference, triggering input, and suggested test; return an empty list if none are found.
- Use GPT Mini Latest to convert the validation rules in this project into a JSON checklist. Preserve each rule's source location and mark conflicting rules for review.

## How to set up GPT Mini Latest 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 GPT Mini Latest**: 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": "openai",
    "model": "~openai/gpt-mini-latest",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds GPT Mini Latest on Spiral, shows the price and runs it.

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

## GPT Mini Latest tools and prices

- [GPT Mini Latest](https://spiral.ai/tools/openai/~openai/gpt-mini-latest) (OpenAI): Up to $0.023997 per run at the default inputs. $0.975 per 1M input tokens, $0.0975 per 1M cached input tokens, $5.85 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| tools |  | — |  |
| top_p | … to 1 | — | Taken only at reasoning effort "none", this model's default. |
| logprobs |  | — | Taken only at reasoning effort "none", this model's default. |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 16 to 128000 | — | The most output tokens to generate. |

## What can you do with GPT Mini Latest in opencode?

Turn a specific bug or interface requirement into a focused code change with GPT Mini Latest. Give the agent relevant project files, acceptance criteria, and an explicit verification step.

### Fix a reproducible bug

Give GPT Mini Latest the failing behavior and relevant code. Ask for a focused patch and a test that reproduces the failure.

### Find the code behind a behavior

Have GPT Mini Latest trace a request from its entry point to the function that changes the result, with file references for each step.

### Build a defined interface component

Ask GPT Mini Latest to implement a form or table with explicit loading, empty, error, and success states.

### Review a bounded code change

Give GPT Mini Latest a diff and acceptance criteria. Request concrete defects with evidence and a suggested verification step.

### Extract action items

Turn meeting text into structured actions with owners, deadlines, and supporting excerpts. Require missing details to remain unknown.

### Sort support requests

Supply category definitions and examples, then ask GPT Mini Latest to label each request and flag ambiguous cases.

### Explain an interface screenshot

Ask GPT Mini Latest to identify visible controls and explain a displayed error, separating observations from suggested fixes.

### Compare policy excerpts

Give GPT Mini Latest two passages and a fixed comparison checklist. Request changed requirements with supporting text from both versions.

## Overview

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

## GPT Mini Latest in other agents

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

## More opencode guides

- [GPT Luna Latest](https://spiral.ai/integrations/opencode/gpt-luna-latest)
- [GPT Sol Latest](https://spiral.ai/integrations/opencode/gpt-sol-latest)
- [GPT Chat Latest](https://spiral.ai/integrations/opencode/gpt-chat-latest)
- [GPT Terra Latest](https://spiral.ai/integrations/opencode/gpt-terra-latest)
- [GPT Astra](https://spiral.ai/integrations/opencode/gpt-astra)
- [GPT-3.5 Turbo 0613](https://spiral.ai/integrations/opencode/gpt-3-5-turbo-0613)

## Questions about GPT Mini Latest in opencode

**Can opencode use GPT Mini Latest?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run GPT Mini Latest like any built-in tool.

**How much does GPT Mini Latest cost in opencode?**

Up to $0.023997 per run at the default inputs. $0.975 per 1M input tokens, $0.0975 per 1M cached input tokens, $5.85 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 OpenAI account to use GPT Mini Latest in opencode?**

No. Spiral runs GPT Mini Latest on its own OpenAI account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GPT Mini Latest in opencode?**

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

**Does opencode wait while GPT Mini Latest runs?**

GPT Mini Latest runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**Does GPT Mini Latest always use the same model?**

No. It currently points to GPT-5.4 mini, but the alias follows the latest GPT Mini model, so behavior and limits can change.

**How much text can GPT Mini Latest handle?**

The current target has a 400,000-token context window and a maximum output of 128,000 tokens. Reasoning also consumes the generation allowance, so that maximum does not promise a visible answer of the same length.

**What is GPT Mini Latest good at?**

The current target suits focused code edits, codebase navigation, front-end generation, debugging, and interpreting interface screenshots. Give it a defined task and a clear deliverable.

**Where does GPT Mini Latest need more guidance?**

The current target is weaker at inferring missing steps and handling ambiguity. Specify the work order, what to do when information is missing, and the exact form of the answer.

**Can I trust every value in its JSON?**

Schema adherence does not establish factual accuracy. Define how missing evidence should appear and check extracted values against the source text.

