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

# List Database Pricing

> Returns managed database plans plus high availability, read replica, and extra storage pricing. High availability multiplies the plan price — an HA plan costs `price_per_month * (1 + price_multiplier)`.

<sub>Updated July 6, 2026</sub>


## OpenAPI

````yaml GET /api/v1/public/pricing/database
openapi: 3.0.3
info:
  title: Raff API
  description: >
    REST API for managing cloud infrastructure on Raff.


    ## Authentication

    Most endpoints require authentication via API key. Catalog endpoints under
    `/api/v1/public/` are open and require no authentication.


    ### API Key Authentication

    Include your API key in the `X-API-Key` header:
      ```
      curl -H "X-API-Key: YOUR_API_KEY" https://api.rafftechnologies.com/api/v1/vms
      ```

    ## Catalog

    Use the public catalog endpoints to discover available regions, OS
    templates, and pricing plans before creating resources:

    - `GET /api/v1/public/regions` — list available regions

    - `GET /api/v1/public/templates` — list OS templates (use the `id` as
    `template_id` when creating a VM)

    - `GET /api/v1/public/pricing/vm` — list VM pricing plans (use the `id` as
    `pricing_id` when creating a VM)

    - `GET /api/v1/public/pricing/volume` — volume storage pricing

    - `GET /api/v1/public/pricing/snapshot` — snapshot storage pricing

    - `GET /api/v1/public/pricing/backup` — backup storage pricing

    - `GET /api/v1/public/pricing/ip` — IP address pricing

    - `GET /api/v1/public/pricing/database` — managed database pricing (plans,
    high availability, read replicas, extra storage)

    - `GET /api/v1/public/pricing/kubernetes` — managed Kubernetes pricing
    (worker node plans, HA control plane, storage nodes)
  version: 1.0.0
  contact:
    name: Raff Technologies
    url: https://rafftechnologies.com
servers:
  - url: https://api.rafftechnologies.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Catalog
    description: >-
      Discover available regions, OS templates, and pricing plans. No
      authentication required.
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Organize resources into projects for billing and access control
  - name: Virtual Machines
  - name: Kubernetes
    description: >-
      Managed Kubernetes clusters — HA control planes, autoscaling node pools,
      kubeconfig access
  - name: Functions
    description: Deploy and manage serverless functions
  - name: Raff Apps
    description: >-
      Push-to-deploy web services, private services, workers, cron jobs, and
      one-off jobs on the Raff PaaS — with custom domains, environment
      variables, autoscaling, and per-second billing with spend caps
  - name: Managed Databases
    description: >-
      Fully managed PostgreSQL and Valkey databases with private VPC networking,
      automatic backups, and metrics
  - name: Networking
    description: >-
      Attach and detach VPCs, floating IPs, and security groups to VM network
      interfaces
  - name: Snapshots
    description: Point-in-time copies of VMs and volumes for quick rollback or cloning
  - name: Backups
    description: Scheduled and on-demand VM backups with restore capability
  - name: Backup Schedules
    description: Recurring daily or weekly backup schedules attached to a VM
  - name: SSH Keys
    description: Manage account-level SSH keys for VM provisioning
  - name: Members
    description: Account-level members — invite, list, update role, remove
  - name: Project Members
    description: Members of a specific project — same model as Members but project-scoped
  - name: Roles
    description: Custom roles bundling account or project permissions
  - name: Permissions
    description: List the catalog of permission strings used by roles
  - name: API Keys
    description: Create and manage API keys for programmatic access
  - name: Invitations
    description: Create and cancel email-based invitations to join the account or a project
