Logo
Back to all models

GPT-4 - In-Depth Overview

OpenAI · GPT-4

outdated
Flagship

Model ID: gpt-4-0314

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

Key Metrics

Input Limit

8.2K tokens

Output Limit

4.1K tokens

Input Cost

$30.00/1M

Output Cost

$60.00/1M

Sample API Code

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4-0314",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)

Required Libraries

openai
openai

Benchmarks

BenchmarkScoreSourceNotes
1183
OpenLLM Leaderboard-

Notes

An older high-intelligence GPT model, released March 14, 2023. Primarily text-based.

Supported Data Types

Input Types

text

Output Types

text

Strengths & Weaknesses

Exceptional at

general reasoning
complex problem solving

Good at

creative writing
code generation
instruction following

Poor at

real time information access
multimodal input

Additional Information

Latest Update

Mar 14, 2023

Knowledge Cutoff

Sep 1, 2021