{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-pharma-cmo-api-calc",
  "live_meta_url": "https://p2-pharma-cmo-api-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-pharma-cmo-api-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-pharma-cmo-api-calc.pages.dev/data/openfda-ndc-and-tariffs.json",
    "https://p2-pharma-cmo-api-calc.pages.dev/data/pharma-cdmo-cogs-matrix.json"
  ],
  "calculator_inputs_schema": {
    "drug_modality": {
      "label": "Manufacturing Modality & Dosage Form",
      "type": "select",
      "default": "LYOPHILIZED_BIOLOGIC_VIAL",
      "options": [
        "STERILE_LIQUID_VIAL_2R_10R",
        "LYOPHILIZED_BIOLOGIC_VIAL",
        "PREFILLED_SYRINGE_AUTOINJECTOR_PFS",
        "MAB_2000L_SINGLE_USE_BIOREACTOR_DS_PLUS_DP",
        "ORAL_SOLID_DOSE_TABLET_CAPSULE_OSD"
      ]
    },
    "fda_regulatory_fee_regime": {
      "label": "FDA User-Fee Regime",
      "type": "select",
      "default": "GDUFA_III_ANDA_GENERIC_PLUS_DMF",
      "options": [
        "PDUFA_VII_NDA_BLA_CLINICAL",
        "PDUFA_VII_FIRST_APPLICATION_SMALL_BIZ_WAIVER",
        "GDUFA_III_ANDA_GENERIC_PLUS_DMF",
        "BSUFA_III_BIOSIMILAR_351K"
      ]
    },
    "cdmo_corridor": {
      "label": "CDMO / API Sourcing Corridor (Live FX & C21 PPI Adjusted)",
      "type": "select",
      "default": "ITALY_GERMANY_IRELAND_EU_CDMO",
      "options": [
        "US_DOMESTIC_CDMO",
        "ITALY_GERMANY_IRELAND_EU_CDMO",
        "SWITZERLAND_BASEL_BIOLOGICS",
        "SOUTH_KOREA_SONGDO_MAB",
        "INDIA_HYDERABAD_API_OSD",
        "CHINA_SUZHOU_INTERMEDIATES"
      ]
    },
    "annual_demand_units": {
      "label": "Annual Commercial / Clinical Demand (Finished Vials, Syringes, or 1,000-Tablet Bottles)",
      "type": "number",
      "default": 120000,
      "min": 1000,
      "max": 50000000
    },
    "target_batch_size_units": {
      "label": "Target Fill-Finish / Compression Lot Size (Units / Batch)",
      "type": "number",
      "default": 30000,
      "min": 500,
      "max": 2000000
    },
    "label_claim_mg_per_unit": {
      "label": "Label-Claim Active Ingredient per Unit (mg / vial, syringe, or tablet)",
      "type": "number",
      "default": 100,
      "min": 0.05,
      "max": 2000
    },
    "api_cost_usd_per_gram": {
      "label": "cGMP Drug Substance (API / Bulk mAb) Cost (USD / gram — e.g. $0.40 OSD to $850 ADC/Peptide)",
      "type": "number",
      "default": 42,
      "min": 0.05,
      "max": 25000
    },
    "usp_overfill_plus_line_loss_pct": {
      "label": "USP <1151> Extractable-Volume Overfill + Dead-Volume Filtration Loss (%)",
      "type": "number",
      "default": 11.5,
      "min": 1,
      "max": 35
    },
    "lyo_residence_hours": {
      "label": "Lyophilizer Shelf Residence Time per Cycle (Hours, 0 for liquid/OSD)",
      "type": "number",
      "default": 72,
      "min": 0,
      "max": 168
    },
    "oos_batch_rejection_rate_pct": {
      "label": "Expected Out-of-Specification (OOS) / Media-Fill Deviation Write-Off Rate (%)",
      "type": "number",
      "default": 2.5,
      "min": 0,
      "max": 15
    }
  },
  "formulas_summary": {
    "batches_per_year": "N_batches = ceil(annual_demand_units / target_batch_size_units)",
    "gross_api_grams_per_batch": "Grams_API_batch = (target_batch_size_units * (label_claim_mg_per_unit / 1000)) / (1 - usp_overfill_plus_line_loss_pct / 100)",
    "api_cost_with_duty_batch": "Cost_API_batch = Grams_API_batch * api_cost_usd_per_gram * (1 + Tariff_Ch29_30_Rate(cdmo_corridor))",
    "cdmo_conversion_and_lyo_batch": "Cost_CDMO_Suite_batch = (Base_Fill_Suite_Setup_USD + target_batch_size_units * Primary_Container_Stopper_Vial_PFS_USD + lyo_residence_hours * Lyo_Shelf_Hourly_USD) * Corridor_FX_PPI_Factor(cdmo_corridor)",
    "qa_qc_release_and_stability_batch": "Cost_QC_batch = Fixed_Lot_Release_Sterility_Endotoxin_HPLC_USD(drug_modality)",
    "risk_adjusted_batch_cost": "Cost_Batch_Total = (Cost_API_batch + Cost_CDMO_Suite_batch + Cost_QC_batch) / (1 - oos_batch_rejection_rate_pct / 100)",
    "amortized_fda_user_fees_yr": "Fee_FDA_Annual = OneTime_Application_Fee_Amort_5yr(fda_regulatory_fee_regime) + Annual_Program_or_GDUFA_Facility_Fee(fda_regulatory_fee_regime, cdmo_corridor)",
    "fully_loaded_unit_cogs_usd": "COGS_per_unit = (N_batches * Cost_Batch_Total + Tech_Transfer_Validation_Amort_yr + Fee_FDA_Annual) / annual_demand_units"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-pharma-cmo-api-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "pharma_cdmo_cogs_dataset",
      "name": "Biopharma CDMO C21 & HS 29/30 API Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    },
    {
      "sku_key": "cmc_techops_pro_license",
      "name": "CMC TechOps Pro BOM & Quote Auditor Key",
      "price_usd": null,
      "billing": "month",
      "checkout_url": ""
    },
    {
      "sku_key": "vp_cmc_tech_transfer_pack",
      "name": "VP CMC & Supply-Chain Tech-Transfer Pack",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    }
  ],
  "master_all_portals_pass": {
    "master_all_portals_pro_monthly": {
      "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
      "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
      "price_usd": 79,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
    },
    "enterprise_annual_data_pass": {
      "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
      "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
      "price_usd": 499,
      "billing": "yearly",
      "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
    }
  }
}