Logo
Back to all models

GPT-4 - In-Depth Overview

OpenAI · GPT-4

outdated

Model ID: gpt-4-0613

Get all the details on GPT-4, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as streaming, fine_tuning, web_browsing_via_tool, available API code samples, and performance strengths.

Key Metrics

Input Limit

8.2K tokens

Output Limit

8.2K tokens

Input Cost

$30.00/1M

Output Cost

$60.00/1M

Sample API Code

from openai import OpenAI; client = OpenAI(); chat_completion = client.chat.completions.create(messages=[{"role": "user", "content": "Say this is a test"}], model="gpt-4-0613"); print(chat_completion.choices[0].message.content)

Required Libraries

openai
openai

Benchmarks

BenchmarkScoreSourceNotes
1160
OpenLLM LeaderboardRank 113

Notes

An older version of a high-intelligence GPT model, usable in Chat Completions. Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent.

Supported Data Types

Input Types

text

Output Types

text

Strengths & Weaknesses

Exceptional at

general reasoning
instruction following

Additional Information

Latest Update

Jun 13, 2023

Knowledge Cutoff

Dec 1, 2023