{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-job-v1-request-schema.json",
  "title": "CreateBatchJobV1Request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-batch-jobs-api-openapi.yml#/components/schemas/CreateBatchJobV1Request",
  "properties": {
    "model_bundle_id": {
      "type": "string",
      "title": "Model Bundle Id"
    },
    "input_path": {
      "type": "string",
      "title": "Input Path"
    },
    "serialization_format": {
      "$ref": "#/$defs/BatchJobSerializationFormat"
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Labels"
    },
    "resource_requests": {
      "$ref": "#/$defs/CreateBatchJobResourceRequests"
    },
    "timeout_seconds": {
      "type": "number",
      "title": "Timeout Seconds",
      "default": 43200.0
    }
  },
  "type": "object",
  "required": [
    "model_bundle_id",
    "input_path",
    "serialization_format",
    "labels",
    "resource_requests"
  ],
  "$defs": {
    "BatchJobSerializationFormat": {
      "type": "string",
      "enum": [
        "JSON",
        "PICKLE"
      ],
      "title": "BatchJobSerializationFormat"
    },
    "CreateBatchJobResourceRequests": {
      "properties": {
        "cpus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cpus"
        },
        "memory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Memory"
        },
        "gpus": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gpus"
        },
        "gpu_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/GpuType"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Storage"
        },
        "max_workers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Workers"
        },
        "per_worker": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Per Worker"
        },
        "concurrent_requests_per_worker": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Concurrent Requests Per Worker"
        }
      },
      "type": "object",
      "title": "CreateBatchJobResourceRequests"
    },
    "GpuType": {
      "type": "string",
      "enum": [
        "nvidia-tesla-t4",
        "nvidia-ampere-a10",
        "nvidia-ampere-a100",
        "nvidia-ampere-a100e",
        "nvidia-hopper-h100",
        "nvidia-hopper-h100-1g20gb",
        "nvidia-hopper-h100-3g40gb"
      ],
      "title": "GpuType",
      "description": "Lists allowed GPU types for Launch."
    }
  }
}