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.
Baca selengkapnya- Harga input
- $4.50
$5.00USD / 1M token - Harga output
- $13.50
$15.00USD / 1M token - Pembacaan cache
- $2.25
$2.50USD / 1M token - Jendela konteks
- 128K
- Output maks
- 4.1K
Spesifikasi
- Input
- Teks, gambar
- Output
- Teks
Tentang model ini
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.
Coba model ini
Playground
Tulis prompt untuk mencoba model ini. Penggunaan ditagihkan sesuai harga yang ditampilkan.
Coba prompt
Tambahkan gambar (opsional)
Respons Anda akan muncul di sini
Pilih contoh atau tulis prompt, lalu klik Jalankan.
Mulai membangun
Kirim permintaan pertama Anda
Pilih salah satu API yang didukung dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Field di bawah menjelaskan Chat Completions API. Responses API menggunakan format request dan response native vendor, seperti ditunjukkan pada contoh di atas.
Skema Input
12 parameter · 1 wajib · 11 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
messages | object[] | Wajib | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Opsional | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Opsional | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Opsional | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Opsional | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | Opsional | Stream the response as server-sent events instead of returning it in one piece. · Bawaan: false |
max_tokens | integer | Opsional | Maximum number of tokens to generate in the response. · Maks: 4096 |
temperature | number | Opsional | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Bawaan: 1 |
tool_choice | string | Opsional | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Opsional | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
presence_penalty | number | Opsional | Penalizes tokens that already appear at all, encouraging new topics. · Min: -2 · Maks: 2 |
frequency_penalty | number | Opsional | Penalizes tokens by how often they already appear, reducing repetition. · Min: -2 · Maks: 2 |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk completion |
object | string | Jenis objek, mis. "chat.completion" |
model | string | Model yang digunakan untuk completion |
choices | array | Daftar pilihan completion |
choices[].message.content | string | Konten teks yang dihasilkan |
choices[].finish_reason | string | Alasan generasi berhenti |
usage.prompt_tokens | integer | Jumlah token dalam prompt |
usage.completion_tokens | integer | Jumlah token dalam completion |
usage.total_tokens | integer | Total token yang digunakan |
Pertanyaan
FAQ
Bagaimana cara memanggil OpenAI GPT-4o (2024-05-13) melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "openai/gpt-4o-2024-05-13" ke Responses API (/v1/responses) atau Chat Completions API (/v1/chat/completions) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Berapa biaya OpenAI GPT-4o (2024-05-13)?
$4.50 per 1 juta token input dan $13.50 per 1 juta token output dengan diskon 10% saat ini (harga daftar $5 / $15), ditagihkan per permintaan dari saldo SandBase Anda.
Berapa jendela konteks OpenAI GPT-4o (2024-05-13)?
128K token konteks, dengan hingga 4.1K token output per respons.
Fitur apa saja yang didukung OpenAI GPT-4o (2024-05-13)?
OpenAI GPT-4o (2024-05-13) mendukung vision (input gambar), function calling, output terstruktur. Lihat Specifications di atas untuk daftar lengkap.
Apakah saya memerlukan akun OpenAI terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke OpenAI GPT-4o (2024-05-13) dan model lain di katalog; Anda tidak perlu mendaftar ke OpenAI secara terpisah.
