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

# Create Model Bundle

`POST /v1/model-bundles`

Creates a ModelBundle for the current user.

## Request body

- CreateModelBundleV1Request — Request object for creating a Model Bundle.
  - `name` string, required
  - `location` string, required
  - `requirements` string[], required
  - `env_params` ModelBundleEnvironmentParams, required — This is the entity-layer class for the Model Bundle environment parameters. Being an entity-layer class, it should be a plain data object.
    - `framework_type` 'pytorch' | 'tensorflow' | 'custom_base_image', required — The canonical list of possible machine learning frameworks of Model Bundles.
    - `pytorch_image_tag` string, nullable
    - `tensorflow_version` string, nullable
    - `ecr_repo` string, nullable
    - `image_tag` string, nullable
  - `packaging_type` 'cloudpickle' | 'zip' | 'lira', required — The canonical list of possible packaging types for Model Bundles. These values broadly determine how the model endpoint will obtain its code & dependencies.
  - `metadata` object, nullable
  - `app_config` object, nullable
  - `schema_location` string, nullable

## Response `200`

Successful Response

- CreateModelBundleV1Response — 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)
