Requesty
Microsoft Azure AI logo
Microsoft Azure AI@swedencentral

openai-responses/gpt-4.1

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is tuned for precise code diffs, agent reliability, and high recall in large document contexts, making it ideal for agents, IDE tooling, and enterprise knowledge retrieval.

πŸ‘VisionπŸ”§Tool calling⚑Caching

Specifications

Context window1.0M tokens
Max output33K tokens
API typechat
AddedApr 14, 2025
Model IDazure/openai-responses/gpt-4.1@swedencentral
Data retentionNo
Used for trainingNo
Provider locationπŸ‡ΊπŸ‡Έ US / πŸ‡ͺπŸ‡Ί EU

Benchmarks

Released 2025-04
SWE-Bench Verifiedcoding
68.1%

Resolving real GitHub issues from 12 popular Python repositories.

GPQA Diamondreasoning
74.1%

Graduate-level physics, chemistry & biology questions designed to resist Googling.

MMLU Proknowledge
85.3%

Massive Multitask Language Understanding across 57 academic subjects.

Scores are sourced from official model cards, Artificial Analysis, and public leaderboards. Benchmarks measure specific skills and do not capture every aspect of model quality β€” always test on your own workload.

Pricing

Input / 1M
$2.00
Output / 1M
$8.00
Cache write / 1M
$2.00
Cache read / 1M
$0.50
Estimated cost
100K input + 10K output$0.28
1M input + 100K output$2.80
10M input + 1M output$28.00

Requesty charges exactly what the upstream provider charges β€” no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.

Quickstart

Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to azure/openai-responses/gpt-4.1@swedencentral.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="azure/openai-responses/gpt-4.1@swedencentral", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Other Microsoft Azure AI models

Frequently asked questions

How much does openai-responses/gpt-4.1 cost?
openai-responses/gpt-4.1 is priced at $2.00 per million input tokens and $8.00 per million output tokens when accessed via Requesty. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Requesty charges exactly what the upstream provider charges β€” we don't add markup.
What is the context window of openai-responses/gpt-4.1?
openai-responses/gpt-4.1 has a context window of 1.0M tokens, with a maximum output of 33K tokens per response. That's roughly 1,397 words of input you can fit in a single prompt.
How does openai-responses/gpt-4.1 perform on benchmarks?
openai-responses/gpt-4.1 scores 91.8% on HumanEval, 89.2% on MATH, 85.3% on MMLU Pro. See the full benchmark chart above for results across MMLU Pro, GPQA Diamond, SWE-Bench Verified, HumanEval, MATH, AIME, MMMU, and LiveBench.
What can openai-responses/gpt-4.1 do?
openai-responses/gpt-4.1 supports vision input, tool calling, prompt caching. You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use openai-responses/gpt-4.1 with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "azure/openai-responses/gpt-4.1@swedencentral". The Quickstart above shows Python, JavaScript and cURL snippets.
What region is this deployment?
This variant of openai-responses/gpt-4.1 is deployed in swedencentral. Region-specific endpoints matter for data residency, latency to your users, and compliance requirements (GDPR, HIPAA). Other regions for the same model may be listed on the Microsoft Azure AI provider page.

Access openai-responses/gpt-4.1 through Requesty

One API key, 400+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.