# Codex Mini (Latest)

> Codex Mini Latest is a fast reasoning model optimized for the Codex CLI, fine-tuned from o4-mini and kept current with regular snapshots. It 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 and Responses endpoints. Priced at $1.50 / $6.00 per 1M input/output tokens.


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

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

**Tokenizer**: GPT

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

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openai-byok | $1.50/M (list) | $6.00/M (list) |

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