Price
Predict

Predict

Predict the pricing of a product based on specified attributes.

POST
/price/predict

Example

cURL
curl --request POST \
  --url https://api.bencha.io/v1/price/predict \
  --header 'Authorization: Bearer {api_key}' \
  --header 'content-type: application/json' \
  --data '{
    "query": {
      "brand": "newbie",
      "category": "tops",
      "target": "mixed"
    }
  }'

Body

JSON

Query attributes

FieldTypeRequiredDefaultDescription
brandstringNo-Brand name or identifier
categorystringNo-Category name or identifier
material[string]No-The condition of the product.
conditionstringNo-The condition of the product.
demographystringNo-The targeted demographic.
targetstringNo-The pricing target.
methodstringNo-The pricing method used.
statusstringNo-The listing status of the item.
referencestringNo-Optional ID or label used to link a related item from any system.
Brand and category

If an identifier is provided for the brand or category, it will be used directly in the prediction. If not, the API will perform a search based on the provided brand or category name through the /search/brands or /search/categories endpoints.

Material

Defines the composition or fabric type of the item. Each material affects the product’s perceived quality, durability, and price estimation.

💡

The order of materials in the material array is important — list materials from the most dominant or primary component to the least significant one.

For best accuracy, generally provide at most one or two materials in the query.

MaterialDescription
acetateSmooth, shiny synthetic fiber often used in linings.
acrylicSynthetic fiber resembling wool, lightweight and warm.
amberFossilized tree resin used as gemstone.
bambooSustainable natural fiber, soft and breathable.
brassYellowish metal alloy of copper and zinc.
bronzeBrownish metal alloy of copper and tin.
cast_ironHeavy, durable iron alloy.
ceramicHard, non-metallic material fired for strength.
copperReddish-brown metal with decorative appeal.
corduroyRibbed cotton or blended fabric.
cottonBreathable and versatile natural fiber.
cotton_organicEco-friendly cotton grown without synthetic chemicals.
crochetOpen-textured material made with looped yarn.
crystalTransparent, cut glass or mineral.
cuproRegenerated cellulose fiber similar to silk.
denimDurable cotton twill fabric, typically blue.
downSoft feathers used for insulation.
elastaneSynthetic fiber with excellent elasticity (e.g., spandex).
feather_ostrichDecorative plume from ostrich feathers.
fleeceSoft, warm synthetic fabric.
frotteFabric with looped piles, such as terrycloth.
faux_furSynthetic imitation of animal fur.
faux_leatherArtificial alternative to real leather.
faux_suedeSynthetic imitation of suede leather.
furNatural animal fur material.
fur_foxDense, warm fur from foxes.
fur_minkLuxurious, silky fur from mink.
fur_rabbitSoft fur from rabbits, lightweight.
glassTransparent or translucent hard material.
goldPrecious metal valued for color and luster.
gold_platedBase metal coated with a thin layer of gold.
gold_roseAlloy of gold with a reddish hue.
gold_whiteAlloy of gold with a silvery tone.
gore_texWaterproof, breathable fabric for performance wear.
hempStrong natural fiber with eco-friendly properties.
ironStrong, magnetic metal used structurally or decoratively.
jadeHard green gemstone.
knitFabric made with interlaced yarns, providing stretch.
laceOpenwork fabric created from thread.
leatherDurable natural material made from animal hide.
linenNatural fiber made from flax, breathable and lightweight.
lyocellSustainable cellulose-based fiber, smooth and breathable.
marbleNatural stone with characteristic veining, used as a decorative surface.
metalGeneral metallic composition used in hardware or structure.
micro_modalUltra-soft variant of modal fiber.
modalCellulose fiber known for softness and moisture absorption.
nylonSynthetic fiber known for its toughness, elasticity, and resistance to wear.
palladiumRare precious metal, silvery in color.
pearlNatural or cultured formation used in jewelry.
plasticLightweight synthetic material used in hardware or accessories.
platinumPrecious silver-white metal used in fine jewelry.
plexiglasTransparent acrylic plastic.
polyesterWidely-used synthetic fiber, durable and wrinkle-resistant.
polyamideDurable synthetic fabric with elasticity (e.g., nylon).
polyurethaneFlexible polymer material used in coatings and imitation leathers.
porcelainFine ceramic material used for decorative or functional items.
rubberElastic natural or synthetic material.
sequinsDecorative plastic disks sewn on fabric.
silkLuxurious, natural protein fiber with smooth texture.
silverPrecious metal used for jewelry and accessories.
siliconeFlexible, rubber-like synthetic material.
spongeSoft, porous material used for cleaning or absorption.
spandexElastic synthetic fiber providing stretch and flexibility.
steelHard metal used in accessories or structure.
stonewareDurable ceramic used for tableware or art.
suedeSoft, brushed leather finish.
tinSoft, silvery metal often used in alloys.
titaniumLightweight, strong, corrosion-resistant metal.
velvetSoft fabric with dense pile and rich appearance.
velourPlush fabric similar to velvet with stretch.
vinylFlexible synthetic plastic used for coatings and accessories.
viscoseSemi-synthetic fiber with a silk-like texture.
wickerMaterial made from woven plant fibers.
woodNatural renewable material used for structure or accents.
wood_mahoganyReddish-brown hardwood known for its luxury finish.
wood_oakStrong hardwood often used in furniture.
wood_teakDense, durable hardwood with natural oils.
woolNatural warm fiber from sheep, often blended.
wool_alpacaSoft luxury wool from alpacas, lightweight and insulating.
wool_angoraExtremely soft fiber from angora rabbits.
wool_blendWool combined with other fibers for strength or comfort.
wool_cashmereHigh-end soft wool from cashmere goats.
wool_lambSoft wool from young sheep.
wool_merinoSoft, breathable wool from merino sheep.
wool_mohairGlossy fiber from the Angora goat, durable and warm.
wool_pashminaFine variant of cashmere with silky texture.
wool_yakWarm natural fiber derived from yak hair.
Condition
💡

