Summarise Long Documents with AI: Contracts, Reports and Transcripts
How to summarise long PDFs, reports and meeting transcripts with an AI model. Which model to use, whole-document or chunked, prompts that work and what it costs.

Summarising is the job most teams try first with an AI model, and the one where a few choices make the biggest difference to quality and cost. This guide covers documents from a few pages to a few hundred: contracts, research reports, support logs, meeting transcripts.
How big is your document, in tokens?
Models count text in tokens. For English, one token is about four characters, or three quarters of a word. A useful rule of thumb:
| Document | Roughly |
|---|---|
| One page of text | 600–800 tokens |
| A 1-hour meeting transcript | 10,000–15,000 tokens |
| A 50-page report | 35,000 tokens |
| A 300-page book | 200,000 tokens |
Other languages often take more tokens for the same text. The response's usage.prompt_tokens tells you the exact count after the first request.
Option 1: send the whole document
If the document fits the model's context window, the simplest approach is the best: send all of it with one clear instruction.
| Model | Context window | Good for |
|---|---|---|
gemini-3.8-flash | 1,048,576 tokens | Long documents at a low price |
gemini-4-hydrogen | 1,048,576 tokens | Long documents where quality matters more |
claude-sonnet-5-5 | 200,000 tokens | Careful, well-written summaries |
gpt-6.1-terra | 400,000 tokens | Everyday summaries |
from openai import OpenAI
client = OpenAI(base_url="https://api.apistore.cloud/v1", api_key="sk-...")
text = open("report.txt", encoding="utf-8").read()
reply = client.chat.completions.create(
model="gemini-3.8-flash",
messages=[
{"role": "system", "content": "You summarise documents for a busy manager."},
{"role": "user", "content": text + "\n\n---\nSummarise the document above in 5 bullet points, "
"then list every date, amount and obligation it mentions."},
],
)
print(reply.choices[0].message.content)Put the document first and the instruction last. Models follow an instruction better when it comes after a long text, and a fixed instruction at the end doesn't stop the document from being read from cache if you ask a second question about it.
Option 2: summarise in parts
Split the document when it is larger than the window, when you want a summary per chapter, or when the price steps up for long prompts (GPT models above 272,000 tokens, Gemini 3.1 Pro above 200,000, Claude Haiku 5.5 above 100,000).
- Split at natural breaks: chapters, headings, speakers in a transcript. Aim for 20,000–50,000 tokens per part.
- Summarise each part with the same instruction. These requests are independent, so you can send them in parallel.
- Send all the part summaries in one last request and ask for the final summary.
This "map then combine" approach also lets you use a low-priced model for step 2 and a stronger one for step 3.
Prompts that work
- Say who the summary is for. "For a lawyer", "for a customer", "for an engineer joining the project" each give a different, better summary than "summarise this".
- Ask for the facts you need by name. Dates, amounts, names, decisions, open questions. A general summary often drops exactly these.
- Ask for quotes. "Quote the sentence that supports each point" makes the answer easy to check against the source.
- Fix the shape. "5 bullet points, at most 20 words each" is easier to use than "a short summary".
What it costs
The bill is mostly input: a summary reads far more than it writes. Work it out as:
input tokens × input price + output tokens × output price
For a 50-page report (about 35,000 tokens) and a 500-token summary on Gemini 3.8 Flash, that is 0.035 million tokens at $0.525 per million plus 0.0005 million at $2.63: a fraction of a cent. The same document on Claude Sonnet 5.5 costs 0.035 × $1.4 + 0.0005 × $7.
Asking a second and third question about the same document is cheaper still if you keep the document at the start of the prompt: the repeated part can be read from cache at the cached price.
Check the result
Models can miss things or, less often, state things the document doesn't say. For anything that matters:
- Ask for quotes, as above, and spot-check a few.
- Ask a second model to compare the summary with the document and list anything missing or wrong.
- Keep the source a click away from the summary in your product.
Every model above works with the same API key. Choosing a Gemini model and Choosing a Claude model help you pick between them.
Also in Tiếng Việt, Español, Português, Bahasa Indonesia



