Skip to main content
This section documents the sources data returned by the Gemini endpoint. Sources are part of the Gemini response, so no separate API call is needed. For use cases, pricing context, and copy-paste examples, see the Gemini sources API page on the product site.

Overview

Gemini sources follow the common sources structure (position, url, label, description).
Sources in Gemini
About sources availabilityGemini may not return sources for certain prompts. The sources array will be empty when Gemini doesn’t provide citations. This is normal behavior and doesn’t indicate an error. Some prompts don’t trigger Gemini’s source-citing mechanism.

Example request

This produces a response containing the sources array shown below.

Example response