The condition of an item is often highly subjective, and different sellers or buyers may evaluate it differently. This subjectivity can have an adverse effect on the pricing, as it may lead to misalignment between the perceived and actual condition of the product. If you are unsure about the condition, take a look at fill_mode for more general values.

Condition values high and low are only available when using spot-2-turbo model.

Defines the state or quality of the product being priced. You can select from the following options (best to worse):

ConditionDescription
highRepresents top-tier conditions
lowRepresents lower-tier conditions good, fair and poor, indicating signs of use and potential functional degradation.
pristineUnused, in brand-new condition.
mintLike new, with no visible defects or signs of use.
near_mintAlmost new, with very minor signs of wear.
excellentAlmost perfect condition, minimal signs of use.
very_goodLightly used, with minor wear and tear.
goodRegular signs of wear, but overall functional and intact.
fairNoticeable wear but still functional.
poorHeavily used, with significant signs of wear and tear.
Demography

Indicates the target demographic for the product. Choose from:

DemographyDescription
womenDesigned for women.
menDesigned for men.
unisexSuitable for all genders.
boysTargeted towards boys.
girlsTargeted towards girls.
childrenSuitable for all children.
Target

Specifies the pricing segment you’re aiming for in your predictions. Select from the following:

TargetDescription
affordablePriced for affordability, focusing on lower-range estimates.
mixedA balanced approach between affordable and premium pricing, providing moderate estimates.
premiumHigh-end pricing for luxury or exclusive items, reflecting higher potential outcomes.

For more information on how these targets relate to data handling, refer to the fill_mode section.

Method

Describes the sales method used for the product:

MethodDescription
consignmentProducts being sold through consignment.
p2pProducts being sold on peer-to-peer marketplaces.
Status

Represents the listing status of the product:

StatusDescription
listedProducts currently listed for sale.
soldProducts that have been sold.
Reference

An optional identifier used to reference a related item or entity from either an internal or external system. This field may be used to assist in matching, linking, or influencing price prediction. It can be any recognizable string such as an ID, code, or label.

Additional Parameters

Currency

All prices are in EUR and will be converted to the provided currency using the latest exchange rates, updated atleast every 12 hours.

Specifies the currency in which the predicted price will be returned. The value should be a valid ISO 4217 currency code, e.g. "SEK" for Swedish Krona.

Model

The model parameter specifies the model to be used for generating price predictions. Select from one of our various pre-trained models tailored for different scenarios or datasets.

Selectable Models:

Model NameDescription
spot-1-turboA quick model designed for fast predictions, ideal for real-time applications.
spot-2-turboAn updated version of spot-1-turbo, offering improved performance and accuracy for most use cases.
spot-3-turboThe latest iteration of the model, featuring wider brand support and material input capabilities
Formatting

