How does ChatGPT work, and why does it write the way it does?

ChatGPT works by predicting the next word, over and over, with a large language model. The steps from prompt to reply, and why its prose sounds the way it does.

By Strokes Team · · 7 min read

The words How ChatGPT works set large in serif type beside a three-step flow: a prompt bubble feeds a card with the AI sparkle that weighs three candidate next words, quiet, still and dark, and the reply below adds the winner, quiet, just before a blinking caret.
Weigh the options, write one word, repeat.
Table of contents
  1. From prompt to reply
  2. How the model was trained
  3. Why it writes that way
  4. Test it yourself
  5. Editing AI drafts in Strokes
  6. Frequently asked questions

The short answer to how does ChatGPT work is prediction. Your message, the conversation so far and a set of instructions go to a large language model, and the model writes the reply one small piece at a time, each time choosing a likely next piece given everything before it. OpenAI trained the model on a very large body of text and then on human feedback, which is why the reply reads like an assistant's answer and why it leans toward familiar phrasing.

This page follows one message from prompt to reply, then explains how the model was trained and what that does to its prose. The facts come from OpenAI's help center, pricing page, launch post and Model Spec, read on November 18, 2026. For what ChatGPT is and what its plans include, see what is ChatGPT; for the mechanism shared by all such models, see what an LLM is.

From prompt to reply

  1. ChatGPT assembles the context

    Your message does not travel alone. The pricing page says ChatGPT manages a shared context window, part of which goes to system instructions, memories and internal processing. The earlier turns of the chat share that window.

  2. The text is cut into tokens

    Models read tokens, pieces of words that OpenAI puts at about four characters of English each.

  3. On harder questions, the model reasons first

    The model menu offers Instant for fast replies and thinking levels above it; Free and Go users get a single Think option, according to OpenAI's article on models in ChatGPT. A thinking model spends extra internal steps on the problem before it starts the reply.

  4. If the question needs current facts, it searches

    ChatGPT can search the web on its own when a question might benefit, or when you ask it to. Replies that used search carry inline citations and a Sources button. Without search, the model answers from what it learned in training, which stops at a cutoff date.

  5. The model predicts the reply, token by token

    OpenAI's own description is that the model predicts likely next words one at a time. Because many words could follow, the choice has randomness in it, and the same question can get different answers.

  6. Your next message starts the loop again

    ChatGPT keeps the context within a chat, so a follow-up is read together with everything above it. A new chat starts clean, except for memory: saved details and preferences that ChatGPT can carry between chats and that you can view, delete or turn off.

How the model was trained

OpenAI names three sources of training material: information that is publicly available on the internet, information from partners, and information that users, human trainers and researchers provide. From this the model learns how words and ideas relate by practicing one task, predicting the next word. OpenAI says the result is a set of numerical weights, and that the model keeps no copies of what it read.

Prediction alone gives a model that continues text. The conversational manner came from a second stage, described in OpenAI's launch post of November 30, 2022: human trainers wrote sample dialogues, playing both the user and the assistant, and then ranked alternative replies so that the model could be tuned toward the ones they preferred. As of November 2026 the pricing page lists “opt-out available” beside the use of your content for training on the Free, Go, Plus and Pro plans.

Why it writes that way

  • Likely words win. A system that picks probable continuations tends toward the most common way of saying a thing. OpenAI's launch post listed among the model's limits that it was often “excessively verbose” and overused certain phrases. Researchers who compared 15 million biomedical abstracts found that the frequency of certain style words jumped once such models were in use, and estimated that at least 13.5% of 2024 abstracts had been processed with one. The AI words list names the words.
  • It was tuned toward answers people rate well. OpenAI's 2025 summary of its Model Spec, the public document that sets out how its models should behave, describes the default conversational style as “warm, empathetic, and helpful”. The current Model Spec has a section titled “Don't be sycophantic”, which says the model exists to help the user, not to flatter them. Treat praise from ChatGPT for your draft as weak evidence about the draft.
  • It sounds as sure when it is wrong. OpenAI's help center warns that ChatGPT can sound convincing while giving incorrect information and can make up quotations and citations. See AI hallucinations.
  • The defaults can be changed. OpenAI says most of the Model Spec's guidelines can be overridden by users and developers. Custom instructions, available on all plans, let you set how formal the replies are and how long they run, and they apply to every new chat. ChatGPT custom instructions for writing has examples.

Test it yourself

Ten minutes is enough to see both the randomness and the defaults. Open three new chats and paste the same prompt into each. Use Temporary Chat, which OpenAI says does not draw on memory, so that nothing you have told ChatGPT before colors the result.

Prompt

Write a 120-word opening paragraph for an essay about why people still keep paper notebooks.

Lay the three replies side by side. The wording that differs is the sampling at work. Then look at what the replies share: how each one opens, how long the sentences run, which phrases recur, how each one ends. Those shared habits are the model's defaults. Now add one sentence about the voice you want, run it again, and see which of the habits moved.

Editing AI drafts in Strokes

We make Strokes, a desktop writing app for macOS and Windows, so read this as the maker's view. A chat window hands back a whole reply, and moving the good parts into a manuscript is left to you. In Strokes the assistant sits in a panel beside the document and can read attached files, and every edit it proposes arrives in the text as a suggestion you accept or reject. Documents are files on your own computer, and version history is kept on your device.

Frequently asked questions

Is ChatGPT an LLM?

ChatGPT is an app, and the LLM is the model inside it. The app adds instructions, memory, file handling, web search and image creation around the model, and it serves more than one model: as of November 2026, a Luna model on the Free and Go plans (GPT-6 Luna on the pricing page, GPT-5.6 Luna in the Free tier FAQ) and GPT-6 Sol from Plus upward. In everyday speech people call ChatGPT an LLM, and for most purposes the shorthand does no harm.

Does ChatGPT copy its answers from websites?

OpenAI's help center says its models do not store copies of the material they learned from: training adjusts numerical weights, and the model composes each answer word by word. When ChatGPT searches the web it does read current pages, and those answers carry citations you can open. In both cases, check any quotation against its source, because the help center also says ChatGPT can make quotations up.

How much of a conversation does ChatGPT remember?

As much as fits in the context window for your plan and model. As of November 2026 the pricing page gives the Instant model a total window of 27K tokens on Free, 54K on Go and Plus and 128K on Pro, or about 12, 40 and 250 pages of input. Your messages and the replies both count. When a chat reaches the limit, ChatGPT shows a “Context window full” or “Chat memory full” notice, and OpenAI's Free tier FAQ says to start a new chat.

How recent is ChatGPT's knowledge?

It depends on the model and on whether search is used. OpenAI's API documentation gives each model a knowledge cutoff; for GPT-6.2 Astra it is May 18, 2026. Events after a model's cutoff are unknown to it unless ChatGPT searches the web or you paste the material into the chat. If a reply about something recent has no citations, ask ChatGPT to search, or treat the reply as a guess.

Read next