---
title: "Get Pricing Prediction"
method: GET
path: "/api/v1/admin/parts/{part_id}/pricing-prediction"
tags: ["admin-dfm"]
---

# Get Pricing Prediction

`GET /api/v1/admin/parts/{part_id}/pricing-prediction`

Return Track A + Track B pricing prediction for a part at given quantity.

Track A is the deterministic cost-floor output from
``calculate_cost`` (unit_price + breakdown).

Track B is the empirical predictor — populated when the
(process, complexity, qty) bucket has ``sample_size >= 3`` calibration
samples. Returns ``None`` for cold-start buckets (Phase 2 wires
`track_b` onto the cost preview response).

Read-only: ``preview=True`` takes the cost-preview branch which never
persists anything. Auth: ``projects:view``.

## Path parameters

- `part_id` string, uuid, required

## Query parameters

- `quantity` integer — Order quantity

## Response `200`

Successful Response

- CostPreviewResponse — Lightweight cost/lead-time preview returned when preview=true. All fields are nullable so the frontend can render a skeleton or placeholder when geometry or process is not yet available.
  - `unit_price_low` number, nullable
  - `unit_price_mid` number, nullable
  - `unit_price_high` number, nullable
  - `lead_time_days` integer, nullable
  - `lead_time_options` object, nullable
  - `message` string, nullable
  - `track_b` TrackBPrediction — Predicted admin unit price + confidence, attached to calculate_cost output. Phase 1 only ships the schema; Phase 2 wires it into the response chain.
    - `predicted_unit` number, required — Track A unit price * median uplift
    - `predicted_low` number, required — Track A unit price * q1 uplift
    - `predicted_high` number, required — Track A unit price * q3 uplift
    - `median_uplift` number, required
    - `sample_size` integer, required
    - `confidence` string, required
    - `calibration_source` object, required — Bucket key (process, complexity, qty) + last_updated_at
  - `pricing_operations_source` 'legacy_summary' | 'projection_v2'

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/prototyping/apis/prototyping-io-api.md) · [All operations](https://skmtc.dev/prototyping/apis/prototyping-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prototyping/prototyping-io-api/revisions/f4a0079fbb57/schema)
