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

# Calculate reservation

> Calculate the deposit and pricing for a reserved instance before committing.



## OpenAPI

````yaml /api-reference/openapi.json post /reservations/calculate
openapi: 3.1.0
info:
  title: Nova Cloud API
  description: >-
    REST API for the Nova Cloud GPU rental platform. Manage virtual machines,
    SSH keys, billing, and more.
  version: 1.0.0
  contact:
    name: Nova Cloud Support
    email: support@nova-cloud.ai
    url: https://nova-cloud.ai
servers:
  - url: https://api.nova-cloud.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Authentication
    description: User registration, login, and token management
  - name: API Keys
    description: Create and manage API keys for programmatic access
  - name: SSH Keys
    description: Upload and manage SSH public keys for VM access
  - name: Virtual Machines
    description: Create, manage, and monitor GPU-powered VMs
  - name: Search & Pricing
    description: Browse available GPU offers and current pricing
  - name: Billing
    description: Balance, usage, transactions, and payment management
  - name: Reservations
    description: Reserved instance pricing and management
paths:
  /reservations/calculate:
    post:
      tags:
        - Reservations
      summary: Calculate reservation
      description: >-
        Calculate the deposit and pricing for a reserved instance before
        committing.
      operationId: calculate_reservation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReservationCalculateRequest'
      responses:
        '200':
          description: Reservation calculation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationCalculateResponse'
components:
  schemas:
    ReservationCalculateRequest:
      type: object
      required:
        - gpu_type
        - gpu_count
        - storage_gb
        - reservation_months
      properties:
        gpu_type:
          type: string
        gpu_count:
          type: integer
        storage_gb:
          type: integer
        reservation_months:
          type: integer
          enum:
            - 1
            - 3
            - 6
          description: 'Commitment period: 1, 3, or 6 months'
    ReservationCalculateResponse:
      type: object
      properties:
        discount_percent:
          type: number
        deposit_required:
          type: number
        monthly_cost:
          type: number
        hourly_rate_after_discount:
          type: number
        cancellation_fee_25_percent:
          type: number
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: Use a JWT access token or API key (prefixed with nv_)

````