SandBase · Schema

GeminiGenerateContentRequest

Google Gemini GenerateContent request. Native passthrough mappings preserve provider-defined fields; translated mappings use the documented capability subset.

AI AgentsLLM APIsData APIImage/video APIsSandbox

Properties

Name Type Description
contents array
systemInstruction object
generationConfig object
tools array
toolConfig object
safetySettings array
cachedContent string Passed through when the selected provider supports Gemini context caching.
View JSON Schema on GitHub

JSON Schema

sandbase-ai-gemini-generate-content-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sandbase-ai/json-schema/sandbase-ai-gemini-generate-content-request-schema.json",
  "title": "GeminiGenerateContentRequest",
  "description": "Google Gemini GenerateContent request. Native passthrough mappings preserve provider-defined fields; translated mappings use the documented capability subset.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sandbase-ai-openapi.json#/components/schemas/GeminiGenerateContentRequest",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "contents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeminiContent"
      }
    },
    "systemInstruction": {
      "$ref": "#/$defs/GeminiContent"
    },
    "generationConfig": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "temperature": {
          "type": "number"
        },
        "topP": {
          "type": "number"
        },
        "topK": {
          "type": "integer"
        },
        "maxOutputTokens": {
          "type": "integer"
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "candidateCount": {
          "type": "integer",
          "description": "Translated mappings accept only 1 when supplied; native passthrough mappings preserve the provider request."
        },
        "seed": {
          "type": "integer"
        },
        "presencePenalty": {
          "type": "number"
        },
        "frequencyPenalty": {
          "type": "number"
        },
        "responseMimeType": {
          "type": "string",
          "enum": [
            "text/plain",
            "application/json",
            "text/x.enum"
          ]
        },
        "responseSchema": {
          "type": "object",
          "additionalProperties": true
        },
        "responseModalities": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Native image mappings support provider image modalities. Other translated mappings may support TEXT only."
        },
        "thinkingConfig": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "toolConfig": {
      "type": "object",
      "additionalProperties": true
    },
    "safetySettings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "cachedContent": {
      "type": "string",
      "description": "Passed through when the selected provider supports Gemini context caching."
    }
  },
  "$defs": {
    "GeminiContent": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "model"
          ]
        },
        "parts": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "description": "Text, image inlineData, public HTTP(S) image fileData, functionCall, or functionResponse part."
          }
        }
      }
    }
  }
}

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/sandbase-ai-gemini-generate-content-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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