> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Model

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.NucleusClient.create_model)**
>
> ```
> NucleusClient.create_model(
>     name: str,
>     reference_id: str,
>     metadata: Optional[Dict] = None,
>     bundle_name: Optional[str] = None,
>     tags: Optional[List[str]] = None,
>     trained_slice_ids: Optional[List[str]] = None
> ) -> Model
> ```

This endpoint creates a `Model` object inside Nucleus, whose predictions can be associated with various `Datasets`.


## OpenAPI

````yaml openapi/nucleus.json POST /models/add
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /models/add:
    post:
      summary: Add Model
      operationId: add-model
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - reference_id
              properties:
                name:
                  type: string
                  description: >-
                    A human-readable name for the Model. This will be displayed
                    in the dashboard.
                reference_id:
                  type: string
                  description: >-
                    A user-specified identifier to reference this given Models.
                    Must be unique across all Models.
                metadata:
                  type: string
                  description: >-
                    A metadata blob for the Model. Only supporting one level
                    JSONs
                  format: json
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    model_id: prj_bw1twwkfw7e15wfnz5tg
              schema:
                type: object
                properties:
                  model_id:
                    type: string
                    example: prj_bw1twwkfw7e15wfnz5tg
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````