Google Gemini · Schema

Candidate

A response candidate generated from the model.

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage-GenerationLLMMachine-LearningMulti-Modal

Properties

Name Type Description
content object
finishReason string The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
safetyRatings array List of ratings for the safety of a response candidate. There is at most one rating per category.
citationMetadata object
tokenCount integer Token count for this candidate.
index integer Index of the candidate in the list of response candidates.
View JSON Schema on GitHub

JSON Schema

google-gemini-candidate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Candidate",
  "title": "Candidate",
  "type": "object",
  "description": "A response candidate generated from the model.",
  "properties": {
    "content": {
      "$ref": "#/components/schemas/Content"
    },
    "finishReason": {
      "type": "string",
      "description": "The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.",
      "enum": [
        "FINISH_REASON_UNSPECIFIED",
        "STOP",
        "MAX_TOKENS",
        "SAFETY",
        "RECITATION",
        "LANGUAGE",
        "OTHER",
        "BLOCKLIST",
        "PROHIBITED_CONTENT",
        "SPII",
        "MALFORMED_FUNCTION_CALL"
      ]
    },
    "safetyRatings": {
      "type": "array",
      "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
      "items": {
        "$ref": "#/components/schemas/SafetyRating"
      }
    },
    "citationMetadata": {
      "$ref": "#/components/schemas/CitationMetadata"
    },
    "tokenCount": {
      "type": "integer",
      "format": "int32",
      "description": "Token count for this candidate."
    },
    "index": {
      "type": "integer",
      "format": "int32",
      "description": "Index of the candidate in the list of response candidates."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-gemini-candidate"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.