Skip to main content
Released: September 11, 2026 fields.content and fields.snippets each now accept an object of ceilings, alongside the existing true/false. content is capped at 20,000 characters by default; pass {"max_characters_per_result": 500} to change it, or {"max_snippets_per_result": 5} to bound snippets.

Highlights

  • Content ceiling, configurable — max_characters_per_result, 100 to 1,000,000 characters.
  • Snippet ceilings, configurable — max_snippets, max_snippets_per_result, max_tokens, and max_tokens_per_result all take explicit values now, not just their built-in bounds.
  • Same shape either way — Each fields member still accepts a plain boolean; only callers who want a non-default ceiling need the object form.
  • Rejected outside range — An out-of-range value returns a 400 with the INVALID_REQUEST code before anything is billed.

Quick Start

Control content length

Setting a ceiling on content per result

Get snippets

Tuning how many snippets you get