{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tensorflow/json-schema/tensorflow-predict-request-schema.json",
  "title": "PredictRequest",
  "description": "Request body for prediction inference. Supports row format (instances) or column format (inputs).",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tensorflow-inference-api-openapi.yml#/components/schemas/PredictRequest",
  "type": "object",
  "properties": {
    "signature_name": {
      "type": "string",
      "description": "Optional name of the signature to use"
    },
    "instances": {
      "description": "Row format input - an array of individual prediction inputs. Each element can be a scalar, list, or object with named inputs.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      ]
    },
    "inputs": {
      "type": "object",
      "description": "Column format input - a map of input tensor names to arrays of values for each input across all instances.",
      "additionalProperties": true
    }
  }
}