TokenRoute
Get started
Back to models

OpenAI: GPT-4o-mini

Moderated

openai/gpt-4o-mini

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable...

Pricing

Input$0.1050 /M
Output$0.4200 /M
Cache read$0.0525 /M

Specs

Context length128K tokens
Max output16.4K tokens
Inputtext, image, 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-4o-mini",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

frequency_penalty
logit_bias
logprobs
max_completion_tokens
max_tokens
prediction
presence_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_logprobs
top_p
web_search_options
OpenAI: GPT-4o-mini API, pricing and context length | TokenRoute