Google Gemini · Schema

ImportFileRequest

Request for `ImportFile` to import a File API file with a `FileSearchStore`.

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

Properties

Name Type Description
customMetadata array Custom metadata to be associated with the file.
fileName string Required. The name of the `File` to import. Example: `files/abc-123`
chunkingConfig object Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.
View JSON Schema on GitHub

JSON Schema

google-gemini-import-file-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-import-file-request-schema.json",
  "title": "ImportFileRequest",
  "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-file-search-stores-api-openapi.yml#/components/schemas/ImportFileRequest",
  "properties": {
    "customMetadata": {
      "type": "array",
      "description": "Custom metadata to be associated with the file.",
      "items": {
        "$ref": "#/$defs/CustomMetadata"
      }
    },
    "fileName": {
      "type": "string",
      "description": "Required. The name of the `File` to import. Example: `files/abc-123`"
    },
    "chunkingConfig": {
      "$ref": "#/$defs/ChunkingConfig",
      "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters."
    }
  },
  "type": "object",
  "$defs": {
    "ChunkingConfig": {
      "type": "object",
      "properties": {
        "whiteSpaceConfig": {
          "$ref": "#/$defs/WhiteSpaceConfig",
          "description": "White space chunking configuration."
        }
      },
      "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto"
    },
    "CustomMetadata": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "The string value of the metadata to store."
        },
        "stringListValue": {
          "$ref": "#/$defs/StringList",
          "description": "The StringList value of the metadata to store."
        },
        "key": {
          "description": "Required. The key of the metadata to store.",
          "type": "string"
        },
        "numericValue": {
          "format": "float",
          "type": "number",
          "description": "The numeric value of the metadata to store."
        }
      },
      "description": "User provided metadata stored as key-value pairs."
    },
    "StringList": {
      "properties": {
        "values": {
          "items": {
            "type": "string"
          },
          "description": "The string values of the metadata to store.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "User provided string values assigned to a single metadata key."
    },
    "WhiteSpaceConfig": {
      "description": "Configuration for a white space chunking algorithm [white space delimited].",
      "properties": {
        "maxOverlapTokens": {
          "format": "int32",
          "type": "integer",
          "description": "Maximum number of overlapping tokens between two adjacent chunks."
        },
        "maxTokensPerChunk": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow."
        }
      },
      "type": "object"
    }
  }
}

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-import-file-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.