Seedance 2.0 SCONTO 20% | Crea nel Video Generator →
openai
openai/gpt-4.1

openai/gpt-4.1

1,047,576 context · $2.00/M input tokens · $8.00/M output tokens

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

Prezzi

Pay-per-use

Nessun costo iniziale, paga solo per ciò che usi

Input$2.00 / M Tokens
Output$8.00 / M Tokens
Cache Read$0.50 / M Tokens

Prova il modello

openai/gpt-4.1
Online
openai
Ciao! Sono un assistente IA utile. Come posso aiutarti?

Utilizzo API

Usa i seguenti esempi di codice per integrare la nostra API:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-4.1",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Introduzione al modello

Openai gpt-4.1

openai gpt-4.1


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 1047576 context window for long document handling
  • Competitive pricing at $2.2/$8.8 per million tokens

Key Features

  • Context Window: 1047576 tokens
  • Max Output: 32768 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderOpenai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window1047576 tokens
Max Output32768 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$2.2
Output$8.8

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: openai/gpt-4.1


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-4.1",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-4.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: openai/gpt-4.1
  • Provider: Openai

Info

Provideropenai
Tipollm

Funzionalità supportate

Input
TestoImmagine
Output
Testo
Contesto1,047,576
Output massimo32,768
Vision✓ Supportato
Function Calling✓ Supportato

Guida all'accesso API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
ID modelloopenai/gpt-4.1

GPT 4.1 API

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

Input

$2 /M

Output

$8 /M

Contesto

1048K

Output max

33K

Vision

Supportato

Uso strumenti

Supportato

Prova GPT 4.1 su WaveSpeedAI

Accedi a GPT 4.1 tramite la nostra API unificata — compatibile con OpenAI, senza cold start, prezzi trasparenti.

Domande frequenti su GPT 4.1

Quanto costa GPT 4.1 via API?+

Prezzi su WaveSpeedAI: $2.00 per milione di token in input e $8.00 per milione di token in output. Prompt caching e batch processing sono fatturati separatamente e riducono il costo effettivo su carichi lunghi e ripetitivi.

Qual è la context window di GPT 4.1?+

GPT 4.1 supporta fino a 1048K token di contesto e fino a 33K token di output per richiesta.

GPT 4.1 è compatibile con OpenAI?+

Sì. WaveSpeedAI espone GPT 4.1 tramite un endpoint compatibile con OpenAI all'indirizzo https://llm.wavespeed.ai/v1. Punta l'SDK ufficiale di OpenAI a questa base URL con la tua API key WaveSpeedAI — senza altre modifiche al codice.

Come si inizia con GPT 4.1?+

Accedi a WaveSpeedAI, crea una API key in Access Keys, poi invia una richiesta a https://llm.wavespeed.ai/v1/chat/completions con il model id mostrato sopra. I nuovi account ricevono crediti gratuiti per testare GPT 4.1.

API LLM correlate