Back to Models

GPT-4.1

by openai

Image Gen

Description

GPT-4.1 is OpenAI's latest flagship model with 1M context window. Features improved reasoning, coding, and instruction following. Supports vision, tools, and structured outputs.

Providers

Pricing

Input$2.00 /1M tokens
Output$8.00 /1M tokens
Get Started

Specifications

Context1M tokens
Parameters
License
Released

Capabilities

VisionStreaming

EU-Compliant API Access

Use GPT-4.1 with a simple API call. OpenAI-compatible endpoint, EU data residency guaranteed.

JavaScript
const response = await fetch("https://api.eurouter.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": `Bearer ${process.env.EUROUTER_API_KEY}`,
  },
  body: JSON.stringify({
    model: "gpt-4.1",
    messages: [
      { role: "user", content: "Hello!" }
    ],
  }),
});

const data = await response.json();
console.log(data.choices[0].message.content);

More from openai

Explore more

Integrate AI without GDPR risk.

You need AI that won't create compliance headaches. Your data stays in the EU, GDPR is enforced by default, and every request is routed for the best balance of cost, latency, and uptime — reducing risk while improving performance.

Get Started
GDPR by default
EU data residency
Smart routing
GPT-4.1 API (EU Routed) | EUrouter | EUrouter