GPT-4.1

OpenAIMCP Tool Call
openai/gpt-4.1Closed API

Long-lived GPT workhorse for coding, instruction following, and production apps

Benchmark Pricing$2.00 / 1M in$8.00 / 1M out$0.50 cache read
Context: 1,047,576 tokens•Max Output: 32,768 tokens•Knowledge: 2024-04•Released: 2025-04-14

TECHNICAL SPECIFICATIONS

Context Window1,047,5761M tokens
Max Output32,76832.8K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDF
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ GPT-4.1 natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 1,047,576 tokens, this model can handle extremely large MCP resource manifests, complete database schemas, and multiple active server tool definitions simultaneously without degradation.

STANDARDIZED BENCHMARKS & EVALS

Aider Polyglotpercent correct
52.4

API CALL INVOCATION EXAMPLE

// Example: Calling GPT-4.1 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-4.1",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

15 providers
OpenAIgpt-4.1
$2.00 / $8.00$0.50 cache
Cortecsgpt-4.1
$2.19 / $8.77$0.55 cache
NanoGPTopenai/gpt-4.1
$2.00 / $8.00$0.50 cache
SAP AI Coregpt-4.1
$2.00 / $8.00$0.50 cache
Snowflake Cortexopenai-gpt-4.1
$2.00 / $8.00$0.50 cache
302.AIgpt-4.1
$2.00 / $8.00
LLM Gatewayopenai/gpt-4.1
$2.00 / $8.00$0.50 cache
Poeopenai/gpt-4.1
$1.82 / $7.27$0.45 cache
AI/ML APIopenai/gpt-4.1
$2.60 / $10.40$0.65 cache
Cloudflare AI Gatewayopenai/gpt-4.1
$2.00 / $8.00$0.50 cache
Abacusgpt-4.1
$2.00 / $8.00$0.50 cache
Vercel AI Gatewayopenai/gpt-4.1-fast
$3.50 / $14.00$0.88 cache
Eden AIopenai/gpt-4.1
$2.00 / $8.00$0.50 cache
NEAR AI Cloudopenai/gpt-4.1
$2.00 / $8.00$0.50 cache
Ofoxopenai/gpt-4.1
$2.00 / $8.00$0.50 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.50 / 1M tokens, saving up to 75% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES