Google Gemini · Schema

EmbedContentBatch

A resource representing a batch of `EmbedContent` 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
updateTime string Output only. The time at which the batch was last updated.
endTime string Output only. The time at which the batch processing completed.
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}`.
batchStats object Output only. Stats about the batch.
displayName string Required. The user-defined name of this batch.
output object Output only. The output of the batch request.
name string Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
createTime string Output only. The time at which the batch was created.
inputConfig object Required. Input configuration of the instances on which batch processing are performed.
state string Output only. The state of the batch.
View JSON Schema on GitHub

JSON Schema

google-gemini-embed-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-embed-content-batch-schema.json",
  "title": "EmbedContentBatch",
  "description": "A resource representing a batch of `EmbedContent` 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/EmbedContentBatch",
  "properties": {
    "updateTime": {
      "description": "Output only. The time at which the batch was last updated.",
      "type": "string",
      "readOnly": true,
      "format": "google-datetime"
    },
    "endTime": {
      "format": "google-datetime",
      "description": "Output only. The time at which the batch processing completed.",
      "readOnly": true,
      "type": "string"
    },
    "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"
    },
    "batchStats": {
      "$ref": "#/$defs/EmbedContentBatchStats",
      "description": "Output only. Stats about the batch."
    },
    "displayName": {
      "description": "Required. The user-defined name of this batch.",
      "type": "string"
    },
    "output": {
      "$ref": "#/$defs/EmbedContentBatchOutput",
      "description": "Output only. The output of the batch request."
    },
    "name": {
      "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
      "readOnly": true,
      "type": "string"
    },
    "createTime": {
      "description": "Output only. The time at which the batch was created.",
      "type": "string",
      "readOnly": true,
      "format": "google-datetime"
    },
    "inputConfig": {
      "$ref": "#/$defs/InputEmbedContentConfig",
      "description": "Required. Input configuration of the instances on which batch processing are performed."
    },
    "state": {
      "readOnly": true,
      "enum": [
        "BATCH_STATE_UNSPECIFIED",
        "BATCH_STATE_PENDING",
        "BATCH_STATE_RUNNING",
        "BATCH_STATE_SUCCEEDED",
        "BATCH_STATE_FAILED",
        "BATCH_STATE_CANCELLED",
        "BATCH_STATE_EXPIRED"
      ],
      "type": "string",
      "description": "Output only. The state of the batch."
    }
  },
  "type": "object",
  "$defs": {
    "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"
        }
      }
    },
    "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"
    },
    "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."
        }
      }
    },
    "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."
    },
    "ContentEmbedding": {
      "properties": {
        "shape": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048])."
        },
        "values": {
          "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls.",
          "type": "array",
          "items": {
            "format": "float",
            "type": "number"
          }
        }
      },
      "type": "object",
      "description": "A list of floats representing an embedding."
    },
    "EmbedContentBatchOutput": {
      "type": "object",
      "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.",
      "properties": {
        "inlinedResponses": {
          "$ref": "#/$defs/InlinedEmbedContentResponses",
          "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests."
        },
        "responsesFile": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests."
        }
      }
    },
    "EmbedContentBatchStats": {
      "type": "object",
      "description": "Stats about the batch.",
      "properties": {
        "requestCount": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The number of requests in the batch.",
          "format": "int64"
        },
        "successfulRequestCount": {
          "readOnly": true,
          "format": "int64",
          "type": "string",
          "description": "Output only. The number of requests that were successfully processed."
        },
        "failedRequestCount": {
          "description": "Output only. The number of requests that failed to be processed.",
          "readOnly": true,
          "type": "string",
          "format": "int64"
        },
        "pendingRequestCount": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The number of requests that are still pending processing.",
          "readOnly": true
        }
      }
    },
    "EmbedContentConfig": {
      "type": "object",
      "description": "Configurations for the EmbedContent request.",
      "properties": {
        "outputDimensionality": {
          "format": "int32",
          "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.",
          "type": "integer"
        },
        "autoTruncate": {
          "type": "boolean",
          "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length."
        },
        "documentOcr": {
          "type": "boolean",
          "description": "Optional. Whether to enable OCR for document content."
        },
        "audioTrackExtraction": {
          "type": "boolean",
          "description": "Optional. Whether to extract audio from video content."
        },
        "title": {
          "type": "string",
          "description": "Optional. The title for the text."
        },
        "taskType": {
          "type": "string",
          "description": "Optional. The task type of the embedding.",
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION",
            "CODE_RETRIEVAL_QUERY"
          ]
        }
      }
    },
    "EmbedContentRequest": {
      "properties": {
        "taskType": {
          "type": "string",
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION",
            "CODE_RETRIEVAL_QUERY"
          ],
          "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).",
          "deprecated": true
        },
        "embedContentConfig": {
          "$ref": "#/$defs/EmbedContentConfig",
          "description": "Optional. Configuration for the EmbedContent request."
        },
        "content": {
          "$ref": "#/$defs/Content",
          "description": "Required. The content to embed. Only the `parts.text` fields will be counted."
        },
        "title": {
          "type": "string",
          "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.",
          "deprecated": true
        },
        "outputDimensionality": {
          "format": "int32",
          "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).",
          "type": "integer",
          "deprecated": true
        },
        "model": {
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Request containing the `Content` for the model to embed."
    },
    "EmbedContentResponse": {
      "properties": {
        "embedding": {
          "$ref": "#/$defs/ContentEmbedding",
          "description": "Output only. The embedding generated from the input content."
        },
        "usageMetadata": {
          "$ref": "#/$defs/EmbeddingUsageMetadata",
          "description": "Output only. The usage metadata for the request."
        }
      },
      "type": "object",
      "description": "The response to an `EmbedContentRequest`."
    },
    "EmbeddingUsageMetadata": {
      "type": "object",
      "properties": {
        "promptTokenDetails": {
          "items": {
            "$ref": "#/$defs/ModalityTokenCount"
          },
          "description": "Output only. List of modalities that were processed in the request input.",
          "type": "array",
          "readOnly": true
        },
        "promptTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Output only. Number of tokens in the prompt.",
          "readOnly": true
        }
      },
      "description": "Metadata on the usage of the embedding request."
    },
    "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"
    },
    "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."
    },
    "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 datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. Media can be passed as raw bytes (`inline_data`) or by URI (`file_data`) with an IANA MIME type identifying the type and subtype of the media."
    },
    "InlinedEmbedContentRequest": {
      "type": "object",
      "properties": {
        "metadata": {
          "type": "object",
          "description": "Optional. The metadata to be associated with the request.",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        },
        "request": {
          "$ref": "#/$defs/EmbedContentRequest",
          "description": "Required. The request to be processed in the batch."
        }
      },
      "description": "The request to be processed in the batch."
    },
    "InlinedEmbedContentRequests": {
      "description": "The requests to be processed in the batch if provided as part of the batch creation request.",
      "properties": {
        "requests": {
          "items": {
            "$ref": "#/$defs/InlinedEmbedContentRequest"
          },
          "description": "Required. The requests to be processed in the batch.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "InlinedEmbedContentResponse": {
      "description": "The response to a single request in the batch.",
      "type": "object",
      "properties": {
        "metadata": {
          "description": "Output only. The metadata associated with the request.",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object",
          "readOnly": true
        },
        "response": {
          "$ref": "#/$defs/EmbedContentResponse",
          "description": "Output only. The response to the request."
        },
        "error": {
          "$ref": "#/$defs/Status",
          "description": "Output only. The error encountered while processing the request."
        }
      }
    },
    "InlinedEmbedContentResponses": {
      "type": "object",
      "properties": {
        "inlinedResponses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InlinedEmbedContentResponse"
          },
          "description": "Output only. The responses to the requests in the batch.",
          "readOnly": true
        }
      },
      "description": "The responses to the requests in the batch."
    },
    "InputEmbedContentConfig": {
      "description": "Configures the input to the batch request.",
      "properties": {
        "fileName": {
          "type": "string",
          "description": "The name of the `File` containing the input requests."
        },
        "requests": {
          "$ref": "#/$defs/InlinedEmbedContentRequests",
          "description": "The requests to be processed in the batch."
        }
      },
      "type": "object"
    },
    "ModalityTokenCount": {
      "type": "object",
      "properties": {
        "modality": {
          "enum": [
            "MODALITY_UNSPECIFIED",
            "TEXT",
            "IMAGE",
            "VIDEO",
            "AUDIO",
            "DOCUMENT"
          ],
          "description": "The modality associated with this token count.",
          "type": "string"
        },
        "tokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Number of tokens."
        }
      },
      "description": "Represents token counting info for a single modality."
    },
    "Part": {
      "properties": {
        "executableCode": {
          "$ref": "#/$defs/ExecutableCode",
          "description": "Code generated by the model that is meant to be executed."
        },
        "codeExecutionResult": {
          "$ref": "#/$defs/CodeExecutionResult",
          "description": "Result of executing the `ExecutableCode`."
        },
        "functionResponse": {
          "$ref": "#/$defs/FunctionResponse",
          "description": "The result output of 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."
        },
        "inlineData": {
          "$ref": "#/$defs/Blob",
          "description": "Inline media bytes."
        },
        "thought": {
          "description": "Optional. Indicates if the part is thought from the model.",
          "type": "boolean"
        },
        "toolResponse": {
          "$ref": "#/$defs/ToolResponse",
          "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`."
        },
        "toolCall": {
          "$ref": "#/$defs/ToolCall",
          "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API."
        },
        "videoMetadata": {
          "$ref": "#/$defs/VideoMetadata",
          "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
        },
        "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.",
          "type": "string",
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ]
        },
        "functionCall": {
          "$ref": "#/$defs/FunctionCall",
          "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values."
        },
        "mediaResolution": {
          "$ref": "#/$defs/V1mainMediaResolution",
          "description": "Optional. Media resolution for the input media."
        },
        "partMetadata": {
          "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object"
        },
        "fileData": {
          "$ref": "#/$defs/FileData",
          "description": "URI based data."
        },
        "thoughtSignature": {
          "type": "string",
          "format": "byte",
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests."
        },
        "text": {
          "type": "string",
          "description": "Inline text."
        },
        "audioTranscription": {
          "$ref": "#/$defs/AudioTranscription",
          "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data."
        },
        "speechMetadata": {
          "$ref": "#/$defs/SpeechMetadata",
          "description": "Optional. Metadata applied to text parts to customize how they should be spoken or synthesized, such as specifying speaker identity or speaking style."
        }
      },
      "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
      "type": "object"
    },
    "SpeechMetadata": {
      "description": "Speech metadata for `text` parts.",
      "properties": {
        "speaker": {
          "description": "Optional. Optional speaker name for multi-speaker synthesis.",
          "type": "string"
        },
        "style": {
          "description": "Optional. Optional style instruction for the speech synthesis.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Status": {
      "properties": {
        "details": {
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            }
          }
        },
        "message": {
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
          "type": "string"
        },
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object",
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "ToolCall": {
      "type": "object",
      "properties": {
        "id": {
          "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.",
          "type": "string"
        },
        "toolName": {
          "type": "string",
          "description": "Optional. The name of the tool 

# --- truncated at 32 KB (36 KB total) ---
# Full source: https://artifacts.apis.io/google-gemini/json-schema/google-gemini-embed-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-embed-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.