GPT-4.1 mini

openai/gpt-4.1-mini

A chat model with a 1M-token context window, at $0.42 per million input tokens and $1.68 per million output tokens.

Details

Maker
openai
Kind
Chat
Context window
1,047,576 tokens
Max output
32,768 tokens
Input
$0.42 per million tokens
Cached input
$0.105 per million tokens, 75% off
Cache write
Same as input
Output
$1.68 per million tokens
Capabilities
Tool use, vision, file input, web search, fast
Takes
Text, image, pdf
Returns
Text
Zero data retention
Yes, on every provider
No training on requests
Yes, on every provider
Released
2025-05-14
Newer model
openai/gpt-6-lunaReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

GPT 4.1 mini provides a balance between intelligence, speed, and cost that makes it an attractive model for many use cases.

Call it

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

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.