CostKits Cost Estimation API

The Cost Estimation API from CostKits — 3 operation(s) for cost estimation.

GitHub OpenAPI

Operations 3

POST /v1/estimate/procedure Estimate Procedure Cost #
POST /v1/estimate/liability Patient Liability Calculator #
POST /v1/estimate/full Full Estimate (All Services) #

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/costkits-com:costkits-com-cost-estimation-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

costkits-com-cost-estimation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CostKits Cost Estimation API
  description: Actuarial-grade healthcare cost intelligence. Estimate procedure costs, find providers with real pricing data, explain insurance coverage rules, and detect medical billing anomalies across all 50 US states.
  version: 1.0.0
  contact:
    email: api@costkits.com
    url: https://www.costkits.com
  license:
    name: MIT
    url: https://github.com/costkits/costkits-api/blob/main/LICENSE
servers:
- url: https://api.costkits.com
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Cost Estimation
paths:
  /v1/estimate/procedure:
    post:
      summary: Estimate Procedure Cost
      description: Returns allowed amount range, patient out-of-pocket, billing components, and risk flags for a procedure in a given US state. Pass insurance plan details for actuarial liability calculation.
      operationId: estimateProcedure
      tags:
      - Cost Estimation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - procedure
              - location
              properties:
                procedure:
                  type: object
                  required:
                  - type
                  properties:
                    type:
                      type: string
                      example: colonoscopy
                location:
                  type: object
                  required:
                  - state
                  properties:
                    state:
                      type: string
                      example: CT
                    zip_code:
                      type: string
                      example: '06510'
                insurance:
                  type: object
                  properties:
                    plan_type:
                      type: string
                      enum:
                      - commercial
                      - medicare
                      - medicaid
                      example: commercial
                    deductible_remaining:
                      type: number
                      example: 500
                    coinsurance_pct:
                      type: number
                      example: 20
                    oop_remaining:
                      type: number
                      example: 2000
            example:
              procedure:
                type: colonoscopy
              location:
                state: CT
                zip_code: '06510'
              insurance:
                plan_type: commercial
                deductible_remaining: 500
                coinsurance_pct: 20
                oop_remaining: 2000
      responses:
        '200':
          description: Cost estimate
          content:
            application/json:
              example:
                procedure: Colonoscopy
                procedure_slug: colonoscopy
                state: Connecticut
                estimated_total_allowed_amount:
                  low: 800
                  median: 1800
                  high: 4500
                  source: hospital_transparency + cms_medicare_rates
                percentiles:
                  p25: 800
                  p50: 1800
                  p75: 4500
                pricing_basis: estimated
                estimated_patient_responsibility:
                  low: 0
                  median: 360
                  high: 1800
                billing_components:
                - type: facility_fee
                  expected_range:
                  - 464
                  - 2610
                  source: costkits_bundle_model_v1
                - type: physician_fee
                  expected_range:
                  - 176
                  - 990
                  source: costkits_bundle_model_v1
                - type: anesthesia
                  expected_range:
                  - 80
                  - 450
                  source: costkits_bundle_model_v1
                - type: pathology
                  expected_range:
                  - 48
                  - 270
                  source: costkits_bundle_model_v1
                risk_flags:
                - type: polyp_found
                  description: Screening colonoscopy may be reclassified as diagnostic, triggering cost-sharing
                confidence_score: 0.75
                data_sources:
                - hospital_transparency
                - cms_medicare_rates
                - costkits_bundle_model_v1
                data_vintage: 2026-Q1
                model_version: v1.0
        '404':
          description: Procedure or state not found
  /v1/estimate/liability:
    post:
      summary: Patient Liability Calculator
      description: Stateless insurance calculator. Given an allowed amount and plan details (deductible, coinsurance, OOP max), returns exact patient responsibility, plan payment, and a full breakdown. Also returns lower and higher cost scenarios.
      operationId: estimateLiability
      tags:
      - Cost Estimation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - allowed_amount
              - plan
              properties:
                allowed_amount:
                  type: number
                  example: 1800
                plan:
                  type: object
                  required:
                  - deductible
                  - coinsurance
                  - oop_max
                  properties:
                    deductible:
                      type: number
                      example: 1000
                    deductible_met:
                      type: number
                      example: 500
                    coinsurance:
                      type: number
                      example: 0.2
                    oop_max:
                      type: number
                      example: 5000
                    oop_met:
                      type: number
                      example: 0
                    copay:
                      type: number
                    family_deductible:
                      type: number
                    family_deductible_met:
                      type: number
                    family_oop_max:
                      type: number
                    family_oop_met:
                      type: number
                    preventive_exception:
                      type: boolean
                      example: false
            example:
              allowed_amount: 1800
              plan:
                deductible: 1000
                deductible_met: 500
                coinsurance: 0.2
                oop_max: 5000
                oop_met: 0
      responses:
        '200':
          description: Liability calculation
          content:
            application/json:
              example:
                allowed_amount: 1800
                patient_responsibility: 560
                plan_payment: 1240
                breakdown:
                  deductible_applied: 500
                  coinsurance_applied: 60
                  copay_applied: 0
                  oop_cap_savings: 0
                scenarios:
                - label: lower_estimate_p25
                  allowed_amount: 1440
                  patient_responsibility: 488
                - label: higher_estimate_p75
                  allowed_amount: 2160
                  patient_responsibility: 632
                data_vintage: 2026-Q1
                model_version: v1.0
  /v1/estimate/full:
    post:
      summary: Full Estimate (All Services)
      description: Single call chaining ontology + cost + providers + liability. Use the fields parameter to request only a subset and reduce latency.
      operationId: estimateFull
      tags:
      - Cost Estimation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - procedure
              - location
              properties:
                procedure:
                  type: object
                  required:
                  - type
                  properties:
                    type:
                      type: string
                      example: colonoscopy
                location:
                  type: object
                  required:
                  - state
                  properties:
                    state:
                      type: string
                      example: CT
                fields:
                  type: array
                  items:
                    type: string
                    enum:
                    - procedure
                    - cost
                    - providers
                    - liability
                  example:
                  - procedure
                  - cost
                  - providers
                  - liability
                plan:
                  type: object
                  properties:
                    deductible:
                      type: number
                    deductible_met:
                      type: number
                    coinsurance:
                      type: number
                    oop_max:
                      type: number
                    oop_met:
                      type: number
            example:
              procedure:
                type: colonoscopy
              location:
                state: CT
              fields:
              - procedure
              - cost
              - providers
              - liability
              plan:
                deductible: 1000
                deductible_met: 500
                coinsurance: 0.2
                oop_max: 5000
                oop_met: 0
      responses:
        '200':
          description: Full estimate combining all four services
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Bearer token: Authorization: Bearer YOUR_API_KEY'
externalDocs:
  description: CostKits API documentation
  url: https://www.costkits.com/api/