Google Gemini · Schema

GenerateContentBatch

A resource representing a batch of `GenerateContent` requests.

AI AgentsArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMulti-ModalReal-TimeFoundation ModelsAgentsAudio UnderstandingBatch ProcessingDeep ResearchDocument UnderstandingFunction CallingStructured OutputText-to-SpeechVideo GenerationVideo Understanding

Properties

Name Type Description
name string Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
inputConfig object Required. Input configuration of the instances on which batch processing are performed.
state string Output only. The state of the batch.
createTime string Output only. The time at which the batch was created.
endTime string Output only. The time at which the batch processing completed.
batchStats object Output only. Stats about the batch.
priority string Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
model string Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
output object Output only. The output of the batch request.
updateTime string Output only. The time at which the batch was last updated.
displayName string Required. The user-defined name of this batch.
View JSON Schema on GitHub

JSON Schema

google-gemini-generate-content-batch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-generate-content-batch-schema.json",
  "title": "GenerateContentBatch",
  "description": "A resource representing a batch of `GenerateContent` requests.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-batches-api-openapi.yml#/components/schemas/GenerateContentBatch",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
      "readOnly": true
    },
    "inputConfig": {
      "$ref": "#/$defs/InputConfig",
      "description": "Required. Input configuration of the instances on which batch processing are performed."
    },
    "state": {
      "readOnly": true,
      "type": "string",
      "enum": [
        "BATCH_STATE_UNSPECIFIED",
        "BATCH_STATE_PENDING",
        "BATCH_STATE_RUNNING",
        "BATCH_STATE_SUCCEEDED",
        "BATCH_STATE_FAILED",
        "BATCH_STATE_CANCELLED",
        "BATCH_STATE_EXPIRED"
      ],
      "description": "Output only. The state of the batch."
    },
    "createTime": {
      "description": "Output only. The time at which the batch was created.",
      "format": "google-datetime",
      "type": "string",
      "readOnly": true
    },
    "endTime": {
      "readOnly": true,
      "type": "string",
      "format": "google-datetime",
      "description": "Output only. The time at which the batch processing completed."
    },
    "batchStats": {
      "$ref": "#/$defs/BatchStats",
      "description": "Output only. Stats about the batch."
    },
    "priority": {
      "type": "string",
      "format": "int64",
      "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0."
    },
    "model": {
      "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
      "type": "string"
    },
    "output": {
      "$ref": "#/$defs/GenerateContentBatchOutput",
      "description": "Output only. The output of the batch request."
    },
    "updateTime": {
      "format": "google-datetime",
      "description": "Output only. The time at which the batch was last updated.",
      "readOnly": true,
      "type": "string"
    },
    "displayName": {
      "description": "Required. The user-defined name of this batch.",
      "type": "string"
    }
  },
  "$defs": {
    "AttributionSourceId": {
      "description": "Identifier for the source contributing to this attribution.",
      "type": "object",
      "properties": {
        "semanticRetrieverChunk": {
          "$ref": "#/$defs/SemanticRetrieverChunk",
          "description": "Identifier for a `Chunk` fetched via Semantic Retriever."
        },
        "groundingPassage": {
          "$ref": "#/$defs/GroundingPassageId",
          "description": "Identifier for an inline passage."
        }
      }
    },
    "AudioResponseFormat": {
      "properties": {
        "bitRate": {
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).",
          "type": "integer",
          "format": "int32"
        },
        "sampleRate": {
          "description": "Optional. Sample rate in Hz.",
          "type": "integer",
          "format": "int32"
        },
        "mimeType": {
          "description": "Optional. The MIME type of the audio output.",
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ]
        },
        "delivery": {
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "type": "string",
          "description": "Optional. The delivery mode for the audio output."
        }
      },
      "description": "Configuration for audio output format.",
      "type": "object"
    },
    "AudioTranscription": {
      "type": "object",
      "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.",
      "properties": {
        "words": {
          "items": {
            "$ref": "#/$defs/WordInfo"
          },
          "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.",
          "type": "array"
        },
        "text": {
          "description": "Required. The transcription text of this audio segment.",
          "type": "string"
        },
        "speakerLabel": {
          "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.",
          "type": "string"
        }
      }
    },
    "AudioTranscriptionConfig": {
      "description": "The audio transcription configuration.",
      "properties": {
        "mode": {
          "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ],
          "type": "string"
        },
        "customVocabulary": {
          "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "wordTimestamp": {
          "type": "boolean",
          "description": "Optional. Configures word-level timestamp generation."
        },
        "adaptationPhrases": {
          "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.",
          "items": {
            "type": "string"
          },
          "type": "array",
          "deprecated": true
        },
        "sourceText": {
          "type": "string",
          "description": "Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."
        },
        "languageCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection."
        },
        "diarization": {
          "type": "boolean",
          "description": "Optional. Configures speaker diarization."
        },
        "languageHints": {
          "$ref": "#/$defs/LanguageHints",
          "description": "Optional. Specifies one or more languages in the audio."
        },
        "languageAuto": {
          "$ref": "#/$defs/LanguageAuto",
          "description": "Optional. The model will detect the language automatically."
        }
      },
      "type": "object"
    },
    "BatchStats": {
      "description": "Stats about the batch.",
      "properties": {
        "pendingRequestCount": {
          "description": "Output only. The number of requests that are still pending processing.",
          "format": "int64",
          "type": "string",
          "readOnly": true
        },
        "successfulRequestCount": {
          "description": "Output only. The number of requests that were successfully processed.",
          "readOnly": true,
          "type": "string",
          "format": "int64"
        },
        "failedRequestCount": {
          "description": "Output only. The number of requests that failed to be processed.",
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "requestCount": {
          "readOnly": true,
          "description": "Output only. The number of requests in the batch.",
          "type": "string",
          "format": "int64"
        }
      },
      "type": "object"
    },
    "Blob": {
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "properties": {
        "mimeType": {
          "type": "string",
          "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        },
        "data": {
          "format": "byte",
          "description": "Raw bytes for media formats.",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Candidate": {
      "description": "A response candidate generated from the model.",
      "properties": {
        "citationMetadata": {
          "$ref": "#/$defs/CitationMetadata",
          "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data."
        },
        "safetyRatings": {
          "items": {
            "$ref": "#/$defs/SafetyRating"
          },
          "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
          "type": "array"
        },
        "tokenCount": {
          "type": "integer",
          "description": "Output only. Token count for this candidate.",
          "readOnly": true,
          "format": "int32"
        },
        "groundingMetadata": {
          "$ref": "#/$defs/GroundingMetadata",
          "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls."
        },
        "avgLogprobs": {
          "type": "number",
          "format": "double",
          "description": "Output only. Average log probability score of the candidate.",
          "readOnly": true
        },
        "continuationToken": {
          "type": "string",
          "format": "byte",
          "description": "An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation."
        },
        "urlContextMetadata": {
          "$ref": "#/$defs/UrlContextMetadata",
          "description": "Output only. Metadata related to url context retrieval tool."
        },
        "finishMessage": {
          "readOnly": true,
          "type": "string",
          "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set."
        },
        "logprobsResult": {
          "$ref": "#/$defs/LogprobsResult",
          "description": "Output only. Log-likelihood scores for the response tokens and top tokens"
        },
        "index": {
          "description": "Output only. Index of the candidate in the list of response candidates.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "groundingAttributions": {
          "items": {
            "$ref": "#/$defs/GroundingAttribution"
          },
          "type": "array",
          "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
          "readOnly": true
        },
        "content": {
          "$ref": "#/$defs/Content",
          "description": "Output only. Generated content returned from the model."
        },
        "finishReason": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "LANGUAGE",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "SPII",
            "MALFORMED_FUNCTION_CALL",
            "IMAGE_SAFETY",
            "IMAGE_PROHIBITED_CONTENT",
            "IMAGE_OTHER",
            "NO_IMAGE",
            "IMAGE_RECITATION",
            "UNEXPECTED_TOOL_CALL",
            "TOO_MANY_TOOL_CALLS",
            "MISSING_THOUGHT_SIGNATURE",
            "MALFORMED_RESPONSE",
            "ESCALATION",
            "PUP_LIMITED_DISABLED",
            "CONTINUATION"
          ],
          "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens."
        }
      },
      "type": "object"
    },
    "CitationMetadata": {
      "properties": {
        "citationSources": {
          "description": "Citations to sources for a specific response.",
          "items": {
            "$ref": "#/$defs/CitationSource"
          },
          "type": "array"
        }
      },
      "description": "A collection of source attributions for a piece of content.",
      "type": "object"
    },
    "CitationSource": {
      "type": "object",
      "description": "A citation to a source for a portion of a specific response.",
      "properties": {
        "license": {
          "type": "string",
          "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations."
        },
        "uri": {
          "type": "string",
          "description": "Optional. URI that is attributed as a source for a portion of the text."
        },
        "startIndex": {
          "type": "integer",
          "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
          "format": "int32"
        },
        "endIndex": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. End of the attributed segment, exclusive."
        }
      }
    },
    "CodeExecution": {
      "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.",
      "properties": {},
      "type": "object"
    },
    "CodeExecutionResult": {
      "type": "object",
      "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
      "properties": {
        "id": {
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.",
          "type": "string"
        },
        "output": {
          "type": "string",
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."
        },
        "outcome": {
          "type": "string",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ],
          "description": "Required. Outcome of the code execution."
        }
      }
    },
    "ComputerUse": {
      "properties": {
        "disabledSafetyPolicies": {
          "description": "Optional. Disabled safety policies for computer use.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SAFETY_POLICY_UNSPECIFIED",
              "FINANCIAL_TRANSACTIONS",
              "SENSITIVE_DATA_MODIFICATION",
              "COMMUNICATION_TOOL",
              "ACCOUNT_CREATION",
              "DATA_MODIFICATION",
              "USER_CONSENT_MANAGEMENT",
              "LEGAL_TERMS_AND_AGREEMENTS"
            ]
          }
        },
        "environment": {
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ],
          "type": "string",
          "description": "Required. The environment being operated."
        },
        "excludedPredefinedFunctions": {
          "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "enablePromptInjectionDetection": {
          "description": "Optional. Whether enable the prompt injection detection check on computer-use request.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "Computer Use tool type."
    },
    "Content": {
      "properties": {
        "parts": {
          "type": "array",
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",
          "items": {
            "$ref": "#/$defs/Part"
          }
        },
        "role": {
          "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn."
    },
    "DynamicRetrievalConfig": {
      "type": "object",
      "properties": {
        "mode": {
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ],
          "type": "string"
        },
        "dynamicThreshold": {
          "format": "float",
          "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.",
          "type": "number"
        }
      },
      "description": "Describes the options to customize dynamic retrieval."
    },
    "ExecutableCode": {
      "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated.",
      "properties": {
        "language": {
          "type": "string",
          "description": "Required. Programming language of the `code`.",
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ]
        },
        "id": {
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",
          "type": "string"
        },
        "code": {
          "type": "string",
          "description": "Required. The code to be executed."
        }
      },
      "type": "object"
    },
    "FileData": {
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.",
          "type": "string"
        },
        "mimeType": {
          "description": "Optional. The IANA standard MIME type of the source data.",
          "type": "string"
        }
      },
      "description": "URI based data.",
      "type": "object"
    },
    "FileSearch": {
      "type": "object",
      "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
      "properties": {
        "topK": {
          "type": "integer",
          "description": "Optional. The number of semantic retrieval chunks to retrieve.",
          "format": "int32"
        },
        "metadataFilter": {
          "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
          "type": "string"
        },
        "fileSearchStoreNames": {
          "items": {
            "type": "string"
          },
          "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",
          "type": "array"
        }
      }
    },
    "FunctionCall": {
      "properties": {
        "name": {
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.",
          "type": "string"
        },
        "args": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "Optional. The function parameters and values in JSON object format."
        },
        "id": {
          "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values."
    },
    "FunctionCallingConfig": {
      "description": "Configuration for specifying function calling behavior.",
      "type": "object",
      "properties": {
        "allowedFunctionNames": {
          "type": "array",
          "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names.",
          "items": {
            "type": "string"
          }
        },
        "mode": {
          "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE",
            "VALIDATED"
          ],
          "type": "string"
        }
      }
    },
    "FunctionDeclaration": {
      "properties": {
        "behavior": {
          "type": "string",
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ],
          "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method."
        },
        "parameters": {
          "$ref": "#/$defs/Schema",
          "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter."
        },
        "description": {
          "type": "string",
          "description": "Required. A brief description of the function."
        },
        "parametersJsonSchema": {
          "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`."
        },
        "responseJsonSchema": {
          "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."
        },
        "response": {
          "$ref": "#/$defs/Schema",
          "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function."
        },
        "name": {
          "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client."
    },
    "FunctionResponse": {
      "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`."
        },
        "scheduling": {
          "enum": [
            "SCHEDULING_UNSPECIFIED",
            "SILENT",
            "WHEN_IDLE",
            "INTERRUPT"
          ],
          "type": "string",
          "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE."
        },
        "response": {
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` or `file_data.display_name` of a `FunctionResponsePart` holding the multimedia. See [Multimodal function responses](https://aistudio.google.com/docs/function-calling#multimodal)."
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128."
        },
        "willContinue": {
          "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`.",
          "type": "boolean"
        },
        "parts": {
          "type": "array",
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.",
          "items": {
            "$ref": "#/$defs/FunctionResponsePart"
          }
        }
      },
      "type": "object"
    },
    "FunctionResponseBlob": {
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
      "properties": {
        "displayName": {
          "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{\"$ref\": \"DISPLAY_NAME\"}`).",
          "type": "string"
        },
        "data": {
          "type": "string",
          "description": "Raw bytes for media formats.",
          "format": "byte"
        },
        "mimeType": {
          "type": "string",
          "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types)."
        }
      },
      "type": "object"
    },
    "FunctionResponseFileData": {
      "description": "URI based data for function response.",
      "properties": {
        "fileUri": {
          "description": "Required. URI.",
          "type": "string"
        },
        "mimeType": {
          "description": "The IANA standard MIME type of the source data. If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Multimodal function responses](https://aistudio.google.com/docs/function-calling#multimodal) and [Supported file formats](https://aistudio.google.com/docs/file-input-methods#supported-content-types).",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{\"$ref\": \"DISPLAY_NAME\"}`)."
        }
      },
      "type": "object"
    },
    "FunctionResponsePart": {
      "properties": {
        "inlineData": {
          "$ref": "#/$defs/FunctionResponseBlob",
          "description": "Inline media bytes."
        },
        "mediaProcessing": {
          "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ],
          "type": "string"
        },
        "fileData": {
          "$ref": "#/$defs/FunctionResponseFileData",
          "description": "URI based data."
        }
      },
      "type": "object",
      "description": "A datatyp

# --- truncated at 32 KB (111 KB total) ---
# Full source: https://artifacts.apis.io/google-gemini/json-schema/google-gemini-generate-content-batch-schema.json

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-generate-content-batch"
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.