Formatting controls how numeric values are presented in responses, ensuring consistency and precision. It allows precise control over the number of fraction digits displayed and the rounding behavior applied. By configuring min_fraction_digits and max_fraction_digits, you can enforce consistent precision, while rounding_increment and rounding_mode determine how values are rounded to generate specific price points.

Fraction digits

Specifies the minimum and maximum number of fraction digits in the response. By default, it uses the selected currency’s minor unit digits.

FieldTypeRequiredDefaultDescription
min_fraction_digitsintNoSelected currency’s minor unit digits (ISO 4217 (opens in a new tab))Minimum number of fraction digits to display
max_fraction_digitsintNoSelected currency’s minor unit digits (ISO 4217 (opens in a new tab))Maximum number of fraction digits to display
Rounding

Specifies how numeric values should be rounded. rounding_increment controls the rounding step size, rounding_targets optionally specifies target minor-unit values to round to, and rounding_mode determines the rounding method. When rounding_targets is provided, numbers are rounded to the nearest target value instead of the standard increment.

💡

All rounding increments and targets are applied in minor units. For example, if currency is USD, an increment of 50 rounds to the nearest 50 cents.

💡

When using rounding_targets, only the smallest target values for each base are applied. For example, if rounding_targets = [99, 49, 199, 1199], only 49 and 99 will be considered when rounding.

Example #1

Rounds numbers to the nearest multiple of 50 cents, rounding up.

• Input: 12.37 → Output: 12.50

• Input: 12.82 → Output: 13.00

{
  "rounding_increment": 50,
  "rounding_mode": "ceil"
}

Example #2

Rounds numbers to the nearest value in rounding_targets.

• Input: 12.37 → Output: 12.49

• Input: 12.82 → Output: 12.99

• Input: 7.50 → Output: 7.49

{
  "rounding_targets": [49, 99]
}

Example #3

Rounds numbers to the nearest value in rounding_targets.

• Input: 123 → Output: 145

• Input: 188 → Output: 195

{
  "rounding_targets": [4500, 9500]
}
FieldTypeRequiredDefaultDescription
rounding_incrementintNo1The step size to round numbers to, in minor units (e.g., 5 for rounding to the nearest 5 cents).
rounding_targets[int]No-Optional target minor-unit value(s) to round to (e.g., 49, 99). If provided, numbers are rounded to the nearest target.
rounding_modestringNoautoThe method used for rounding when rounding_increment is applied. Options: auto, floor, ceil.
Rounding modeDescription
autoStandard rounding according to typical numeric rules (round halves up).
ceilRounds up to the nearest multiple of rounding_increment.
floorRounds down to the nearest multiple of rounding_increment.
Fine Tuning

Fine-tuning allows customization to the behavior of the model, ensuring that it aligns more closely with specific use cases or market conditions. By adjusting certain parameters, you can enhance the model’s performance, leading to more accurate and reliable predictions.

Fill Mode
💡

Choosing the right fill mode affects how the model interprets and predicts based on incomplete data, so it is important to select the option that best fits your application needs.

The fill mode parameter determines how the model handles missing or undesirable values during the prediction process. The default value is mixed and the available options are:

Fill ModeDescription
premiumFills missing values with estimates that reflect higher potential outcomes. Suitable for more optimistic scenarios.
mixedUses a balanced approach to fill missing values, providing an estimate that represents an average outcome.
affordableFills missing values with lower-range estimates. Designed for situations where quick predictions and cost-effectiveness are prioritized.
Tolerance

The tolerance parameter is only available when using the spot-2-turbo model.

The tolerance parameter controls the level of adaptability in the model’s suggestions. It determines how much the model can adjust to the input data, offering flexibility for different use cases.

ToleranceDescription
highThe model applies significant adjustments.
mediumThe model applies moderate adjustments.
low (default)The model makes minimal adjustments.
Biases

The biases parameters allows for adjustment to the model’s predictions, helping to mitigate the impact of possible outliers or skewed data distributions.

FieldTypeRequiredDefaultDescription
bias_correction_factornumberNo0.5The factor at which to impact the prediction (0-1). A smaller value means smaller impact on the prediction, and vice versa.
bias_correction_thresholdnumberNo0.95Predictions below this threshold will be adjusted (0-1).

Response

JSON