{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-eu-ai-act-gpai-calc",
  "live_meta_url": "https://p2-eu-ai-act-gpai-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-eu-ai-act-gpai-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-eu-ai-act-gpai-calc.pages.dev/data/ai-act-conformity-and-fines.json",
    "https://p2-eu-ai-act-gpai-calc.pages.dev/data/gpai-flops-systemic-risk.json"
  ],
  "calculator_inputs_schema": {
    "operator_role": {
      "label": "EU AI Act Value-Chain Role (Art. 3 / Art. 25)",
      "type": "select",
      "default": "HIGH_RISK_ANNEX_III_PROVIDER",
      "options": [
        "GPAI_MODEL_PROVIDER",
        "DOWNSTREAM_FINE_TUNER_MODIFIER",
        "HIGH_RISK_ANNEX_III_PROVIDER",
        "ENTERPRISE_HIGH_RISK_DEPLOYER_FRIA"
      ]
    },
    "annex_iii_use_case": {
      "label": "AI System Domain / Risk Tier",
      "type": "select",
      "default": "ANNEX_III_4_HR_RECRUITMENT_WORKERS",
      "options": [
        "ANNEX_III_4_HR_RECRUITMENT_WORKERS",
        "ANNEX_III_5_CREDIT_SCORING_INSURANCE",
        "ANNEX_III_1_BIOMETRIC_ID_NOTIFIED_BODY",
        "ANNEX_I_MEDICAL_SAFETY_COMPONENT",
        "LIMITED_RISK_ART_50_TRANSPARENCY",
        "PROHIBITED_ART_5_SUBLIMINAL_SOCIAL_SCORING"
      ]
    },
    "base_model_reference": {
      "label": "Foundation Model Baseline (Live Epoch AI + OpenRouter Catalog)",
      "type": "select",
      "default": "Frontier Dense / MoE Model Lookup"
    },
    "active_params_billions": {
      "label": "Active Parameters per Forward Pass N_active (Billions — MoE active vs Dense total)",
      "type": "number",
      "default": 70,
      "min": 0.1,
      "max": 5000
    },
    "pretrain_tokens_trillions": {
      "label": "Pre-Training Corpus Tokens D_pre (Trillions, or Inherited from Base Model)",
      "type": "number",
      "default": 15,
      "min": 0,
      "max": 100
    },
    "finetune_tokens_billions": {
      "label": "Domain Fine-Tuning / RLHF Post-Training Tokens D_ft (Billions)",
      "type": "number",
      "default": 50,
      "min": 0,
      "max": 5000
    },
    "open_source_license_exemption": {
      "label": "Released Under Free & Open-Source License (Art. 53(2) Exemption Check — Void if Systemic Risk >= 10^25 FLOPs!)",
      "type": "boolean",
      "default": false
    },
    "enterprise_size_tier": {
      "label": "Undertaking Size Class (Art. 99(6) SME 'Lower-Of' Cap Check)",
      "type": "select",
      "default": "SME_OR_STARTUP_LT_250_LE_50M_EUR",
      "options": [
        "SME_OR_STARTUP_LT_250_LE_50M_EUR",
        "LARGE_ENTERPRISE_STANDARD_HIGHER_OF"
      ]
    },
    "global_annual_turnover_ccy": {
      "label": "Global Annual Undertaking Turnover",
      "type": "number",
      "default": 28000000,
      "min": 100000,
      "max": 500000000000
    },
    "reporting_currency": {
      "label": "Reporting Currency",
      "type": "select",
      "default": "USD",
      "options": [
        "USD",
        "EUR",
        "GBP",
        "CHF",
        "CAD",
        "JPY"
      ]
    },
    "monthly_production_inferences_millions": {
      "label": "Monthly EU Production Inferences (Millions — sizes Art. 126-month immutable audit logging)",
      "type": "number",
      "default": 15,
      "min": 0.1,
      "max": 100000
    }
  },
  "formulas_summary": {
    "cumulative_training_flops": "FLOPs_pre = 6 * (active_params_billions * 1e9) * (pretrain_tokens_trillions * 1e12); FLOPs_ft = 6 * (active_params_billions * 1e9) * (finetune_tokens_billions * 1e9); FLOPs_total = FLOPs_pre + FLOPs_ft",
    "art51_systemic_risk_flag": "is_Systemic_GPAI = (FLOPs_total >= 1e25); Ratio_to_Threshold = FLOPs_total / 1e25 (if true, voids Art. 53(2) open-source exemption and mandates Art. 55 adversarial red-teaming, incident reporting & cybersecurity)",
    "art99_statutory_fine_cap_eur": "For tier (Cap_Fixed_EUR, Pct_Turnover): Cap_EUR = min(Cap_Fixed_EUR, Pct_Turnover * Turnover_EUR) if SME_OR_STARTUP else max(Cap_Fixed_EUR, Pct_Turnover * Turnover_EUR)",
    "conformity_and_qms_tco_usd": "Cost_Conformity_USD = (Annex_IV_TechDoc_Eng_Hours * Live_Loaded_ICT_Hr_EUR + (Notified_Body_Annex_VII_Audit_EUR if Biometric_or_Annex_I else Internal_Control_Annex_VI_EUR) + EU_Database_Reg_and_FRIA_EUR + RedTeaming_Eval_Compute_EUR) * FX_USD_per_EUR + Art12_Immutable_Log_Storage_USD"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-eu-ai-act-gpai-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "eu_ai_act_gpai_flops_dataset",
      "name": "EU AI Act GPAI FLOPs & Penalty Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    },
    {
      "sku_key": "ai_governance_pro_license",
      "name": "AI Governance Pro Classifier & GPAI Key",
      "price_usd": null,
      "billing": "month",
      "checkout_url": ""
    },
    {
      "sku_key": "general_counsel_cto_ai_act_pack",
      "name": "GC & CTO EU AI Act Annex IV & FRIA 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"
    }
  }
}