GPT-4.1
Chatopenai/gpt-4.1GPT-4.1 is an earlier-generation OpenAI flagship model, released on 2025-04-14 and optimized for advanced instruction following, real-world software engineering, and long-context reasoning. Its 1M-token context window suits complex document analysis and large-scale code generation, and the model supports vision, tool use, prompt caching, and audio input. Context window: 1M tokens, output: 32K. Newer GPT-5-series and Codex models have since taken over frontier coding work, but GPT-4.1 remains a dependable, lower-cost choice for long-document workloads and existing integrations. Accessible via the OpenAI-compatible protocol.
Providers
/v1/chat/completions/v1/responsesCode Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.run/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-4.1",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Benchmarks
GPT-4.1 scores 1414 in the Overall category of the LMArena text leaderboard (style control), ranking #109 of 374 models based on 50,934 human preference votes (updated 2026-07-12).
| Category | Arena Score | 95% CI | Rank | Votes |
|---|---|---|---|---|
| Overall | 1414 | 1410–1417 | #109 of 374 | 50,934 |
| Hard Prompts | 1431 | 1426–1436 | #111 of 374 | 22,148 |
| Coding | 1456 | 1450–1463 | #113 of 369 | 9,308 |
| Math | 1373 | 1363–1383 | #157 of 362 | 3,222 |
| Creative Writing | 1402 | 1395–1410 | #78 of 372 | 6,702 |
| Instruction Following | 1403 | 1397–1408 | #107 of 374 | 13,281 |
| Chinese | 1416 | 1403–1428 | #133 of 344 | 2,462 |
Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology ↗ · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.