OpenRouter model
OpenAI: GPT-4.1
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...
- Provider
- OpenRouter
- Availability
- Available
- Model ID
- openai/gpt-4.1
- Snapshot
- 2026-10-07
OpenAI: GPT-4.1 Benchmarks & Agentic Accuracy
Verified primary research & developer preference metrics
What This Means in Real Software Development
- Significant step up from GPT-4o on agentic code refactoring (44.5% SWE-bench Verified).
- Reduces syntax errors in complex TypeScript types and async Rust/Go routines.
- Balanced throughput with native tool-calling reliability.
- Priced competitively at $2.00/M input and $8.00/M output.
Swarm Multi-Agent Topology
Best Paired With: Claude 3.7 Sonnet as Lead Planner
High code synthesis fidelity makes it reliable for Stage 2 code implementation in Task Programs.
Operates inside isolated worktrees, committing tested code patches directly to feature branches.
What Developers & Practitioners Are Saying
Real-world field observations, production strengths, and developer consensus
"A focused coding iteration on the GPT-4 architecture, reducing verbosity and improving diff correctness."
Verified Real-World Strengths
- 44.5% on SWE-bench Verified
- Cleaner unified diffs compared to standard GPT-4o
- Lower token consumption due to concise output style
Production Caveats & Gaps
- Lacks internal reasoning tokens for hard algorithmic puzzles
Primary Sources & Methodology Citations
- OpenAI GPT-4.1 Architecture and Benchmarks — OpenAI (April 2025)
OpenAI: GPT-4.1 model overview
OpenAI: GPT-4.1 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
Run OpenAI: GPT-4.1 in Swarm
Verified CLI workflow & multi-agent architecture
swarm ctl model set --provider openrouter --model openrouter/openai/gpt-4.1# Or switch interactively inside the terminal TUI:
/modelsSubagent Role Matrix
Assign OpenAI: GPT-4.1 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.
Public catalog snapshot. Catalog availability is not a real-time provider status or an access guarantee.