GPT-4.1

Texte et chatNouveauDisponible
par OpenAIID du modèle: gpt-4-1

OpenAI's newest flagship model. Improved reasoning, instruction following, and coding over GPT-4o.

Prix · 1M entrée/sortie
2,40 $US / 9,60 $US
Contexte
1 000 000 tokens
Max. sortie
32 768 tokens
Entrée → Sortie
Texte → Texte
Développeur
OpenAI
Mis à jour
23 septembre 2026
01

Playground

Essayer GPT-4.1

Chat

2,40 $US/1M entrée
Essayer GPT-4.1

Envoyez un message. La réponse arrive complète une fois que le modèle a terminé (sans streaming).

Prompt système
Longueur max. de la réponse (tokens)

Cette exécution

au maximum 0,0099 $US · 0,99 crédits réservés

Facturation selon les tokens réellement utilisés ; la partie inutilisée de la réservation est remboursée.

Nouveau par ici ?

10 crédits gratuits (0,10 $US) lors de l'inscription avec Google

Utilisable 24 heures après l'inscription, jusqu'à 5 exécutions par jour et au maximum 2 crédits par exécution. Les autres méthodes de connexion commencent sans crédits. Suffisant pour 10 exécutions de ce modèle.

02

À propos de GPT-4.1

RésuméAu 23 septembre 2026

GPT-4.1 est un modèle de OpenAI dans la catégorie Texte et chat. Sur Railwail, GPT-4.1 coûte 2,40 $US par 1M tokens d'entrée et 9,60 $US par 1M tokens de sortie. La fenêtre de contexte contient 1 000 000 tokens, et une réponse peut faire jusqu'à 32 768 tokens.

Arrière-plan

À propos de OpenAI

Fondée 2015 · San Francisco, USA

OpenAI was founded in 2015 as a non-profit research lab by Sam Altman, Elon Musk, Greg Brockman, Ilya Sutskever, Wojciech Zaremba and John Schulman. In 2019 it transitioned into a capped-profit company to raise capital from Microsoft, which has invested over $13 billion. OpenAI is the publisher of the GPT series papers (GPT-1 in 2018, GPT-2 in 2019, GPT-3 in 2020, GPT-4 Technical Report in 2023), the InstructGPT paper that introduced RLHF for instruction following, and the GPT-4o System Card. Major products include ChatGPT (launched November 2022, with over 200M weekly active users), the OpenAI API, the o-series reasoning models, Sora for text-to-video and DALL-E for image generation. GPT-4.1 was released in April 2025 as an API-only model family (4.1, 4.1 mini and 4.1 nano) optimised for developers, with major improvements over GPT-4o on coding, instruction following and long-context tasks. The 2025 reported valuation exceeded $300 billion.

Visiter OpenAI

Architecture

Decoder-only Transformer (developer-focused flagship)

GPT-4.1 launched in April 2025 as an API-only successor to GPT-4o aimed primarily at developers and agentic workloads. It is a decoder-only Transformer trained on an updated multi-trillion-token mixture of text, code and image-text pairs, with a knowledge cutoff of June 2024. The model family ships in three sizes (4.1, 4.1 mini, 4.1 nano) sharing the same training recipe but distilled to different capability/latency points. The headline change versus GPT-4o is a 1,047,576-token context window (~1M tokens), validated with new long-context evaluations such as OpenAI's MRCR (Multi-Round Coreference Resolution) and Graphwalks benchmarks. Post-training emphasised coding (SWE-bench Verified moved to 54.6% from 33% on GPT-4o), instruction following on edge-case formats, and reliable behaviour in long agent loops. OpenAI used reinforcement learning against verifiable rewards and large-scale synthetic data generation to push these axes. The model deprecates GPT-4.5 Preview from the API and is positioned as the production workhorse for ChatGPT Enterprise and Team deployments. Vision input is supported in all three sizes, function calling and Structured Outputs are first-class, and pricing is roughly 26% cheaper than GPT-4o at launch.

Paramètres
Undisclosed (estimated multi-hundred billion parameters dense)
Contexte
1 047 576 tokens

Capacités

  • 1,047,576 token context window (~1M tokens)
  • Major coding improvement: 54.6% on SWE-bench Verified at launch
  • Strong instruction following on edge-case formats and negative constraints
  • Reliable behaviour over long agent loops
  • Vision input across all three model sizes (4.1, mini, nano)
  • Function calling, parallel tool calls and Structured Outputs
  • Knowledge cutoff June 2024 (later than GPT-4o)
  • About 26% cheaper than GPT-4o at launch
  • Diff-style file editing and applied-diff coding workflows
  • Improved multilingual non-English benchmark performance
  • Best for: coding agents, IDE copilots, large-document analysis, production assistants.

Entraînement et licence

Pretrained on a multi-trillion-token web-scale mixture of text, code repositories, books, licensed datasets and image-text pairs. Knowledge cutoff is June 2024. Post-training combined supervised fine-tuning, RLHF and reinforcement learning against verifiable rewards (especially for code).

Licence: Proprietary commercial license via OpenAI API and Azure OpenAI Service. Not available through the ChatGPT consumer product.

Tests de sécurité: Evaluated under OpenAI's Preparedness Framework v2 across CBRN, cyber, persuasion and autonomy axes. External red-teamers and OpenAI's Safety Advisory Group reviewed before launch.

Limitations connues

  • API-only, no ChatGPT consumer access initially
  • 1M context window is supported but quality degrades on cross-document recall vs nominal capacity
  • Higher cost than GPT-4o mini for cost-sensitive use cases
  • Still hallucinates citations and exact quotes
  • No native audio I/O (use GPT-4o for voice)
03

Tarification

