OpenAI: GPT-4.1 · fastrouter
GPT-4.1 is OpenAI's latest flagship model showcasing significant advances in coding, instruction following, and long-context understanding. It processes up to 1 million tokens (approximately 750,000 words) in a single context window, with knowledge updated to June 2024. Performance benchmarks demonstrate substantial improvements over GPT-4o, including 54.6% completion on SWE-bench Verified coding tasks (21.4% increase) and 38.3% on MultiChallenge instruction following (10.5% increase). The model excels at real-world software engineering with reduced extraneous edits (from 9% to 2%), superior code exploration capabilities, and enhanced long-document comprehension. GPT-4.1 provides improved agentic reliability while maintaining a lower price point than its predecessors, making it particularly valuable for development environments, document analysis, and enterprise knowledge systems.
Entrada, $/1M $2.00
Salida, $/1M $8.00
Lectura de caché $0.50
Escritura de caché —
Contexto 1 047 576
Salida máx. 32 768
Acepta archivos, imágenes, texto
Última comprobación 04.11.2026 12:00:14 UTC
Fuente página del proveedor
Alertas de precio
API
API compatible con OpenAI: los SDK oficiales de OpenAI funcionan con esta URL base. Sustituye YOUR_API_KEY por tu clave del proveedor.
| URL base de la API | |
|---|---|
| Endpoint | |
| ID del modelo | |
curl
curl https://go.fastrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/gpt-4.1", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://go.fastrouter.ai/api/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "openai/gpt-4.1",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://go.fastrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "openai/gpt-4.1",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Solicitud (JSON)
{
"model": "openai/gpt-4.1",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Respuesta (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "openai/gpt-4.1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}La dirección se toma de la lista de modelos del proveedor; compruébala con su documentación.
Source: AI Rate Card, https://airatecard.com/es/c/offer%3Afastrouter%7Copenai/gpt-4.1, prices checked 2026-11-04; seller's page: https://fastrouter.ai/models/openai/gpt-4.1
Datos técnicos
ID: offer:fastrouter|openai/gpt-4.1