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

# Preview load balancer price

> Preview the billing price for a load balancer.



## OpenAPI

````yaml /api-reference/services_documented/cloud_api.yaml post /cloud/v2/pricing/{project_id}/{region_id}/loadbalancers
openapi: 3.1.0
info:
  title: Gcore OpenAPI – Cloud API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: '2026-05-11T15:10:30.328297+00:00'
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - name: Bare Metal
    x-displayName: Bare Metal
  - name: Container as a Service
    x-displayName: Container as a Service
  - name: Cost Reports
    x-displayName: Cost Reports
  - name: DDoS Protection
    x-displayName: DDoS Protection
  - name: Everywhere Inference
    x-displayName: Everywhere Inference
  - name: Everywhere Inference Apps
    x-displayName: Everywhere Inference Apps
  - name: File Shares
    x-displayName: File Shares
  - name: Floating IPs
    x-displayName: Floating IPs
  - name: Function as a Service
    x-displayName: Function as a Service
  - name: GPU Bare Metal
    x-displayName: GPU Bare Metal
  - name: GPU Virtual
    x-displayName: GPU Virtual
  - name: IP Ranges
    x-displayName: IP Ranges
  - name: Images
    x-displayName: Images
  - name: Instances
    x-displayName: Instances
  - name: Load Balancers
    x-displayName: Load Balancers
  - name: Logging
    x-displayName: Logging
  - name: Managed Kubernetes
    x-displayName: Managed Kubernetes
  - name: Managed PostgreSQL
    x-displayName: Managed PostgreSQL
  - name: Networks
    x-displayName: Networks
  - name: Placement Groups
    x-displayName: Placement Groups
  - name: Projects
    x-displayName: Projects
  - name: Quotas
    x-displayName: Quotas
  - name: Regions
    x-displayName: Regions
  - name: Registry
    x-displayName: Registry
  - name: Reservations
    x-displayName: Reservations
  - name: Reserved IPs
    x-displayName: Reserved IPs
  - name: Routers
    x-displayName: Routers
  - name: SSH Keys
    x-displayName: SSH Keys
  - name: Secrets
    x-displayName: Secrets
  - name: Security Groups
    x-displayName: Security Groups
  - name: Snapshot Schedules
    x-displayName: Snapshot Schedules
  - name: Snapshots
    x-displayName: Snapshots
  - name: Tasks
    x-displayName: Tasks
  - name: User Actions
    x-displayName: User Actions
  - name: User Role Assignments
    x-displayName: User Role Assignments
  - name: Volumes
    x-displayName: Volumes
