TokenRoute
Get started
Back to models

OpenAI: GPT-4.1 Mini

Moderated

openai/gpt-4.1-mini

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard...

Pricing

Input$0.2800 /M
Output$1.12 /M
Cache read$0.0700 /M
Web search$0.0070 /req

Specs

Context length1M tokens
Max output32.8K tokens
Inputimage, text, file
Outputtext

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

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

Supported parameters

max_completion_tokens
max_tokens
response_format
seed
structured_outputs
temperature
tool_choice
tools
top_p