Scale AI Model Bundles API

The Model Bundles API from Scale AI — 8 operation(s) for model bundles.

Business capability
Model Inference AE-110.10

Operations 10

POST /v1/model-bundles Create Model Bundle #
GET /v1/model-bundles List Model Bundles #
POST /v1/model-bundles/clone-with-changes Clone Model Bundle With Changes #
GET /v1/model-bundles/latest Get Latest Model Bundle #
GET /v1/model-bundles/{model_bundle_id} Get Model Bundle #
POST /v2/model-bundles Create Model Bundle #
GET /v2/model-bundles List Model Bundles #
POST /v2/model-bundles/clone-with-changes Clone Model Bundle With Changes #
GET /v2/model-bundles/latest Get Latest Model Bundle #
GET /v2/model-bundles/{model_bundle_id} Get Model Bundle #

Documentation

Specifications

SDKs

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-object-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-export-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-by-span-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-api-apps-public-routers-inference-inference-model-models-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-utils-model-schemas-completions-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-request-v2-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-execute-agent-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-legacy-evaluation-response-with-views-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-agent-run-schedule-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-register-agent-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-span-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-span-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-research-job-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-job-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-data-source-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-parse-result-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-file-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-sgpvector-store-create-request-base-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v1-request-schema.json

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/scale-ai:scale-ai-model-bundles-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

scale-ai-model-bundles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: launch Model Bundles API
  version: 1.0.0
tags:
- name: Model Bundles
paths:
  /v1/model-bundles:
    post:
      summary: Create Model Bundle
      description: Creates a ModelBundle for the current user.
      operationId: create_model_bundle_v1_model_bundles_post
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateModelBundleV1Request'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateModelBundleV1Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
    get:
      summary: List Model Bundles
      description: Lists the ModelBundles owned by the current owner.
      operationId: list_model_bundles_v1_model_bundles_get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Model Name
      - name: order_by
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/ModelBundleOrderBy'
          - type: 'null'
          title: Order By
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListModelBundlesV1Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
  /v1/model-bundles/clone-with-changes:
    post:
      summary: Clone Model Bundle With Changes
      description: Creates a ModelBundle by cloning an existing one and then applying changes on top.
      operationId: clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneModelBundleV1Request'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateModelBundleV1Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      tags:
      - Model Bundles
  /v1/model-bundles/latest:
    get:
      summary: Get Latest Model Bundle
      description: Gets the latest Model Bundle with the given name owned by the current owner.
      operationId: get_latest_model_bundle_v1_model_bundles_latest_get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_name
        in: query
        required: true
        schema:
          type: string
          title: Model Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelBundleV1Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
  /v1/model-bundles/{model_bundle_id}:
    get:
      summary: Get Model Bundle
      description: Gets the details for a given ModelBundle owned by the current owner.
      operationId: get_model_bundle_v1_model_bundles__model_bundle_id__get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_bundle_id
        in: path
        required: true
        schema:
          type: string
          title: Model Bundle Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelBundleV1Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
  /v2/model-bundles:
    post:
      summary: Create Model Bundle
      description: Creates a ModelBundle for the current user.
      operationId: create_model_bundle_v2_model_bundles_post
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateModelBundleV2Request'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateModelBundleV2Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
    get:
      summary: List Model Bundles
      description: Lists the ModelBundles owned by the current owner.
      operationId: list_model_bundles_v2_model_bundles_get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Model Name
      - name: order_by
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/ModelBundleOrderBy'
          - type: 'null'
          title: Order By
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListModelBundlesV2Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
  /v2/model-bundles/clone-with-changes:
    post:
      summary: Clone Model Bundle With Changes
      description: Creates a ModelBundle by cloning an existing one and then applying changes on top.
      operationId: clone_model_bundle_with_changes_v2_model_bundles_clone_with_changes_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneModelBundleV2Request'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateModelBundleV2Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      tags:
      - Model Bundles
  /v2/model-bundles/latest:
    get:
      summary: Get Latest Model Bundle
      description: Gets the latest Model Bundle with the given name owned by the current owner.
      operationId: get_latest_model_bundle_v2_model_bundles_latest_get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_name
        in: query
        required: true
        schema:
          type: string
          title: Model Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelBundleV2Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
  /v2/model-bundles/{model_bundle_id}:
    get:
      summary: Get Model Bundle
      description: Gets the details for a given ModelBundle owned by the current owner.
      operationId: get_model_bundle_v2_model_bundles__model_bundle_id__get
      security:
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
      parameters:
      - name: model_bundle_id
        in: path
        required: true
        schema:
          type: string
          title: Model Bundle Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelBundleV2Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Model Bundles