paths:
  /api/v1/public/pricing/database:
    get:
      tags:
        - Catalog
      summary: List managed database pricing
      description: >-
        Returns managed database plans plus high availability, read replica, and
        extra storage pricing. High availability multiplies the plan price — an
        HA plan costs `price_per_month * (1 + price_multiplier)`.
      operationId: listDatabasePricing
      parameters:
        - name: engine
          in: query
          description: Filter by database engine
          schema:
            $ref: '#/components/schemas/DatabaseEngine'
      responses:
        '200':
          description: Managed database pricing
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  plans:
                    type: array
                    items:
                      $ref: '#/components/schemas/DatabasePricingPlan'
                  ha_pricing:
                    type: array
                    description: High availability pricing per engine
                    items:
                      $ref: '#/components/schemas/DatabaseHAPricing'
                  replica_pricing:
                    type: array
                    description: Read replica pricing per engine
                    items:
                      $ref: '#/components/schemas/DatabaseReplicaPricing'
                  storage_pricing:
                    type: array
                    description: Extra storage pricing per engine
                    items:
                      $ref: '#/components/schemas/DatabaseStoragePricing'
        '400':
          $ref: '#/components/responses/BadRequest'
      security: []
components:
  schemas:
    DatabaseEngine:
      type: string
      enum:
        - postgres
        - mysql
        - valkey
        - clickhouse
        - kafka
      description: >-
        Database engine identifier. Defaults to `postgres` on create; the live
        catalog (including availability and versions) is `GET
        /api/v1/databases/engines`.
      example: postgres
    DatabasePricingPlan:
      type: object
      required:
        - id
        - engine
        - name
        - vcpu
        - memory_gib
        - storage_gib
        - price_per_hour
        - price_per_month
        - region
      properties:
        id:
          type: integer
          description: Plan ID
          example: 5
        engine:
          $ref: '#/components/schemas/DatabaseEngine'
        name:
          type: string
          description: Plan name
          example: 1 vCPU
        vcpu:
          type: integer
          description: Number of vCPU cores
          example: 1
        memory_gib:
          type: integer
          description: RAM in GiB
          example: 1
        storage_gib:
          type: integer
          description: Included SSD storage in GiB
          example: 25
        price_per_hour:
          type: number
          description: Hourly price in USD
          example: 0.010945
        price_per_month:
          type: number
          description: Monthly price in USD
          example: 7.99
        region:
          type: string
          enum:
            - us-east
          description: Region this plan is available in
          example: us-east
        is_free_tier:
          type: boolean
          description: |
            Free plan — one per account, no HA or replicas, fixed storage,
            pauses after 7 idle days (resume keeps all data).
          example: false
        memory_mib:
          type: integer
          description: >-
            RAM override in MiB for sub-GiB plans (free Valkey = 512). 0 means
            `memory_gib` applies.
          example: 0
        max_connections:
          type: integer
          description: >-
            Client connection limit enforced by the engine. 0 means the engine
            default.
          example: 100
    DatabaseHAPricing:
      type: object
      description: >-
        High availability pricing for one engine. An HA plan costs
        `price_per_month * (1 + price_multiplier)`.
      properties:
        engine:
          $ref: '#/components/schemas/DatabaseEngine'
        price_multiplier:
          type: number
          description: Fraction of the plan price added for high availability
          example: 0.7
    DatabaseReplicaPricing:
      type: object
      description: Read replica pricing for one engine.
      properties:
        engine:
          $ref: '#/components/schemas/DatabaseEngine'
        price_multiplier:
          type: number
          description: Multiplier applied to the replica base price
          example: 1
        price_per_month:
          type: number
          description: Monthly price per read replica in USD
          example: 29.99
    DatabaseStoragePricing:
      type: object
      description: Extra storage pricing for one engine.
      properties:
        engine:
          $ref: '#/components/schemas/DatabaseEngine'
        price_per_gb_month:
          type: number
          description: Price per GB per month in USD
          example: 0.12
        min_gb:
          type: integer
          description: Minimum storage in GB
          example: 10
        max_gb:
          type: integer
          description: Maximum storage in GB
          example: 10000
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Each key is bound to a specific account.

````