Skip to content
Top up from $1 — pay only for what you use, credit valid for a month.Pricing

Practice

Long documents: one request instead of chunking

Chunking was a workaround for small context windows. When the window is big enough to hold the whole document, the workaround is often the more expensive option.

The usual way to ask a question about a long document is to cut it into pieces, send each piece separately and stitch the partial answers together. It works, and it has a cost nobody budgets for: every cut is a place where the answer can fall through. A clause on page 4 that is redefined on page 61 does not survive being read in two separate requests.

core-long has a context window of 1,000,000 tokens. At roughly four characters per token, that is about four million characters of text in one request. Most contracts, policy manuals, annual reports and long transcripts fit with room to spare.

When one request is the better choice

  • The question depends on the whole document. "Does anything in this agreement contradict the termination clause?" cannot be answered by a reader who has only seen a third of it.
  • Definitions and cross-references matter. Legal and technical documents define a term once and use it everywhere; splitting separates the definition from its uses.
  • You want one answer, not a merge step. Stitching partial answers is a second request with its own cost and its own chance to lose something.
  • The document is read once or a few times. If you ask one or two questions about it, sending it whole is simple and the cost is easy to predict.

What it costs, worked out

core-long is priced at $1.50 per 1M input tokens and $12.00 per 1M output tokens. Take a document of 600,000 characters — roughly 150,000 tokens — and ask for a 1,000-token summary.

  • Input: 150,000 × $1.50 / 1,000,000 = $0.225.
  • Output: 1,000 × $12.00 / 1,000,000 = $0.012.
  • Total: $0.237 for the request.

The same document does not fit core-standard at all: its window is 131,072 tokens, so it would have to be split. Split into three pieces of about 50,000 tokens, the input alone is 150,000 × $4.50 / 1,000,000 = $0.675, before the extra request that merges the three partial answers. The low input rate on core-long is there precisely so that sending a lot of text is affordable.

Every question re-sends the document

Each request is independent. If you ask five separate questions about the same 150,000-token document, you send the document five times and pay for the input five times: 5 × $0.225 = $1.125 in input. Two habits keep this down. Ask related questions together in a single request and ask for the answers as a numbered list. And when you only ever need one section, send that section rather than the whole file.

The limits are real

  • The window is enforced. A request whose input is larger than the tier's context window is rejected, not silently truncated, so you find out instead of getting an answer about half a document.
  • Estimate before you send. Four characters per token is a planning figure for ordinary text; tables, code and heavily formatted text can come out at more tokens per character.
  • Text only. Requests take text you have already extracted from the file; there is no file upload. For scanned pages, core-vision accepts images as data URLs, up to 10 per request and 7 MB each.
  • Balance is checked first. If the input alone would cost more than your credit balance, the request is refused before it runs, so a large document cannot overdraw the account.

When splitting is still right

If the text is longer than a million tokens, it has to be split. If you are asking hundreds of narrow questions, each about one small part of a large archive, sending the whole archive each time pays for a lot of text the model does not need; sending only the relevant part is cheaper. One request is not a rule. It is the default worth trying first, because it removes a class of mistakes rather than managing them.

Start

Try it on your own prompts

Sign up free, no card, and get ten real Core Fast answers a day. Top up from $1 for the other tiers; every request shows what it cost.