# GPT-4o Mini

> GPT-4o Mini is OpenAI's fast, affordable small model for focused tasks. It processes text and image inputs to generate text outputs (including structured outputs) and is particularly well suited for fine-tuning and distilling larger model results into cost-effective production solutions. Supports a 128,000-token input context with 16,384 output tokens, plus streaming, function calling, and predicted outputs. Priced at $0.15 / $0.60 per 1M input/output tokens ($0.075 cached input).


**ID**: `openai/gpt-4o-mini`  
**Creator**: OpenAI  
**Category**: multimodal  
**Context**: 128K tokens  
**Pricing**: $0.15 / $0.60 per 1M · billed by your provider (BYOK)  
**Released**: 2024-07-18  
**Web page**: https://anyrouter.dev/model/openai/gpt-4o-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-4o-mini",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openai-byok | $0.15/M (list) | $0.60/M (list) |
| openrouter-byok | $0.15/M (list) | $0.60/M (list) |
| cline-byok | $0.15/M (list) | $0.60/M (list) |
| router-byok | $0.15/M (list) | $0.60/M (list) |
| vercel-byok | $0.15/M (list) | $0.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.4
- **HLE**: 0.0
- **SciCode**: 0.2
