Prediction

This endpoint enables users to interact with Bespokify's prediction engine. By using this system, users are able to complete full measurement sets from basic inputs (height, weight, and gender).

Though predicted measurements can be generated from just a few data points, they become more accurate when more user-submitted (input) measurements are provided. In this way, a full set of predicted measurements is made up of input measurements (from the user) and system-calculated measurements.

Predict body measurements

This returns the set of predicted body measurements based on a set of input measurements. Input measurements will also appear as part of the API Response.

API Request

POST https://api.bespokify.com/v2/predict/body

Request parameters

Parameter Type Required Description
gender string yes Possible values: male, female
measurements object yes The input measurements
bodyShapes object no The body shapes

Example request

{
  "gender": "male",
  "measurements": {
    "mbHeight": 180,
    "mbWeight": 67
  },
  "bodyShapes": {
    "posture": "veryCurved"
  }
}

Response parameters

Parameter Type Description
measurements object The predicted measurements

Example response

{
  "measurements": {
    "mbHeight": 180,
    "mbWeight": 67,
    "mbCollarGirth": 39.17,
    "mbMidNeckGirth": 36.17,
    "mbBustGirth": 94.91,
    "mbBustHeight": 131.69,
    "mbWaistGirth": 77.61,
    "mbWaistHeight": 115.43,
    "mbHighHipGirth": 90.36,
    "mbHighHipHeight": 99.7,
    "mbLowHipGirth": 94.91,
    "mbLowHipHeight": 92.44,
    "mbAcromionShoulderWidth": 41.29,
    "mbAcromionShoulderWidthHorizontal": 40.29,
    "mbSleeveShoulderWidth": 45.29,
    "mbSleeveShoulderWidthHorizontal": 44.29,
    "mbShoulderLength": 13.89,
    "mbAcrossBackWidth": 39.55,
    "mbAcrossChestWidth": 35.53,
    "mbSideNeckToBustPoint": 26.41,
    "mbSideArmLength": 60.14,
    "mbSleeveLength": 65.14,
    "mbBicepGirth": 29.82,
    "mbElbowGirth": 24.53,
    "mbForearmGirth": 24.54,
    "mbWristGirth": 16.58,
    "mbSideNeckToWaist": 42.67,
    "mbBackNeckToWaist": 40.28,
    "mbShoulderPeakToWaistOverBack": 42.28,
    "mbSideNeckToLowHip": 64.66,
    "mbBackNeckToLowHip": 62.28,
    "mbShoulderPeakToLowHipOverBack": 64.28,
    "mbSideNeckToKnee": 107.39,
    "mbBackNeckToKnee": 105,
    "mbShoulderPeakToKneeOverBack": 107,
    "mbThighGirth": 55.34,
    "mbThighHeight": 79.59,
    "mbKneeGirth": 37.02,
    "mbKneeHeight": 50.71,
    "mbCalfGirth": 35.35,
    "mbCalfHeight": 35.74,
    "mbAnkleGirth": 27.07,
    "mbAnkleHeight": 7.89,
    "mbBackNeckHeight": 155.72,
    "mbFrontNeckHeight": 146.74,
    "mbCrotchHeight": 83.1,
    "mbWaistbandLowRiseGirth": 84.62,
    "mbWaistbandRegRiseGirth": 83.62,
    "mbWaistbandMidRiseGirth": 82.62,
    "mbWaistbandLowRiseHeight": 102.41,
    "mbWaistbandRegRiseHeight": 103.91,
    "mbWaistbandMidRiseHeight": 105.41,
    "mbWaistbandLowRiseCrotchLength": 59.63,
    "mbWaistbandRegRiseCrotchLength": 62.63,
    "mbWaistbandMidRiseCrotchLength": 65.63,
    "mbNavelWaistGirth": 81.11,
    "mbMaxHipGirth": 95.99
  }
}

As you can see, the input measurements of mbHeight and mbWeight from the request appear in the response. The same will occur for any input measurements submitted in the request. They will not be overwritten by the predictor.

Predict scan measurements

Our API is also able to make measurement predictions from 3D body scans. We support several 3D scan types. Each one of these has different data formats and conversion algorithm. Please contact us if you need more information.

API Request

POST https://api.bespokify.com/v2/predict/scan

Request parameters

Parameter Type Required Description
source string yes The source
content object yes The scan content
{
  "source": "scanSource",
  "content": {
    "gender": "male",
    "scanHeight": 185,
    "scanWeight": 65
  }
}

Get a prediction

The ID comes from Batch API.

API Request

GET https://api.bespokify.com/v2/predictions/{id}

Response

The response is the same as the one from Predict body measurements or Predict scan measurements.