Skip to main content
POST
/
v1
/
monitor
/
gemini
Monitor Gemini Responses
curl --request POST \
  --url https://api.cloro.dev/v1/monitor/gemini \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Explain quantum computing",
  "country": "US",
  "include": {
    "markdown": true,
    "html": false,
    "rawResponse": false
  }
}
'
{
  "success": true,
  "result": {
    "text": "Quantum computing is a type of computation...",
    "markdown": "**Quantum computing** is a type of computation...",
    "html": "<p><b>Quantum computing</b> is a type of computation...</p>",
    "sources": [
      {
        "position": 1,
        "label": "Wikipedia - Quantum Computing",
        "url": "https://en.wikipedia.org/wiki/Quantum_computing",
        "description": "Quantum computing is a multidisciplinary field..."
      }
    ]
  }
}

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.

Overview

The Google Gemini endpoint extracts structured data from Google’s Gemini AI. It captures the generated text response, citations/sources, and supports multiple export formats including Markdown and HTML.
Web search behaviorThis endpoint uses Gemini’s default interface, which may automatically perform web searches and provide source citations based on its own determination of whether the query requires current information.

Request parameters

Uses common parameters. Endpoint-specific options:
  • include.rawResponse (boolean): Include raw streaming response events. Defaults to false

Response objects

The response includes the following sections. See each subpage for the full schema.
SectionDescription
SourcesSource citations with contextual descriptions

Response schema

Includes common response fields plus:
FieldTypeDescription
result.textstringThe main text content of the response
result.sourcesarrayArray of sources cited in the response
result.markdownstringResponse formatted in Markdown (included when include.markdown is true)
result.htmlstringResponse formatted in HTML (included when include.html is true)
result.rawResponsearrayArray of Gemini’s streamed response events (included when include.rawResponse is true)

Example usage

{
  "prompt": "Explain quantum entanglement",
  "country": "US",
  "include": {
    "markdown": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request parameters for monitoring Gemini responses

prompt
string
required

The prompt to send to Gemini

Required string length: 1 - 10000
Example:

"Explain quantum computing"

country
string
default:US

Country/region code for localized response

Example:

"US"

include
object

Optional flags for including additional response formats

Example:
{
"markdown": true,
"html": false,
"rawResponse": false
}

Response

successful Gemini monitoring response

success
boolean
required
Example:

true

result
object
required

Gemini response data