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

# Create Image Index

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.create_image_index)**
>
> ```
> Dataset.create_image_index() -> AsyncJob
> ```

This endpoint will create an image index for a Dataset, or update the index if it already exists.

This will generate internal embeddings for each image in the dataset that does not already have an associated embedding. These embeddings are used for Autotag and similarity search.

This endpoint is limited to index up to only 2 million images at a time — if a request is made that exceeds this limit, the job will fail.


## OpenAPI

````yaml openapi/nucleus.json POST /indexing/{dataset_id}/internal/image
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /indexing/{dataset_id}/internal/image:
    post:
      summary: Create Image Index
      operationId: create-image-index
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    job_id: job_ffsj9afawlfkd
                    job_last_known_status: Running
                    job_type: indexingImage
                    job_creation_time: '2021-07-20T18:07:13.055Z'
              schema:
                type: object
                properties:
                  job_id:
                    type: string
                    example: job_ffsj9afawlfkd
                  job_last_known_status:
                    type: string
                    example: Running
                  job_type:
                    type: string
                    example: indexingImage
                  job_creation_time:
                    type: string
                    example: '2021-07-20T18:07:13.055Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````