paths:
  /cloud/v2/pricing/{project_id}/{region_id}/loadbalancers:
    post:
      tags:
        - Load Balancers
      summary: Preview load balancer price
      description: Preview the billing price for a load balancer.
      operationId: LoadBalancerPricingPreviewV2Handler.post
      parameters:
        - in: path
          name: project_id
          required: true
          description: Project ID
          schema:
            description: Project ID
            example: 1
            examples:
              - 1
            format: int64
            title: Project Id
            type: integer
        - in: path
          name: region_id
          required: true
          description: Region ID
          schema:
            description: Region ID
            example: 1
            examples:
              - 1
            format: int64
            title: Region Id
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/LoadBalancerPricingPreviewV2RequestSerializer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoadBalancerPricingPreviewResponseSerializer
components:
  schemas:
    LoadBalancerPricingPreviewV2RequestSerializer:
      description: Price preview loadbalancer schema
      example:
        flavor: lb1-1-2
        floating_ip:
          existing_floating_id: c64e5db1-5f1f-43ec-a8d9-5090df85b82d
          source: existing
      examples:
        - flavor: lb1-1-2
          floating_ip:
            existing_floating_id: c64e5db1-5f1f-43ec-a8d9-5090df85b82d
            source: existing
      properties:
        flavor:
          description: Load balancer flavor name
          example: lb1-1-2
          examples:
            - lb1-1-2
          title: Flavor
          type: string
        floating_ip:
          description: >-
            Allows the instance to have a public IP that can be reached from the
            internet.
          discriminator:
            mapping:
              existing:
                $ref: >-
                  #/components/schemas/ExistingInstanceFloatingIpInterfaceSerializer
              new:
                $ref: '#/components/schemas/NewInstanceFloatingIpInterfaceSerializer'
            propertyName: source
          oneOf:
            - $ref: '#/components/schemas/NewInstanceFloatingIpInterfaceSerializer'
            - $ref: >-
                #/components/schemas/ExistingInstanceFloatingIpInterfaceSerializer
          title: Floating Ip
        vip_ip_family:
          anyOf:
            - $ref: '#/components/schemas/InterfaceIPFamily'
            - type: 'null'
          default: null
          description: >-
            Which subnet should be selected if not specified: IPv4, IPv6 or use
            dual stack.
          examples:
            - ipv4
        vip_network_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Network ID for load balancer. If not specified, default external
            network will be used. Mutually exclusive with `vip_port_id`
          examples:
            - ddc28e44-2acb-499b-985b-831f29432e1c
          title: Vip Network Id
        vip_port_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Existing Reserved Fixed IP port ID for load balancer. Mutually
            exclusive with `vip_network_id`
          examples:
            - 57be69f6-6f6a-4f03-a4ad-8eb86c69ec0a
          title: Vip Port Id
        vip_subnet_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Subnet ID for load balancer. If not specified, any subnet from
            `vip_network_id` will be selected. Ignored when `vip_network_id` is
            not specified.
          examples:
            - 2731a56e-a5c9-44be-80c2-02c57c594573
          title: Vip Subnet Id
      required:
        - flavor
      title: LoadBalancerPricingPreviewV2RequestSerializer
      type: object
    LoadBalancerPricingPreviewResponseSerializer:
      description: Billing response preview schema for loadbalancer
      example:
        currency_code: USD
        discount_percent: 0.16
        per_hour:
          external_ip: 0.02
          flavor: 0.8
          floating_ip: 0.05
        per_month:
          external_ip: 14.4
          flavor: 576
          floating_ip: 36
        price_status: show
        price_without_discount_per_month: 604.8
        tax_percent: 17
        total_price_per_hour: 1.02
        total_price_per_month: 734.4
      examples:
        - currency_code: USD
          discount_percent: 0.16
          per_hour:
            external_ip: 0.02
            flavor: 0.8
            floating_ip: 0.05
          per_month:
            external_ip: 14.4
            flavor: 576
            floating_ip: 36
          price_status: show
          price_without_discount_per_month: 604.8
          tax_percent: 17
          total_price_per_hour: 1.02
          total_price_per_month: 734.4
      properties:
        currency_code:
          anyOf:
            - enum:
                - AZN
                - EUR
                - USD
              type: string
            - type: 'null'
          description: Currency code (3 letter code per ISO 4217)
          title: Currency Code
        discount_percent:
          anyOf:
            - type: number
            - type: 'null'
          description: Actual discount relative value
          examples:
            - 0.16
          title: Discount Percent
        per_hour:
          $ref: '#/components/schemas/DetailedLoadBalancerPricingSerializer'
          description: Prices per category charged per hour
        per_month:
          $ref: '#/components/schemas/DetailedLoadBalancerPricingSerializer'
          description: Prices per category charged per month
        price_status:
          $ref: '#/components/schemas/PriceDisplayStatus'
          description: Price status for the UI
          examples:
            - show
        price_without_discount_per_month:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per month without discount
          title: Price Without Discount Per Month
        tax_percent:
          description: Tax rate applied to the subtotal, represented as a percentage
          example: '0'
          examples:
            - '0'
            - 17
            - 12
          title: Tax Percent
          type: number
        total_price_per_hour:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per hour
          title: Total Price Per Hour
        total_price_per_month:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per month
          title: Total Price Per Month
      required:
        - currency_code
        - per_hour
        - per_month
        - total_price_per_hour
        - total_price_per_month
        - price_status
        - price_without_discount_per_month
        - discount_percent
        - tax_percent
      title: LoadBalancerPricingPreviewResponseSerializer
      type: object
    ExistingInstanceFloatingIpInterfaceSerializer:
      properties:
        existing_floating_id:
          description: >-
            An existing available floating IP id must be specified if the source
            is set to `existing`
          example: e3c6ee77-48cb-416b-b204-11b492cc776e3
          examples:
            - e3c6ee77-48cb-416b-b204-11b492cc776e3
          format: uuid4
          title: Existing Floating Id
          type: string
        source:
          const: existing
          description: >-
            An existing available floating IP will be attached to the instance.
            A floating IP is a public IP that makes the instance accessible from
            the internet, even if it only has a private IP. It works like SNAT,
            allowing outgoing and incoming traffic.
          example: existing
          examples:
            - existing
          title: Source
          type: string
      required:
        - source
        - existing_floating_id
      title: Existing floating IP
      type: object
    NewInstanceFloatingIpInterfaceSerializer:
      properties:
        source:
          const: new
          description: >-
            A new floating IP will be created and attached to the instance. A
            floating IP is a public IP that makes the instance accessible from
            the internet, even if it only has a private IP. It works like SNAT,
            allowing outgoing and incoming traffic.
          example: new
          examples:
            - new
          title: Source
          type: string
      required:
        - source
      title: New floating IP
      type: object
    InterfaceIPFamily:
      enum:
        - dual
        - ipv4
        - ipv6
      title: InterfaceIPFamily
      type: string
    DetailedLoadBalancerPricingSerializer:
      description: Pricing schema with detailed prices per category.
      example:
        external_ip: 14.4
        flavor: 576
        floating_ip: 36
      examples:
        - external_ip: 14.4
          flavor: 576
          floating_ip: 36
      properties:
        external_ip:
          anyOf:
            - type: number
            - type: 'null'
          default: null
          description: Price of external/public IP over the specified period of time.
          examples:
            - 14.4
          title: External Ip
        flavor:
          anyOf:
            - type: number
            - type: 'null'
          default: null
          description: Price of load balancer over the specified period of time.
          examples:
            - 576
          title: Flavor
        floating_ip:
          anyOf:
            - type: number
            - type: 'null'
          default: null
          description: Price of floating IP over the specified period of time.
          examples:
            - 36
          title: Floating Ip
      title: DetailedLoadBalancerPricingSerializer
      type: object
    PriceDisplayStatus:
      enum:
        - error
        - hide
        - show
      title: PriceDisplayStatus
      type: string
  securitySchemes:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````