Krobar.ai Distributions API

Endpoints for working with probability distributions

GitHub OpenAPI

Operations 3

GET /distributions List Distributions #
POST /distributions/find_parameters_from_range Solve Distributions #
POST /distributions/find_range_from_parameters Calculate Distribution Range #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/krobar-ai:krobar-ai-distributions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

krobar-ai-distributions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Krobar AI Distributions API
  description: '# API Krobar AI


    Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai


    ## Authentication

    **IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.


    ```bash

    curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint

    ```'
  contact:
    name: API Support
    email: tristan@kromatic.com
  version: 1.0.0
tags:
- name: Distributions
  description: Endpoints for working with probability distributions
paths:
  /distributions:
    get:
      tags:
      - Distributions
      summary: List Distributions
      description: List all available probability distributions and their parameters.
      operationId: list_distributions_distributions_get
      responses:
        '200':
          description: List of all available distributions with their parameters and descriptions
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Distributions Distributions Get
  /distributions/find_parameters_from_range:
    post:
      tags:
      - Distributions
      summary: Solve Distributions
      description: Solve for distribution parameters based on known value ranges.
      operationId: solve_distributions_distributions_find_parameters_from_range_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                type: array
                items:
                  $ref: '#/components/schemas/DistributionSolverRequest'
              examples:
                normal_and_triangle:
                  summary: Normal and triangle distributions
                  description: Calculate parameters for normal and triangle distributions
                  value:
                    requests:
                    - distribution_type: normal
                      min_estimate: 50
                      max_estimate: 150
                      percentile_range: 90
                    - distribution_type: triangle
                      min_estimate: 10
                      max_estimate: 90
                      mode_estimate: 50
                      percentile_range: 95
              title: Request
      responses:
        '200':
          description: Calculated distribution parameters for each request
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /distributions/find_range_from_parameters:
    post:
      tags:
      - Distributions
      summary: Calculate Distribution Range
      description: Fit a probability distribution to a dataset.
      operationId: calculate_distribution_range_distributions_find_range_from_parameters_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                type: array
                items:
                  $ref: '#/components/schemas/DistributionRangeRequest'
              examples:
                normal_and_uniform:
                  summary: Normal and uniform distributions
                  description: Calculate min/max values for normal and uniform distributions
                  value:
                    requests:
                    - distribution_type: normal
                      parameters:
                        mean: 50
                        std: 10
                      percentile_range: 90
                    - distribution_type: uniform
                      parameters:
                        low: 0
                        high: 100
                      percentile_range: 95
                triangle_and_beta:
                  summary: Triangle and beta distributions
                  description: Calculate min/max values for triangle and beta distributions
                  value:
                    requests:
                    - distribution_type: triangle
                      parameters:
                        min_val: 0
                        max_val: 100
                        mode_val: 50
                      percentile_range: 90
                    - distribution_type: beta
                      parameters:
                        alpha: 2.5
                        beta: 2.5
                      percentile_range: 90
              title: Request
      responses:
        '200':
          description: Calculated min/max values for each distribution request
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DistributionSolverRequest:
      properties:
        distribution_type:
          type: string
          title: Distribution Type
        min_estimate:
          type: number
          title: Min Estimate
        max_estimate:
          type: number
          title: Max Estimate
        percentile_range:
          type: number
          title: Percentile Range
        mode_estimate:
          anyOf:
          - type: number
          - type: 'null'
          title: Mode Estimate
      type: object
      required:
      - distribution_type
      - min_estimate
      - max_estimate
      - percentile_range
      title: DistributionSolverRequest
      description: Request for solving distribution parameters from min/max values.
    DistributionRangeRequest:
      properties:
        distribution_type:
          type: string
          title: Distribution Type
        parameters:
          additionalProperties:
            anyOf:
            - type: number
            - items:
                type: number
              type: array
          type: object
          title: Parameters
        percentile_range:
          type: number
          title: Percentile Range
      type: object
      required:
      - distribution_type
      - parameters
      - percentile_range
      title: DistributionRangeRequest
      description: Request for calculating the range of values for a distribution.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: access_token
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key