> ## 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.

# Export All Model Predictions

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.export_predictions)**
>
> ```
> Dataset.export_predictions(
>     model: Model
> ) -> List[Union[BoxPrediction, PolygonPrediction, CuboidPrediction, SegmentationPrediction]]
> ```

This endpoint is for batch export. It may time out for extremely large datasets (>1M items), but we are working an asynchronous solution for this.


## OpenAPI

````yaml openapi/nucleus.json GET /dataset/{dataset_id}/model/{model_id}/export
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /dataset/{dataset_id}/model/{model_id}/export:
    get:
      summary: Export All Model Predictions
      operationId: export-all-model-predictions
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
        - name: model_id
          in: path
          description: The Scale-generated ID of the Model.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    annotations:
                      box:
                        - label: car
                          type: box
                          geometry:
                            x: 655.2
                            'y': 269.3
                            width: 70.5
                            height: 50.5
                          reference_id: image_0
                          confidence: 0.86
                          class_pdf:
                            car: 0.86
                            pedestrian: 0.12
                            bike: 0.02
                        - label: pedestrian
                          type: box
                          geometry:
                            x: 734.7
                            'y': 258
                            width: 139.6
                            height: 114.3
                          reference_id: image_0
                          confidence: 0.7
                          class_pdf:
                            car: 0.09
                            pedestrian: 0.7
                            bike: 0.21
              schema:
                type: object
                properties:
                  annotations:
                    type: object
                    properties:
                      box:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                              example: car
                            type:
                              type: string
                              example: box
                            geometry:
                              type: object
                              properties:
                                x:
                                  type: number
                                  example: 655.2
                                  default: 0
                                'y':
                                  type: number
                                  example: 269.3
                                  default: 0
                                width:
                                  type: number
                                  example: 70.5
                                  default: 0
                                height:
                                  type: number
                                  example: 50.5
                                  default: 0
                            reference_id:
                              type: string
                              example: image_0
                            confidence:
                              type: number
                              example: 0.86
                              default: 0
                            class_pdf:
                              type: object
                              properties:
                                car:
                                  type: number
                                  example: 0.86
                                  default: 0
                                pedestrian:
                                  type: number
                                  example: 0.12
                                  default: 0
                                bike:
                                  type: number
                                  example: 0.02
                                  default: 0
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````