Skip to main content
This section documents the citationPills data returned by the Gemini endpoint. Gemini renders inline citation chips (icon-only chain-link glyphs, and “section-summary” chips that group multiple sources behind a single visible pill) next to its answer text. The result.citationPills array exposes those chips denormalized, as part of the Gemini response so no separate API call is needed: each entry is one (pill, source) pair carrying a per-source label (the source’s own page title), a citationPillId that groups entries from the same chip, and the per-source url/domain/description/position. For use cases, pricing context, and copy-paste examples, see the Gemini sources API page on the product site. When a chip cites N sources (including section-summary chips), the array contains N entries sharing the same citationPillId but carrying different per-source label, url, and domain. Group by citationPillId to recover the pill-level structure. The field is omitted from result when the answer has no pills.

Example request

Citation pill structure

Response example