Prix en dollars US. L'utilisation est facturée à partir de crédits prépayés.
Entrée2,40 $US / 1M tokens
Sortie9,60 $US / 1M tokens
  • Facturé selon les tokens que chaque requête utilise réellement.
  • 1 crédit = 0,01 $US

Calculateur de coûts

Calculateur de prix

/ req.
/ req.

Total

0,72 $US

72 crédits

Par requête

0,0072 $US · 0,72 crédits

Chaque requête est arrondie à 0,01 crédit.

04

API

Appelez GPT-4.1 avec votre clé API Railwail. Utilisez cet ID de modèle dans la requête :
curl https://railwail.com/api/v1/chat/completions \
  -H "Authorization: Bearer $RAILWAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4-1",
    "messages": [
      {
        "role": "user",
        "content": "Explain what a vector database is in two sentences."
      }
    ],
    "max_tokens": 1024
  }'
Définissez votre clé en tant que RAILWAIL_API_KEYCréer une clé API
05

Spécifications

ID du modèle
gpt-4-1
Développeur
OpenAI
Catégorie
Texte et chat
Entrée
Texte
Sortie
Texte
Fenêtre de contexte
1 000 000 tokens
Sortie max.
32 768 tokens
Facturation
À l'usage (tokens ou temps GPU)
Taille du modèle
Undisclosed (estimated multi-hundred billion parameters dense)
Licence
Proprietary commercial license via OpenAI API and Azure OpenAI Service. Not available through the ChatGPT consumer product.
Entrée du catalogue mise à jour
23 septembre 2026

Étiquettes

  • popular
  • coding
  • reasoning
06

Prompts d'exemple

Exemples du catalogue Railwail. Ils n'ont pas été générés en direct sur cette page.
  • System Design

    Design a URL shortener service. What are the key components and how would you handle 10 million requests per day?
    Afficher la réponse d'exemple

    A URL shortener at 10M req/day needs: 1) An API layer behind a load balancer to accept long URLs and return short codes. 2) A base62 encoding scheme (a-z, A-Z, 0-9) generating 6-character codes, yielding 56 billion unique URLs. 3) A distributed key-value store like Redis for fast lookups with a persistent database (PostgreSQL) as the source of truth. 4) A caching layer (CDN + Redis) since reads vastly outnumber writes. 5) Rate limiting per IP/API key to prevent abuse. At ~115 req/sec average, a few application servers with horizontal scaling can handle the load comfortably.

  • Instruction Following

    Write exactly 3 sentences about black holes. Each sentence must contain exactly 10 words. Do not use the word 'space'.
    Afficher la réponse d'exemple

    Black holes form when massive stars collapse under their gravity. Light cannot escape the intense gravitational pull they create. Scientists study these mysterious objects using powerful telescopes and math.

07

Cas d'usage

À quoi ça sert

  • Autonomous coding agents
  • IDE copilots and pair programmers
  • Long-document and codebase analysis
  • Customer support over 1M token transcripts
  • Enterprise RAG and chat assistants
  • Tool-using agents in production
08

Questions fréquemment posées

Qu'est-ce que GPT-4.1 ?

GPT-4.1 est un modèle de OpenAI dans la catégorie Texte et chat. Sur Railwail, vous pouvez l'appeler avec une clé API via l'API Railwail.

Combien coûte GPT-4.1 sur Railwail ?

Sur Railwail, GPT-4.1 coûte 2,40 $US par 1M tokens d'entrée et 9,60 $US par 1M tokens de sortie. Vous êtes facturé pour ce que chaque requête utilise réellement. L'utilisation est payée à partir de crédits prépayés ; 1 crédit équivaut à 0,01 $US.

Quelle est la fenêtre de contexte de GPT-4.1 ?

La fenêtre de contexte de GPT-4.1 contient 1 000 000 tokens. Une réponse peut faire jusqu'à 32 768 tokens.

Quelle est la vitesse de GPT-4.1 ?

Il n'y a pas encore assez d'exécutions mesurées de GPT-4.1 sur Railwail pour indiquer un temps d'exécution. Cela dépend de l'entrée, des paramètres et de la charge chez le fournisseur.

GPT-4.1 est-il meilleur que Claude Fable 5.1 ?

Cela dépend de la tâche. GPT-4.1 (OpenAI) et Claude Fable 5.1 (Anthropic) sont tous deux des modèles de la catégorie Texte et chat. La page de comparaison affiche leurs prix et spécifications côte à côte.

Comparer GPT-4.1 et Claude Fable 5.1

Comment utiliser GPT-4.1 via l'API ?

Créez une clé API Railwail et envoyez votre requête avec l'ID de modèle gpt-4-1. Des exemples de code pour curl, Python et JavaScript se trouvent dans la section API de cette page.

09

Modèles comparables

Tous dans cette catégorie
  • Anthropic's model for the most demanding reasoning and long-horizon agentic work. 1M-token context window, up to 128K output tokens, adaptive thinking that is always on.

    12,00 $US/1M entrée

    400 % plus cher par unité

    Comparer GPT-4.1 et Claude Fable 5.1
  • The most capable model of Anthropic's Opus 4 series. State of the art on long-horizon agentic work, coding and knowledge tasks, with a 1M-token context window at standard pricing.

    6,00 $US/1M entrée

    150 % plus cher par unité

    Comparer GPT-4.1 et Claude Opus 4.8
  • Anthropic's current Opus model for long-running agentic coding and knowledge work. 1M-token context window, up to 128K output tokens, adaptive thinking that is always on.

    4,80 $US/1M entrée

    100 % plus cher par unité

    Comparer GPT-4.1 et Claude Opus 5.5

Utiliser GPT-4.1 via l'API

Une clé API pour tous les modèles sur Railwail. L'utilisation est facturée à partir de crédits prépayés, 1 crédit = 0,01 $US.