# GPT-4.1

Production workhorse model with 1M context. Good for coding and complex tasks. Retired from ChatGPT but available via API.

## Overview

- **Provider:** OpenAI
- **Model ID:** `gpt-4.1`
- **Type:** Chat
- **Canonical URL:** https://modelstack.cc/models/chat/gpt-4.1
- **Version:** 4.1
- **Best for:** Production coding, 1M context applications, balanced cost-performance

## Pricing

| Usage | Price |
| --- | ---: |
| Input | $2 / 1M tokens |
| Output | $8 / 1M tokens |
| Cache read | $0.5 / 1M tokens |
| Cache write (5 minutes) | $2 / 1M tokens |

## Specifications

- **Context window:** 1M
- **Maximum output:** 128K
- **Typical latency:** 18 ms
- **Released:** 2025-12

## Capabilities

- chat
- tool_use
- vision
- coding

## API usage

Use this model ID in a ModelStack API request:

```json
{
  "model": "gpt-4.1"
}
```

For the rendered page, visit https://modelstack.cc/models/chat/gpt-4.1.
