# GPT-4.1 Mini

> GPT-4.1 Mini is the smaller, faster version of GPT-4.1, retaining the same 1M+ token context window with strong instruction following and tool calling at lower cost and latency. It supports a 1,047,576-token input context with 32,768 output tokens, text and image inputs, and exposes streaming, function calling, structured outputs, fine-tuning, and predicted outputs across Chat Completions, Responses, and Realtime APIs.


**ID**: `openai/gpt-4.1-mini`  
**Creator**: OpenAI  
**Category**: multimodal  
**Context**: 1M tokens  
**Pricing**: $0.40 / $1.60 per 1M · billed by your provider (BYOK)  
**Released**: 2025-04-14  
**Web page**: https://anyrouter.dev/model/openai/gpt-4.1-mini

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: GPT

**Capabilities**: chat, coding, streaming, function-calling, vision

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-4.1-mini",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| aihubmix-byok | $0.40/M (list) | $1.60/M (list) |
| openai-byok | $0.40/M (list) | $1.60/M (list) |
| openrouter-byok | $0.40/M (list) | $1.60/M (list) |
| cline-byok | $0.40/M (list) | $1.60/M (list) |
| router-byok | $0.40/M (list) | $1.60/M (list) |
| vercel-byok | $0.40/M (list) | $1.60/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.7
- **HLE**: 0.0
- **τ²-Bench Telecom**: 0.5
- **Aider Polyglot**: 0.3
- **SciCode**: 0.4

Benchmark data from [Aider](https://aider.chat/docs/leaderboards/) (Apache-2.0).
