# GPT-4.1 Mini

> GPT-4.1 Mini is a cost-efficient, faster version of GPT-4.1 optimized for everyday tasks and quick responses.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `openai/gpt-4.1-mini`
- Status: stops working on 2027-01-14, use openai/gpt-6-luna instead
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/openai/gpt-4.1-mini
- Released: 2025-04-14
- Context: 1M tokens
- Max output: 33K tokens
- Input: text, image; output: text
- Knowledge cutoff: 2024-05
- Capability score: 134 (as of 2026-11-10, see https://www.ohmygpt.com/rankings.md)
- Human preference rating (LMArena text): 1341

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.36 | per 1M tokens |
| Output | $1.44 | per 1M tokens |
| Cache read | $0.09 | per 1M tokens |
| Web search | $0.0225 | per request |

## Providers

This model chooses its provider itself; a provider prefix is not accepted.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| OpenAI | — | United States | $0.36 | $1.44 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `openai/gpt-4.1-mini` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `openai/gpt-4.1-mini` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `openai/gpt-4.1-mini` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/openai/gpt-4.1-mini:generateContent | `openai/gpt-4.1-mini` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/openai/gpt-4.1-mini
