P

GPT-4: Definition and Examples

GPT-4 is a multimodal language model developed by OpenAI, capable of understanding text and images to generate responses of unprecedented quality and accuracy.

Full definition

GPT-4 (Generative Pre-trained Transformer 4) is the fourth generation of OpenAI's language model, launched in March 2023. It represents a major qualitative leap over GPT-3.5, with significantly improved reasoning abilities, better understanding of nuances, and a marked reduction in hallucinations. It is the first model in the GPT series to be officially multimodal, accepting both text and images as input.

Unlike its predecessors, GPT-4 excels at complex tasks requiring multi-step reasoning, fine-grained document analysis, or deep contextual understanding. It has achieved scores comparable to top human candidates on standardized exams such as the US Bar Exam (90th percentile) and AP exams. Its extended context window (up to 128,000 tokens in the Turbo version) allows it to process long documents in a single request.

In prompt engineering, GPT-4 stands out for its ability to follow complex, structured instructions with high fidelity. It responds better to detailed prompts with precise constraints, specific output formats, and examples. Techniques such as chain-of-thought, few-shot learning, and system prompting achieve their full potential with this model.

GPT-4 is accessible via OpenAI's API and ChatGPT Plus. It has since been supplemented by successive versions (GPT-4 Turbo, GPT-4o) that improve speed, cost, and multimodal capabilities while retaining the reasoning foundation that made GPT-4's reputation.

Etymology

GPT stands for 'Generative Pre-trained Transformer': a generative pre-trained model based on the Transformer architecture. The number 4 indicates the fourth major iteration of this model family developed by OpenAI since 2018.

Concrete examples

Analysis of a complex legal document

You are an expert legal assistant. Analyze the following contract and identify the 5 riskiest clauses for the lessee, explaining each risk in simple terms. [CONTRACT]

Step-by-step mathematical problem solving

Solve this problem by detailing each step of your reasoning. Verify your final answer using an alternative method. Problem: [STATEMENT]

Extracting information from an image

Describe this image in detail. Identify visible text elements, dominant colors, and the main message this infographic aims to convey.

Practical usage

To get the most out of GPT-4, structure your prompts with a clear role, precise instructions, and an explicit output format. Leverage its multimodal ability by combining text and images in your requests. Favor GPT-4 for tasks requiring complex reasoning, and lighter models for simple tasks to optimize cost and latency.

Related concepts

TransformerLarge Language Model (LLM)MultimodalityToken

FAQ

What is the difference between GPT-4 and GPT-3.5?
GPT-4 surpasses GPT-3.5 in nearly every criterion: more reliable reasoning, fewer hallucinations, better understanding of complex instructions, and multimodal capability (text + image). GPT-3.5 remains relevant for simple tasks due to its lower cost and speed.
Is GPT-4 free?
Access to GPT-4 via ChatGPT requires a Plus subscription ($20/month) or Team/Enterprise. Via the API, GPT-4 is billed per usage based on the number of tokens processed, at higher rates than GPT-3.5 Turbo.
What is the context window size of GPT-4?
GPT-4 was launched with a context window of 8,192 tokens (standard version) and 32,768 tokens (32k version). The GPT-4 Turbo version later extended this window to 128,000 tokens, allowing processing of documents over 300 pages in a single request.

See also

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More definitions

Get new prompts every week

Join our newsletter.