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

# Post apiv1imagescreate



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/images/create
openapi: 3.1.0
info:
  title: Orchestrator Control Plane API
  description: ''
  license:
    name: ''
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/images/create:
    post:
      tags:
        - images
      operationId: create_image
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBaseImageRequest'
        required: true
      responses:
        '201':
          description: Image creation job started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateBaseImageResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
        '409':
          description: Image name already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    CreateBaseImageRequest:
      type: object
      required:
        - image_name
        - source
      properties:
        description:
          type:
            - string
            - 'null'
        image_name:
          type: string
        size_mib:
          type: integer
          format: int32
          description: >-
            Additional capacity in MiB beyond the actual filesystem size
            (defaults to 256).

            The final image size = calculated rootfs size + this value.

            Set to 0 for minimum possible image size, or higher for more free
            space.
        source:
          $ref: '#/components/schemas/ImageSourceRequest'
    CreateBaseImageResponse:
      type: object
      required:
        - job_id
        - image_name
        - status
      properties:
        image_name:
          type: string
        job_id:
          type: string
        status:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Reason of error
        success:
          type: boolean
          description: 'Is always: false'
    ImageSourceRequest:
      oneOf:
        - type: object
          required:
            - image_ref
            - type
          properties:
            image_ref:
              type: string
            type:
              type: string
              enum:
                - docker
        - type: object
          required:
            - bucket
            - key
            - type
          properties:
            bucket:
              type: string
            key:
              type: string
            type:
              type: string
              enum:
                - s3
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: Token

````