Azure OpenAI

Azure OpenAI: GPT-4.1

deprecated

GPT-4.1 is available through Everstack's OpenAI-compatible gateway with routing, fallback, retries, and observability.

gpt-4.1gpt-4.1released Apr 14, 2025
Context
1.0M
tokens
Max output
32.8K
tokens
Input
$2.00
per 1M
Output
$8.00
per 1M

Activity

Daily period usage
Aggregated managed Everstack traffic. Buckets below 5 tenants or 100 requests are withheld.

Providers

ProviderContextInput /MOutput /M

Pricing

ItemPriceUnit
Input$2.00per 1M tokens
Output$8.00per 1M tokens
Cache read$0.50per 1M tokens

Performance

Reliability

Compare

Compare usage and performance
Place this model beside up to three other catalog models.

Capabilities

Capabilities
Modalities
Input
Output
Details
Model ID
gpt-4.1
Family
gpt-4.1
Status
deprecated
Knowledge
-
Released
Apr 14, 2025
Gateway Config
API
2024-10-21
Auth
AZURE_OPENAI_API_KEY
Discovery
static
Provider type
static

Quick Start

index.ts
import Everstack from "@everstack/node";const client = new Everstack({  apiKey: process.env.EVERSTACK_API_KEY!,  baseUrl: "https://{instance}.{region}.everstack.ai",});const completion = await client.chat.completions.create({  model: "@azure-openai/gpt-4.1",  messages: [{ role: "user", content: "Explain vector cache routing." }],});console.log(completion.choices[0]?.message?.content);

Endpoint

Base URL
https://{resource}.openai.azure.com
Chat completions
https://{resource}.openai.azure.com/chat/completions
Model
gpt-4.1
Auth env
AZURE_OPENAI_API_KEY

GPT-4.1 FAQ

How much does the GPT-4.1 API cost?

Through Azure OpenAI, GPT-4.1 costs $2.00 per 1M input tokens and $8.00 per 1M output tokens.

What is the context window of GPT-4.1?

GPT-4.1 accepts up to 1.0M tokens of context and returns up to 32.8K output tokens on Azure OpenAI.

Which providers offer GPT-4.1?

GPT-4.1 is available from Azure OpenAI and OpenAI. Everstack can route between them with automatic fallback when one is unavailable.

What can GPT-4.1 do?

GPT-4.1 supports chat, function calling and image input. It accepts text and image input.

How do I call GPT-4.1 through Everstack?

Point any OpenAI-compatible SDK at your Everstack gateway and set the model to @azure-openai/gpt-4.1. Everstack adds retries, provider fallback, caching, per-tenant budgets and OpenTelemetry traces for every request.