Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloro.dev/llms.txt

Use this file to discover all available pages before exploring further.

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.

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

{
  "prompt": "Explain quantum entanglement",
  "country": "US"
}
This produces a response containing the sources array shown below.

Example response

{
  "success": true,
  "result": {
    "text": "Quantum entanglement is a physical phenomenon...",
    "sources": [
      {
        "position": 1,
        "label": "Wikipedia",
        "url": "https://en.wikipedia.org/wiki/Quantum_entanglement",
        "description": "Quantum entanglement is a physical phenomenon that occurs..."
      }
    ]
  }
}