components:
  schemas:
    ModelBundleOrderBy:
      type: string
      enum:
      - newest
      - oldest
      title: ModelBundleOrderBy
      description: The canonical list of possible orderings of Model Bundles.
    CreateModelBundleV1Request:
      properties:
        name:
          type: string
          title: Name
        location:
          type: string
          title: Location
        requirements:
          items:
            type: string
          type: array
          title: Requirements
        env_params:
          $ref: '#/components/schemas/ModelBundleEnvironmentParams'
        packaging_type:
          $ref: '#/components/schemas/ModelBundlePackagingType'
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
        app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: App Config
        schema_location:
          anyOf:
          - type: string
          - type: 'null'
          title: Schema Location
      type: object
      required:
      - name
      - location
      - requirements
      - env_params
      - packaging_type
      title: CreateModelBundleV1Request
      description: Request object for creating a Model Bundle.
    CloneModelBundleV2Request:
      properties:
        original_model_bundle_id:
          type: string
          title: Original Model Bundle Id
        new_app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: New App Config
      type: object
      required:
      - original_model_bundle_id
      title: CloneModelBundleV2Request
      description: Request object for cloning a Model Bundle from another one.
    ListModelBundlesV2Response:
      properties:
        model_bundles:
          items:
            $ref: '#/components/schemas/ModelBundleV2Response'
          type: array
          title: Model Bundles
      type: object
      required:
      - model_bundles
      title: ListModelBundlesV2Response
      description: Response object for listing Model Bundles.
    ListModelBundlesV1Response:
      properties:
        model_bundles:
          items:
            $ref: '#/components/schemas/ModelBundleV1Response'
          type: array
          title: Model Bundles
      type: object
      required:
      - model_bundles
      title: ListModelBundlesV1Response
      description: Response object for listing Model Bundles.
    TritonEnhancedRunnableImageFlavor:
      properties:
        repository:
          type: string
          title: Repository
        tag:
          type: string
          title: Tag
        command:
          items:
            type: string
          type: array
          title: Command
        predict_route:
          type: string
          title: Predict Route
          default: /predict
        healthcheck_route:
          type: string
          title: Healthcheck Route
          default: /readyz
        env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Env
        protocol:
          type: string
          const: http
          title: Protocol
        readiness_initial_delay_seconds:
          type: integer
          title: Readiness Initial Delay Seconds
          default: 120
        extra_routes:
          items:
            type: string
          type: array
          title: Extra Routes
        routes:
          items:
            type: string
          type: array
          title: Routes
        forwarder_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Forwarder Type
          default: default
        worker_command:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Worker Command
        worker_env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Worker Env
        flavor:
          type: string
          const: triton_enhanced_runnable_image
          title: Flavor
        triton_model_repository:
          type: string
          title: Triton Model Repository
        triton_model_replicas:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Triton Model Replicas
        triton_num_cpu:
          type: number
          title: Triton Num Cpu
        triton_commit_tag:
          type: string
          title: Triton Commit Tag
        triton_storage:
          anyOf:
          - type: string
          - type: 'null'
          title: Triton Storage
        triton_memory:
          anyOf:
          - type: string
          - type: 'null'
          title: Triton Memory
        triton_readiness_initial_delay_seconds:
          type: integer
          title: Triton Readiness Initial Delay Seconds
          default: 300
      type: object
      required:
      - repository
      - tag
      - command
      - protocol
      - flavor
      - triton_model_repository
      - triton_num_cpu
      - triton_commit_tag
      title: TritonEnhancedRunnableImageFlavor
      description: For deployments that require tritonserver running in a container.
    TensorflowFramework:
      properties:
        framework_type:
          type: string
          const: tensorflow
          title: Framework Type
        tensorflow_version:
          type: string
          title: Tensorflow Version
      type: object
      required:
      - framework_type
      - tensorflow_version
      title: TensorflowFramework
      description: This is the entity-layer class for a Tensorflow framework specification.
    CloudpickleArtifactFlavor:
      properties:
        requirements:
          items:
            type: string
          type: array
          title: Requirements
        framework:
          oneOf:
          - $ref: '#/components/schemas/PytorchFramework'
          - $ref: '#/components/schemas/TensorflowFramework'
          - $ref: '#/components/schemas/CustomFramework'
          title: Framework
          discriminator:
            propertyName: framework_type
            mapping:
              custom_base_image: '#/components/schemas/CustomFramework'
              pytorch: '#/components/schemas/PytorchFramework'
              tensorflow: '#/components/schemas/TensorflowFramework'
        app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: App Config
        location:
          type: string
          title: Location
        flavor:
          type: string
          const: cloudpickle_artifact
          title: Flavor
        load_predict_fn:
          type: string
          title: Load Predict Fn
        load_model_fn:
          type: string
          title: Load Model Fn
      type: object
      required:
      - requirements
      - framework
      - location
      - flavor
      - load_predict_fn
      - load_model_fn
      title: CloudpickleArtifactFlavor
      description: This is the entity-layer class for the Model Bundle flavor of a cloudpickle artifact.
    ModelBundlePackagingType:
      type: string
      enum:
      - cloudpickle
      - zip
      - lira
      title: ModelBundlePackagingType
      description: 'The canonical list of possible packaging types for Model Bundles.


        These values broadly determine how the model endpoint will obtain its code & dependencies.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateModelBundleV1Response:
      properties:
        model_bundle_id:
          type: string
          title: Model Bundle Id
      type: object
      required:
      - model_bundle_id
      title: CreateModelBundleV1Response
      description: Response object for creating a Model Bundle.
    ModelBundleV1Response:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        location:
          type: string
          title: Location
        requirements:
          items:
            type: string
          type: array
          title: Requirements
        env_params:
          $ref: '#/components/schemas/ModelBundleEnvironmentParams'
        packaging_type:
          $ref: '#/components/schemas/ModelBundlePackagingType'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: App Config
        created_at:
          type: string
          format: date-time
          title: Created At
        model_artifact_ids:
          items:
            type: string
          type: array
          title: Model Artifact Ids
        schema_location:
          anyOf:
          - type: string
          - type: 'null'
          title: Schema Location
      type: object
      required:
      - id
      - name
      - location
      - requirements
      - env_params
      - packaging_type
      - metadata
      - created_at
      - model_artifact_ids
      title: ModelBundleV1Response
      description: Response object for a single Model Bundle.
    ModelBundleEnvironmentParams:
      properties:
        framework_type:
          $ref: '#/components/schemas/ModelBundleFrameworkType'
        pytorch_image_tag:
          anyOf:
          - type: string
          - type: 'null'
          title: Pytorch Image Tag
        tensorflow_version:
          anyOf:
          - type: string
          - type: 'null'
          title: Tensorflow Version
        ecr_repo:
          anyOf:
          - type: string
          - type: 'null'
          title: Ecr Repo
        image_tag:
          anyOf:
          - type: string
          - type: 'null'
          title: Image Tag
      type: object
      required:
      - framework_type
      title: ModelBundleEnvironmentParams
      description: 'This is the entity-layer class for the Model Bundle environment parameters. Being an

        entity-layer class, it should be a plain data object.'
    ZipArtifactFlavor:
      properties:
        requirements:
          items:
            type: string
          type: array
          title: Requirements
        framework:
          oneOf:
          - $ref: '#/components/schemas/PytorchFramework'
          - $ref: '#/components/schemas/TensorflowFramework'
          - $ref: '#/components/schemas/CustomFramework'
          title: Framework
          discriminator:
            propertyName: framework_type
            mapping:
              custom_base_image: '#/components/schemas/CustomFramework'
              pytorch: '#/components/schemas/PytorchFramework'
              tensorflow: '#/components/schemas/TensorflowFramework'
        app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: App Config
        location:
          type: string
          title: Location
        flavor:
          type: string
          const: zip_artifact
          title: Flavor
        load_predict_fn_module_path:
          type: string
          title: Load Predict Fn Module Path
        load_model_fn_module_path:
          type: string
          title: Load Model Fn Module Path
      type: object
      required:
      - requirements
      - framework
      - location
      - flavor
      - load_predict_fn_module_path
      - load_model_fn_module_path
      title: ZipArtifactFlavor
      description: This is the entity-layer class for the Model Bundle flavor of a zip artifact.
    CloneModelBundleV1Request:
      properties:
        original_model_bundle_id:
          type: string
          title: Original Model Bundle Id
        new_app_config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: New App Config
      type: object
      required:
      - original_model_bundle_id
      title: CloneModelBundleV1Request
      description: Request object for cloning a Model Bundle from another one.
    RunnableImageFlavor:
      properties:
        repository:
          type: string
          title: Repository
        tag:
          type: string
          title: Tag
        command:
          items:
            type: string
          type: array
          title: Command
        predict_route:
          type: string
          title: Predict Route
          default: /predict
        healthcheck_route:
          type: string
          title: Healthcheck Route
          default: /readyz
        env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Env
        protocol:
          type: string
          const: http
          title: Protocol
        readiness_initial_delay_seconds:
          type: integer
          title: Readiness Initial Delay Seconds
          default: 120
        extra_routes:
          items:
            type: string
          type: array
          title: Extra Routes
        routes:
          items:
            type: string
          type: array
          title: Routes
        forwarder_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Forwarder Type
          default: default
        worker_command:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Worker Command
        worker_env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Worker Env
        flavor:
          type: string
          const: runnable_image
          title: Flavor
      type: object
      required:
      - repository
      - tag
      - command
      - protocol
      - flavor
      title: RunnableImageFlavor
      description: This is the entity-layer class for the Model Bundle flavor of a runnable image.
    CreateModelBundleV2Response:
      properties:
        model_bundle_id:
          type: string
          title: Model Bundle Id
      type: object
      required:
      - model_bundle_id
      title: CreateModelBundleV2Response
      description: Response object for creating a Model Bundle.
    ModelBundleFrameworkType:
      type: string
      enum:
      - pytorch
      - tensorflow
      - custom_base_image
      title: ModelBundleFrameworkType
      description: The canonical list of possible machine learning frameworks of Model Bundles.
    StreamingEnhancedRunnableImageFlavor:
      properties:
        repository:
          type: string
          title: Repository
        tag:
          type: string
          title: Tag
        command:
          items:
            type: string
          type: array
          title: Command
          default: []
        predict_route:
          type: string
          title: Predict Route
          default: /predict
        healthcheck_route:
          type: string
          title: Healthcheck Route
          default: /readyz
        env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Env
        protocol:
          type: string
          const: http
          title: Protocol
        readiness_initial_delay_seconds:
          type: integer
          title: Readiness Initial Delay Seconds
          default: 120
        extra_routes:
          items:
            type: string
          type: array
          title: Extra Routes
        routes:
          items:
            type: string
          type: array
          title: Routes
        forwarder_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Forwarder Type
          default: default
        worker_command:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Worker Command
        worker_env:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Worker Env
        flavor:
          type: string
          const: streaming_enhanced_runnable_image
          title: Flavor
        streaming_command:
          items:
            type: string
          type: array
          title: Streaming Command
        streaming_predict_route:
          type: string
          title: Streaming Predict Route
          default: /stream
      type: object
      required:
      - repository
      - tag
      - protocol
      - flavor
      - streaming_command
      title: StreamingEnhancedRunnableImageFlavor
      description: For deployments that expose a streaming route in a container.
    PytorchFramework:
      properties:
        framework_type:
          type: string
          const: pytorch
          title: Framework Type
        pytorch_image_tag:
          type: string
          title: Pytorch Image Tag
      type: object
      required:
      - framework_type
      - pytorch_image_tag
      title: PytorchFramework
      description: This is the entity-layer class for a Pytorch framework specification.
    CustomFramework:
      properties:
        framework_type:
          type: string
          const: custom_base_image
          title: Framework Type
        image_repository:
          type: string
          title: Image Repository
        image_tag:
          type: string
          title: Image Tag
      type: object
      required:
      - framework_type
      - image_repository
      - image_tag
      title: CustomFramework
      description: This is the entity-layer class for a custom framework specification.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ModelBundleV2Response:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        model_artifact_ids:
          items:
            type: string
          type: array
          title: Model Artifact Ids
        schema_location:
          anyOf:
          - type: string
          - type: 'null'
          title: Schema Location
        flavor:
          oneOf:
          - $ref: '#/components/schemas/CloudpickleArtifactFlavor'
          - $ref: '#/components/schemas/ZipArtifactFlavor'
          - $ref: '#/components/schemas/RunnableImageFlavor'
          - $ref: '#/components/schemas/StreamingEnhancedRunnableImageFlavor'
          - $ref: '#/components/schemas/TritonEnhancedRunnableImageFlavor'
          title: Flavor
          discriminator:
            propertyName: flavor
            mapping:
              cloudpickle_artifact: '#/components/schemas/CloudpickleArtifactFlavor'
              runnable_image: '#/components/schemas/RunnableImageFlavor'
              streaming_enhanced_runnable_image: '#/components/schemas/StreamingEnhancedRunnableImageFlavor'
              triton_enhanced_runnable_image: '#/components/schemas/TritonEnhancedRunnableImageFlavor'
              zip_artifact: '#/components/schemas/ZipArtifactFlavor'
      type: object
      required:
      - id
      - name
      - metadata
      - created_at
      - model_artifact_ids
      - flavor
      title: ModelBundleV2Response
      description: Response object for a single Model Bundle.
    CreateModelBundleV2Request:
      properties:
        name:
          type: string
          title: Name
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
        schema_location:
          type: string
          title: Schema Location
        flavor:
          oneOf:
          - $ref: '#/components/schemas/CloudpickleArtifactFlavor'
          - $ref: '#/components/schemas/ZipArtifactFlavor'
          - $ref: '#/components/schemas/RunnableImageFlavor'
          - $ref: '#/components/schemas/StreamingEnhancedRunnableImageFlavor'
          - $ref: '#/components/schemas/TritonEnhancedRunnableImageFlavor'
          title: Flavor
          discriminator:
            propertyName: flavor
            mapping:
              cloudpickle_artifact: '#/components/schemas/CloudpickleArtifactFlavor'
              runnable_image: '#/components/schemas/RunnableImageFlavor'
              streaming_enhanced_runnable_image: '#/components/schemas/StreamingEnhancedRunnableImageFlavor'
              triton_enhanced_runnable_image: '#/components/schemas/TritonEnhancedRunnableImageFlavor'
              zip_artifact: '#/components/schemas/ZipArtifactFlavor'
      type: object
      required:
      - name
      - schema_location
      - flavor
      title: CreateModelBundleV2Request
      description: Request object for creating a Model Bundle.
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token