GPT-4.1
OpenAI's latest flagship with 1M token context, improved instruction following and coding.
1M
tokens
33K
tokens
$2
per 1M tokens
$8
per 1M tokens
120
tokens/sec
Apr 2025
2025-04-14
$5.00
per 1M tokens
17.8
quality per $
Capabilities
Benchmarks
Price vs Quality
Context Window in Context
- ▸ GPT-4.11M
- Gemini 2.5 Pro1M
- Gemini 2.0 Flash1M
- Llama 4 Maverick1M
- GPT-5.51M
- GPT-5.5 Pro1M
- Claude Opus 4.71M
- Gemini 3.1 Pro1M
Not on our gateway yet
Swfte Connect does not hold a key for GPT-4.1, so there is nothing to run here. Add your own provider key and call it with the same API as every other model in this directory.
curl https://api.swfte.com/agents/v2/gateway/chat/completions \
-H "Authorization: Bearer $SWFTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai:gpt-4.1-2025-04-14",
"messages": [{"role": "user", "content": "Hello"}]
}'About GPT-4.1
GPT-4.1 is a flagship AI model by OpenAI, released on April 14, 2025. It supports a context window of 1000K tokens and can generate up to 33K output tokens.
At $2 per million input tokens and $8 per million output tokens, its blended cost of $5.00/1M tokens places it in the premium pricing tier. Its value score of 17.8 reflects the balance of quality and cost.
Using GPT-4.1 with Swfte
Access GPT-4.1 through Swfte Connect, our unified LLM gateway. Connect gives you a single API for 50+ models, with automatic routing, cost optimization, and fallback handling. You can also try GPT-4.1 in our AI Playground before integrating.