GPT-4o (2024-05-13)
openai/gpt-4o-2024-05-13This is the pinned May 13, 2024 snapshot of OpenAI's GPT-4o, the original API release of the model, with text and image input and text output. It is intended for workloads that need a fixed, reproducible version of the launch-era GPT-4o rather than the moving GPT-4o alias. Later snapshots from August and November 2024 add Structured Outputs with JSON schemas and a larger output limit, so most fresh projects start with one of those.
Leggi di più- Prezzo input
- $4.50
$5.00USD / 1M token - Prezzo output
- $13.50
$15.00USD / 1M token - Lettura da cache
- $2.25
$2.50USD / 1M token - Finestra di contesto
- 128K
- Output massimo
- 4.1K
Specifiche
- Input
- Testo, immagine
- Output
- Testo
Informazioni su questo modello
This is the pinned May 13, 2024 snapshot of OpenAI's GPT-4o, the original API release of the model, with text and image input and text output. It is intended for workloads that need a fixed, reproducible version of the launch-era GPT-4o rather than the moving GPT-4o alias. Later snapshots from August and November 2024 add Structured Outputs with JSON schemas and a larger output limit, so most fresh projects start with one of those.
Prova il modello
Playground
Scrivi un prompt per provare questo modello. L'utilizzo viene fatturato secondo i prezzi indicati.
Prova un prompt
Aggiungi un'immagine (opzionale)
La tua risposta apparirà qui
Scegli un esempio oppure scrivi un prompt, poi fai clic su Esegui.
Inizia a costruire
Invia la tua prima richiesta
Scegli una delle API supportate con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/responses" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o-2024-05-13",
"input": "Hello",
"max_output_tokens": 2048
}'I campi qui sotto descrivono la Chat Completions API. Responses API usa il formato nativo di richiesta e risposta del vendor, come mostrato nell'esempio sopra.
Schema di input
12 parametri · 1 obbligatori · 11 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
messages | object[] | Obbligatorio | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Facoltativo | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Facoltativo | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facoltativo | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facoltativo | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Max: 1 |
stream | boolean | Facoltativo | Stream the response as server-sent events instead of returning it in one piece. · Predefinito: false |
max_tokens | integer | Facoltativo | Maximum number of tokens to generate in the response. · Max: 4096 |
temperature | number | Facoltativo | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Max: 2 · Predefinito: 1 |
tool_choice | string | Facoltativo | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facoltativo | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
presence_penalty | number | Facoltativo | Penalizes tokens that already appear at all, encouraging new topics. · Min: -2 · Max: 2 |
frequency_penalty | number | Facoltativo | Penalizes tokens by how often they already appear, reducing repetition. · Min: -2 · Max: 2 |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco del completamento |
object | string | Tipo di oggetto, ad esempio "chat.completion" |
model | string | Modello usato per il completamento |
choices | array | Elenco delle alternative di completamento |
choices[].message.content | string | Contenuto di testo generato |
choices[].finish_reason | string | Motivo per cui la generazione si è interrotta |
usage.prompt_tokens | integer | Numero di token nel prompt |
usage.completion_tokens | integer | Numero di token nel completamento |
usage.total_tokens | integer | Token totali utilizzati |
Domande
FAQ
Come chiamo OpenAI GPT-4o (2024-05-13) tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "openai/gpt-4o-2024-05-13" a Responses API (/v1/responses) o Chat Completions API (/v1/chat/completions) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa OpenAI GPT-4o (2024-05-13)?
$4.50 per 1M token di input e $13.50 per 1M token di output con l'attuale sconto del 10% (prezzo di listino $5 / $15), addebitato per richiesta dal tuo saldo SandBase.
Qual è la finestra di contesto di OpenAI GPT-4o (2024-05-13)?
128K token di contesto, con fino a 4.1K token di output per risposta.
Quali funzionalità supporta OpenAI GPT-4o (2024-05-13)?
OpenAI GPT-4o (2024-05-13) supporta visione (input immagini), function calling, output strutturato. Consulta le Specifiche sopra per l'elenco completo.
Mi serve un account OpenAI separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a OpenAI GPT-4o (2024-05-13) e agli altri modelli del catalogo; non è necessario registrarsi separatamente su OpenAI.
