---
title: "Create Model Bundle"
method: POST
path: "/v2/model-bundles"
---

# Create Model Bundle

`POST /v2/model-bundles`

Creates a ModelBundle for the current user.

## Request body

- CreateModelBundleV2Request — Request object for creating a Model Bundle.
  - `name` string, required
  - `metadata` object, nullable
  - `schema_location` string, required
  - `flavor` union, required
    - CloudpickleArtifactFlavor — This is the entity-layer class for the Model Bundle flavor of a cloudpickle artifact.
      - `requirements` string[], required
      - `framework` union, required
        - PytorchFramework — This is the entity-layer class for a Pytorch framework specification.
          - `framework_type` 'pytorch', required
          - `pytorch_image_tag` string, required
        - TensorflowFramework — This is the entity-layer class for a Tensorflow framework specification.
          - `framework_type` 'tensorflow', required
          - `tensorflow_version` string, required
        - CustomFramework — This is the entity-layer class for a custom framework specification.
          - `framework_type` 'custom_base_image', required
          - `image_repository` string, required
          - `image_tag` string, required
      - `app_config` object, nullable
      - `location` string, required
      - `flavor` 'cloudpickle_artifact', required
      - `load_predict_fn` string, required
      - `load_model_fn` string, required
    - ZipArtifactFlavor — This is the entity-layer class for the Model Bundle flavor of a zip artifact.
      - `requirements` string[], required
      - `framework` union, required
        - PytorchFramework — This is the entity-layer class for a Pytorch framework specification.
          - `framework_type` 'pytorch', required
          - `pytorch_image_tag` string, required
        - TensorflowFramework — This is the entity-layer class for a Tensorflow framework specification.
          - `framework_type` 'tensorflow', required
          - `tensorflow_version` string, required
        - CustomFramework — This is the entity-layer class for a custom framework specification.
          - `framework_type` 'custom_base_image', required
          - `image_repository` string, required
          - `image_tag` string, required
      - `app_config` object, nullable
      - `location` string, required
      - `flavor` 'zip_artifact', required
      - `load_predict_fn_module_path` string, required
      - `load_model_fn_module_path` string, required
    - RunnableImageFlavor — This is the entity-layer class for the Model Bundle flavor of a runnable image.
      - `repository` string, required
      - `tag` string, required
      - `command` string[], required
      - `predict_route` string
      - `healthcheck_route` string
      - `env` object, nullable
      - `protocol` 'http', required
      - `readiness_initial_delay_seconds` integer
      - `extra_routes` string[]
      - `routes` string[]
      - `forwarder_type` string, nullable
      - `worker_command` string[], nullable
      - `worker_env` object, nullable
      - `flavor` 'runnable_image', required
    - StreamingEnhancedRunnableImageFlavor — For deployments that expose a streaming route in a container.
      - `repository` string, required
      - `tag` string, required
      - `command` string[]
      - `predict_route` string
      - `healthcheck_route` string
      - `env` object, nullable
      - `protocol` 'http', required
      - `readiness_initial_delay_seconds` integer
      - `extra_routes` string[]
      - `routes` string[]
      - `forwarder_type` string, nullable
      - `worker_command` string[], nullable
      - `worker_env` object, nullable
      - `flavor` 'streaming_enhanced_runnable_image', required
      - `streaming_command` string[], required
      - `streaming_predict_route` string
    - TritonEnhancedRunnableImageFlavor — For deployments that require tritonserver running in a container.
      - `repository` string, required
      - `tag` string, required
      - `command` string[], required
      - `predict_route` string
      - `healthcheck_route` string
      - `env` object, nullable
      - `protocol` 'http', required
      - `readiness_initial_delay_seconds` integer
      - `extra_routes` string[]
      - `routes` string[]
      - `forwarder_type` string, nullable
      - `worker_command` string[], nullable
      - `worker_env` object, nullable
      - `flavor` 'triton_enhanced_runnable_image', required
      - `triton_model_repository` string, required
      - `triton_model_replicas` object, nullable
      - `triton_num_cpu` number, required
      - `triton_commit_tag` string, required
      - `triton_storage` string, nullable
      - `triton_memory` string, nullable
      - `triton_readiness_initial_delay_seconds` integer

## Response `200`

Successful Response

- CreateModelBundleV2Response — Response object for creating a Model Bundle.
  - `model_bundle_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/scaleapi/apis/launch.md) · [All operations](https://skmtc.net/scaleapi/apis/launch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scaleapi/launch/versions/8333576dbe43/schema)
