OpenAI
GPT-6.2 Astra
Total Context
1.1M
Max Output
128K
Released
N/A
gpt-4.1GPT-4.1 is an OpenAI model generation focused on improved coding, instruction following, and long-context performance. Official announcements present it as a stronger developer model than GPT-4o for many programming and instruction-heavy tasks. Its catalog description should highlight practical coding reliability and long-context understanding.
Context Window
1M tokens
Maximum Output
32.8K tokens
Release Date
Apr 14, 2025
Modalities
| Input Price | Output Price | Cache Read |
|---|---|---|
| $2/M | $8/M | $0.5/M |
Reasoning
Tool calling
Temperature parameter
Attachments
Knowledge Base
Endpoint Protocols
GPT-4.1 combines literal instruction following, strong coding and million-token context with low-latency responses that omit a reasoning phase.
Follows explicit prompts closely and literally, giving developers detailed control over task behavior and output requirements.
Supports a 1,047,576-token context window for processing large codebases, document collections and extensive reference material.
Performs code generation and analysis without a separate reasoning phase, supporting responsive developer interactions.
GPT-4.1 fits repository analysis, long-document processing and responsive applications with explicit, detailed instructions.
Reads large collections of source files to map dependencies, explain architecture and identify locations for planned changes.
Processes extensive document collections to extract requirements, compare passages and generate structured summaries.
Executes clearly specified business or developer workflows and returns outputs that follow detailed formatting and content rules.
import OpenAI from "openai"
const client = new OpenAI({
apiKey: process.env.TOKENHUB_API_KEY,
baseURL: "https://us-api.tokenhub.com/v1",
})
const result = await client.chat.completions.create({})
console.log(result.choices[0]?.message?.content)GPT-4.1
| Index score | ||
|---|---|---|
| Artificial Analysis Intelligence Index | Artificial Analysis broad capability aggregate | 19.4 |
| Artificial Analysis Coding Index | Artificial Analysis software task aggregate | 21.8 |
| Artificial Analysis Math Index | Artificial Analysis math reasoning aggregate | 34.7 |
| Knowledge & Reasoning | ||
| MMLU-Pro | Advanced multi-task knowledge | 80.6% |
| GPQA | Advanced science problem solving | 66.6% |
| HLE | Broad expert-level exam set | 4.6% |
| Coding & Engineering | ||
| LiveCodeBench | Live coding problems | 45.7% |
| SciCode | Scientific coding challenges | 38.1% |
| Terminal-Bench Hard | Hard terminal task execution | 13.6% |
| Math | ||
| MATH-500 | Advanced math problem solving | 91.3% |
| AIME | Competition math problems | 43.7% |
| AIME 2025 | Competition math problems | 34.7% |
| Instruction Following & Agent Tasks | ||
| IFBench | Prompt constraint adherence | 43.0% |
| AA-LCR | Long-context reasoning | 61% |
| τ²-Bench | Agent workflow tasks | 47.1% |
Metrics sourced from Artificial Analysis
Understand what GPT-4.1 is, its best uses, distinguishing strengths, practical tradeoffs, and safe TokenHub integration guidance.
GPT-4.1 is a high-capability, non-reasoning GPT model focused on instruction following, tool use, and long-context work. It has been retired from ChatGPT, while API availability may remain; check TokenHub’s current listing.
Best-fit scenarios include working across large codebases, strict instruction following, and tool-enabled application workflows. Test representative inputs and define measurable acceptance criteria before production.
Key strengths include strong handling of long context, reliable adherence to detailed instructions, and effective use of tools and function calls. This combination is especially useful for strict instruction following.
Consider another model when the task needs the deepest deliberate reasoning, very low latency is the main requirement, or the workflow cannot include human review for important decisions. Run generated code through tests, security checks, and human review before merging or deployment.
In TokenHub, select the exact model identifier displayed for GPT-4.1, use the endpoint documented for your account, and authenticate with your TokenHub credentials. Confirm whether the TokenHub entry exposes the input types, tool behavior, and output controls your application needs.
Use one API key to access GPT-4.1 and more AI models through TokenHub.
Media and Discussions
Selected public videos and posts related to this model.
X (Twitter)
OpenAI ·
Plus, Pro, & Team users will be able to access GPT-4.1 via the "more models" dropdown in the model picker. Enterprise & Edu users will get access in the coming weeks. We’re also introducing GPT-4.1 mini, replacing GPT-4o mini, in ChatGPT for all users. https://openai.com/index/gpt-4-1/
View originalOpenAI Developers ·
Announcing GPT-4.1, GPT-4.1 mini, and GPT-4.1 nano in the API. TL;DR: Major improvements on coding, instruction following, and long context. 💥 00:00 Intro 02:18 Coding 04:53 Instruction following 06:58 Long context 10:22 Demos, pricing, and availability 20:00 @windsurf_ai https://t.co/vviVb1pRqV
https://pbs.twimg.com/media/GohKFZHXAAABuVQ.jpgView originalOpenAI Developers ·
You can now fine-tune the GPT-4.1 family using direct preference optimization. 🎛️ Customize 4.1, 4.1-mini, and 4.1-nano by comparing responses, rather than fixed targets—ideal for subjective tasks where tone, style, and creativity matter. https://platform.openai.com/docs/guides/direct-preference-optimization https://t.co/fiw24kqU16
https://pbs.twimg.com/media/GtLkH04bMAcryVJ.jpgView originalReddit
OpenAI launches GPT-4.1 models and pricing
Balance- ·
View originalOpenAI announces GPT 4.1 models and pricing
Balance- ·
View originalGPT 4.1 Too passive, Claude 3.7 stops, Gemini 2.5 not good for coding?
_Darthus_ ·
View originalYouTube
GPT 4.1 in the API
OpenAI
View originalOpenAI’s GPT 4.1 - Absolutely Amazing!
Two Minute Papers
View originalGPT-4.1 UNLOCKED: Smarter, Faster AI Changes EVERYTHING You Do
Mikee AI
View original