TokenRoute
Get started
Back to models

OpenAI: GPT-4.1

Moderated

openai/gpt-4.1

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...

Pricing

Input$1.40 /M
Output$5.60 /M
Cache read$0.3500 /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",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

max_completion_tokens
max_tokens
response_format
seed
structured_outputs
temperature
tool_choice
tools
top_p