> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acusight.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create bulk annotations from inference

> Creates annotations from model predictions with auto-class creation



## OpenAPI

````yaml /api-spec.json post /data/projects/{id}/inference-annotations
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /data/projects/{id}/inference-annotations:
    post:
      tags:
        - Datasets & data
      summary: Create bulk annotations from inference
      description: Creates annotations from model predictions with auto-class creation
      parameters:
        - description: Project ID
          in: path
          name: id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/types.InferenceAnnotationsRequest'
        description: Inference annotations payload
        required: true
      responses:
        '200':
          description: Annotations created
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.APIResponse'
                  - properties:
                      data:
                        $ref: >-
                          #/components/schemas/types.InferenceAnnotationsResponse
                    type: object
        '400':
          description: Invalid request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '500':
          description: Failed to create annotations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    types.InferenceAnnotationsRequest:
      properties:
        inference_request_id:
          type: integer
        model_version_id:
          type: integer
        overwrite:
          description: If true, delete existing annotations for affected images
          type: boolean
        predictions:
          items:
            $ref: '#/components/schemas/types.InferencePrediction'
          type: array
      required:
        - inference_request_id
        - model_version_id
        - predictions
      type: object
    types.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/types.APIError'
        meta:
          $ref: '#/components/schemas/types.APIMeta'
        success:
          type: boolean
      type: object
    types.InferenceAnnotationsResponse:
      properties:
        annotations_created:
          type: integer
        classes_created:
          type: integer
        new_classes:
          items:
            type: string
          type: array
      type: object
    types.InferencePrediction:
      properties:
        detections:
          items:
            $ref: '#/components/schemas/types.InferenceDetection'
          type: array
        image_id:
          type: integer
      required:
        - detections
        - image_id
      type: object
    types.APIError:
      properties:
        code:
          type: string
        details:
          type: string
        message:
          type: string
      type: object
    types.APIMeta:
      properties:
        count:
          type: integer
        limit:
          description: Always include in pagination responses
          type: integer
        offset:
          description: Always include in pagination responses
          type: integer
        total:
          type: integer
      type: object
    types.InferenceDetection:
      properties:
        class_index:
          type: integer
        class_name:
          type: string
        confidence:
          maximum: 1
          minimum: 0
          type: number
        geometry:
          items:
            items:
              format: float64
              type: number
            type: array
          type: array
        type:
          enum:
            - bbox
            - polygon
          type: string
      required:
        - class_name
        - confidence
        - geometry
        - type
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````