Skip to content

Text Generation

Continue a passage, one word at a time

inTextText

What this capability means

Given a passage as context, the model writes what comes next. Both input and output are text and no particular transformation is targeted: it can continue a story, finish an explanation or draft an email. It differs from conversation in that no instruction format is required, and from summarisation or translation in that neither compression nor a language switch is the goal — both ends stay in the same modality.

How it is done

The dominant route is an autoregressive Transformer language model: text is split into tokens, the model predicts the probability of the next token position by position, and training maximises likelihood over the corpus. GPT, Llama and Qwen all follow it, differing in scale, data and post-training recipe. At inference, temperature, top-k and top-p shape diversity, while long outputs reuse cached keys and values to cut cost.

Representative products

27

OpenAI

GPT-4o

A natively multimodal general model, with text, image and audio through one door

4Caps
Model Closed
TextImageAudioTextAudio
2024

Meta AI (FAIR)

Llama

The model family that made the open-weight route mainstream

4Caps
Model Open weights
TextText
2023

Alibaba (Qwen)

Qwen

An open-weight family spanning many sizes, with multimodal versions

4Caps
Model Open weights
TextImageText
2023

DeepSeek

DeepSeek-V3

An open-weight MoE with 671B parameters, activating 37B per token

4Caps
Model Open weights
TextText
2024

Mistral AI

Mistral Large

The flagship commercial model from a European open-weights lab

4Caps
Model Closed
TextText
2024

Google DeepMind

Gemini

A natively multimodal general model built for very long context

4Caps
Model Closed
TextImageAudioVideoText
2023

Anthropic

Claude

A general chat model known for long context and safety alignment

4Caps
Model Closed
TextImageText
2023

MiniMax

MiniMax-M

An open-weight reasoning model with hybrid attention and a million-token context

4Caps
Model Open weights
TextText
2025

DeepSeek

DeepSeek-R1

A reasoning model trained with RL on chains of thought, its weights open under the MIT licence

4Caps
Model Open weights
TextText
2025

Apple

Apple Intelligence

System-level AI that splits work between on-device and private cloud

3Caps
App Closed
TextImageAudioTextImage
2024

Cohere

Command R

A commercial model built for retrieval augmentation and tool use

4Caps
Model Open weights
TextText
2024

AI21 Labs

Jamba

An open-weight model that mixes a state-space model with a Transformer

4Caps
Model Open weights
TextText
2024

Databricks

DBRX

Databricks’ open-weights MoE language model

3Caps
Model Open weights
TextText
2024

Google DeepMind

Gemini

One chat entry point that gathers search, office apps and a multimodal model

4Caps
App Freemium
TextImageAudioTextImageAudio
2024

xAI

Grok

A chat model tied to a social platform’s live data

3Caps
Model Closed
TextImageText
2023

01.AI

Yi

A bilingual Chinese–English open-weight model with very-long-context versions

3Caps
Model Open weights
TextText
2023

Moonshot AI

Kimi

A Chinese chat assistant known for long-context handling

3Caps
Model Closed
TextText
2023

Tencent (Hunyuan)

Hunyuan

Tencent’s general model family, with open-weight versions

4Caps
Model Open weights
TextImageText
2023

Microsoft

Microsoft Copilot

Conversational AI woven into the operating system and office apps

4Caps
App Freemium
TextImageAudioTextImage
2023

ByteDance (Seed)

Doubao

ByteDance’s general chat model and application

4Caps
Model Closed
TextImageText
2023

Microsoft

Phi

Small, efficient models built from curated data

3Caps
Model Open weights
TextText
2023

StepFun

Step

A general model family aimed at multimodality and on-device use

3Caps
Model Closed
TextImageText
2023

Baichuan AI

Baichuan

An open-weight general model aimed at Chinese-language use

3Caps
Model Open weights
TextText
2023

Zhipu AI

GLM

A Chinese general model that began with autoregressive blank-infilling pretraining

4Caps
Model Closed
TextText
2023

OpenAI

ChatGPT

The chat window that put a large language model in everyone’s hands

4Caps
App Freemium
TextImageAudioTextImageAudio
2022

Character.AI

Character.AI

Role-play chat with characters you define and talk to over time

2Caps
App Freemium
TextAudioTextAudio
2022

Baidu

ERNIE

A Chinese model that began with knowledge-enhanced pretraining, an early landmark version

3Caps
Model Closed
TextText
2019

Organizations involved

Typical uses

  • First drafts and rewriting
  • Drafting email, documents and copy
  • Code comments and API docs
  • Test data and synthetic corpora

How it is evaluated

Perplexity
Predictive uncertainty on held-out text; lower is better
Human-preference Elo
Preference ranking from pairwise comparison
ROUGE/BLEU on constrained tasks
Reference overlap when an answer key exists

Limits and hard parts

  • Fluency is not truth: the model states wrong facts with confidence — hallucination
  • Over long outputs, earlier setup drifts and the text contradicts itself
  • Poor sampling settings can trap the model in repetitive or degenerate loops

Concepts behind it

NLP & Large Language Models

Transformer ArchitectureIntermediate

Replacing word-by-word relay with a room where everyone speaks at once, so long-range dependencies are one hop away

4Linked
Figures 2 · Data 2

NLP & Large Language Models

Pretraining & Fine-tuningIntermediate

Learn language first from vast unlabelled text, then specialise with little data — the most data-efficient paradigm in modern AI

5Linked
Figures 1 · Data 1

NLP & Large Language Models

Prompting & AlignmentExpert

Making a model helpful, honest and harmless is harder than simply making it bigger

4Linked
Figures 1 · Data 1