openai logo
openai

OpenAI: GPT-4.1

Descrizione della fonte (inglese)

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...

Panoramica

Specifiche del modello

Contesto
1.047.576 tokens
Output massimo
32.768 tokens
Architettura
text+image+file->text
Tokenizer
GPT
Limite di conoscenza
2024-06-30
Moderato
Sì
OPENROUTER

Prezzi completi

Tariffe sincronizzate da OpenRouter, per milione di token.

Input
$2
per milione di token
Output
$8
per milione di token
Lettura cache
$0.5
per milione di token
API

Avvio rapido

Imposta OPENROUTER_API_KEY localmente. Python richiede requests; JavaScript viene eseguito in Node.js. Conserva la chiave sul server.

Documentazione API

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4.1","messages":[{"role":"user","content":"Hello!"}]}'
Capacità e modalità

Input → Output

Input
imagetextfile
Output
text
API

Parametri API supportati

max_completion_tokensmax_tokensresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_p
Provider disponibili

3 provider

Verificato: 7 settembre 2026

Provider live su OpenRouter

Disponibilità, latenza, throughput e routing cambiano continuamente. Consulta la fonte per i dati correnti.

OpenRouter

Azure

Non indicato
Contesto
1.0M
Output massimo
943K
Input
$2
Output
$8
Lettura cache
$0.5
Scrittura cache
Non indicato

OpenAI

Non indicato
Contesto
1.0M
Output massimo
33K
Input
$2
Output
$8
Lettura cache
$0.5
Scrittura cache
Non indicato

Azure

Non indicato
Contesto
1.0M
Output massimo
943K
Input
$2.2
Output
$8.8
Lettura cache
$0.55
Scrittura cache
Non indicato
openai

4 modelli

Tutti i modelli