# o4-mini

> OpenAI o4-mini is a fast, cost-efficient o-series reasoning model with strong performance across coding and visual tasks, succeeded by GPT-5 Mini for new workloads. Supports a 200,000-token input context with 100,000 output tokens, accepts text and image inputs, and exposes streaming, function calling, structured outputs, and reasoning tokens across Chat Completions, Responses, Realtime, Batch, Fine-tuning, and Assistants APIs. Priced at $1.10 / $4.40 per 1M input/output tokens.


**ID**: `openai/o4-mini`  
**Creator**: OpenAI  
**Category**: text  
**Context**: 200K tokens  
**Pricing**: $1.10 / $4.40 per 1M · billed by your provider (BYOK)  
**Released**: 2025-04-16  
**Web page**: https://anyrouter.dev/model/openai/o4-mini

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

**Tokenizer**: GPT

**Capabilities**: chat, reasoning, 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/o4-mini",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openai-byok | $1.10/M (list) | $4.40/M (list) |
| openrouter-byok | $1.10/M (list) | $4.40/M (list) |
| router-byok | $1.10/M (list) | $4.40/M (list) |
| vercel-byok | $1.10/M (list) | $4.40/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.8
- **HLE**: 0.2
- **τ²-Bench Telecom**: 0.6
- **Aider Polyglot**: 0.7
- **SciCode**: 0.5

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