Leap Laboratories Estimate API

The estimate API from Leap Laboratories — 1 operation(s) for estimate.

GitHub OpenAPI

Operations 1

POST /api/estimate Estimate credit cost for an analysis #

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/leap-labs-com:leap-labs-com-estimate-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

leap-labs-com-estimate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Disco Estimate API
  description: 'Disco finds novel, statistically validated patterns in tabular data that correlation analysis, LLMs, and hypothesis-driven approaches miss. Each pattern is validated on hold-out data with FDR-corrected p-values and checked against academic literature with citations.


    ## Agent workflow


    **Step 1 — Get an API key** (once):

    - `POST /api/signup` with `{"email": "..."}` → sends a 6-digit code

    - `POST /api/signup/verify` with `{"email": "...", "code": "..."}` → returns `{"key": "disco_..."}`

    - Use this key as `Authorization: Bearer disco_...` for all subsequent requests


    **Step 2 — Estimate cost** (optional but recommended):

    - `POST /api/estimate` with file size, column count, depth, visibility

    - Returns credit cost and time estimate


    **Step 3 — Upload data** (pick one):

    - *From URL:* `POST /api/data/upload/from-url` with `{"url": "https://..."}` → returns `file` and `columns`

    - *Direct (base64):* `POST /api/data/upload/direct` with `{"fileName": "data.csv", "content": ""}` → returns `file` and `columns`. Max 50MB.

    - *Presign flow (for large files):* `POST /api/data/upload/presign` → PUT file to `uploadUrl` → `POST /api/data/upload/finalize`


    **Step 4 — Run analysis:**

    - `POST /api/run-analysis` with `file`, `columns`, and `targetColumn` from step 3 → returns `{"run_id": "..."}`


    **Step 5 — Poll for results:**

    - `GET /api/runs/{run_id}/results` — poll every 10s until `status` is `"completed"` (time varies with dataset size and depth)

    - Response includes `patterns[]` with conditions, p-values, effect sizes, novelty scores, and citations


    ## Billing


    Public runs are free. If the user needs more credits or a paid plan, send them to https://disco.leap-labs.com/account to upgrade.


    ## Authentication


    `disco_` API keys via `Authorization: Bearer disco_...` header. Get a key via signup or at https://disco.leap-labs.com/developers.


    ## SDK


    `pip install discovery-engine-api` — Full docs'
  version: 1.0.0
servers:
- url: https://disco.leap-labs.com
tags:
- name: estimate
paths:
  /api/estimate:
    post:
      tags:
      - estimate
      summary: Estimate credit cost for an analysis
      description: Estimate the credit cost of an analysis before running it. Returns cost, limits, and (if authenticated) whether you have sufficient credits. No auth required.
      operationId: estimate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EstimateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EstimateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EstimateLimits:
      properties:
        max_file_size_mb:
          type: integer
          title: Max File Size Mb
          description: Maximum file size in megabytes
        max_analysis_depth:
          type: integer
          title: Max Analysis Depth
          description: Maximum depth iterations for this dataset
        supported_formats:
          items:
            type: string
          type: array
          title: Supported Formats
          description: Supported file formats
      type: object
      required:
      - max_file_size_mb
      - max_analysis_depth
      - supported_formats
      title: EstimateLimits
    EstimateResponse:
      properties:
        cost:
          $ref: '#/components/schemas/EstimateCost'
        limits:
          $ref: '#/components/schemas/EstimateLimits'
        account:
          anyOf:
          - $ref: '#/components/schemas/EstimateAccount'
          - type: 'null'
          description: Account info (only present when authenticated)
      type: object
      required:
      - cost
      - limits
      title: EstimateResponse
    EstimateAccount:
      properties:
        available_credits:
          type: integer
          title: Available Credits
          description: Credits currently available
        sufficient:
          type: boolean
          title: Sufficient
          description: Whether available credits cover the estimated cost
      type: object
      required:
      - available_credits
      - sufficient
      title: EstimateAccount
    EstimateCost:
      properties:
        credits:
          type: integer
          title: Credits
          description: Credit cost for this analysis (0 for public runs)
        price_usd:
          type: number
          title: Price Usd
          description: Cost in USD
        free_alternative:
          type: boolean
          title: Free Alternative
          description: Whether a free public alternative exists
        free_alternative_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Free Alternative Note
          description: Explanation of the free alternative
      type: object
      required:
      - credits
      - price_usd
      - free_alternative
      - free_alternative_note
      title: EstimateCost
    EstimateRequest:
      properties:
        file_size_mb:
          type: number
          exclusiveMinimum: 0
          title: File Size Mb
          description: File size in megabytes
        num_columns:
          type: integer
          exclusiveMinimum: 0
          title: Num Columns
          description: Number of columns in the dataset
        analysis_depth:
          type: integer
          minimum: 1
          title: Analysis Depth
          description: Depth iterations (higher=deeper)
          default: 2
        visibility:
          type: string
          pattern: ^(public|private)$
          title: Visibility
          description: public (free) or private (costs credits)
          default: public
        use_llms:
          type: boolean
          title: Use Llms
          description: Slower and more expensive (5x credit multiplier), but you get smarter pre-processing, literature context and novelty assessment. Public runs always use LLMs regardless of this setting.
          default: false
      type: object
      required:
      - file_size_mb
      - num_columns
      title: EstimateRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError