OpenRouter model

OpenAI: GPT-4.1 Mini

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard...

Provider
OpenRouter
Availability
Available
Model ID
openai/gpt-4.1-mini
Snapshot
2026-10-07
Evaluation Verdict

OpenAI GPT-4.1-mini delivers 32.0% on SWE-bench Verified at $0.20/M input, providing an efficient engine for rapid subagent grep, test execution, and code verification.

OpenAI: GPT-4.1 Mini Benchmarks & Agentic Accuracy

Verified primary research & developer preference metrics

Primary Sources Verified
SWE-bench Verified
32%
StandardOpenAI Technical Preview ↗
LiveCodeBench
31.5%
StandardLiveCodeBench ↗
LMSYS Coding Elo
1275Elo
Coding ArenaLMSYS Arena ↗
AIME 2024 / 2025
28.5%
StandardOpenAI Technical Preview ↗
Pricing ($ / 1M tokens)
$0.2/ $0.8
$0.06 cached readStandard API Pricing

What This Means in Real Software Development

  • High speed enables instant responses across multi-turn agent conversations.
  • Substantial 32.0% SWE-bench score at near-zero token cost ($0.20/M input).
  • Strong support for structured tool calls, function calling, and AST inspection.
  • Ideal for high-concurrency subagent swarms running inside separate worktrees.

Swarm Multi-Agent Topology

Tier 3: High-Velocity Subagent EngineRole: Finder Subagent

Best Paired With: Claude 3.7 Sonnet as Lead Planner

High throughput and low pricing enable deploying 10+ parallel subagents for symbol search and test runs.

Git Worktree Isolation Advantage:

Executes read-only repo scans across multiple worktrees concurrently.

What Developers & Practitioners Are Saying

Real-world field observations, production strengths, and developer consensus

Field Consensus

"Refined compact model offering improved instruction adherence for developer toolchains."

Verified Real-World Strengths

  • 32.0% on SWE-bench Verified
  • Fast response times for CLI autocomplete and triage
  • Crisp code explanations without fluff

Production Caveats & Gaps

  • Limited capacity for deep multi-step algorithmic reasoning
Benchmark Reality Check

What the benchmark tests: Tests lightweight code editing and syntax error correction.

Production caveat: Use for high-frequency linting and quick syntax patches.

Primary Sources & Methodology Citations

OpenAI: GPT-4.1 Mini model overview

OpenAI: GPT-4.1 Mini is listed in the public Swarm catalog through OpenRouter. This page summarizes the verified catalog fields used by Swarm without claiming real-time access for every provider account.

Provider
OpenRouter
Family
OpenRouter
Context window
1.05M tokens
Thinking support
Not supported
Availability status
Available
Catalog ID
openrouter/openai/gpt-4.1-mini
  • File input
  • Image input
  • Text input
  • Text output
  • Tools
  • Structured output
  • JSON

Run OpenAI: GPT-4.1 Mini in Swarm

Verified CLI workflow & multi-agent architecture

Quickstart Guide →
bash — swarm run
$swarm ctl model set --provider openrouter --model openrouter/openai/gpt-4.1-mini

# Or switch interactively inside the terminal TUI:

>/models

Subagent Role Matrix

Assign OpenAI: GPT-4.1 Mini to specialized system roles in ~/.swarm/config.json:

  • Primary / Planner: Orchestrates full task DAGs and multi-stage pipelines.
  • Coder Subagent: Generates code and unit tests inside private Git worktrees.
  • Finder Subagent: Performs read-only code search, symbol discovery, and mapping.
← All OpenRouter models

Public catalog snapshot. Catalog availability is not a real-time provider status or an access guarantee.