Valuations
Get price estimates for cars, wristwatches, and rings. Send a model and attributes; optionally include a file from Vision in input.file to trigger enrichment first.
Simplest request — no image:
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex"
}
}
Response (200):
{
"success": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"valuation": {
"currency": "SEK",
"value": 85000,
"lowerBound": 50000,
"upperBound": 150000,
"confidence": 0.5
},
"model": "wristwatch@0.2",
"asOf": "2025-03-06T00:00:00.000Z",
"attributes": { "assetType": "wristwatch", "brand": "Rolex" },
"enrichment": null,
"warnings": [],
"metadata": { "timestamp": "...", "creditUsed": 1 }
}
More attributes (e.g. model, reference number) give a tighter range and higher confidence.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes* | What to value: "car" | "wristwatch" | "ring" | "property" for the current default version, or a pinned version such as "car@0.1" (see GET /v1/models). *Optional when attributes.assetType is set. |
attributes | object | Yes | Attributes for that model. See Attributes. |
attributes.assetType | string | No | What kind of item it is: "car" | "wristwatch" | "ring" | "property". Without model, the default version for that type runs. With model, the two must match or you get a 400. |
input | object | No | Unstructured evidence about the item, used during enrichment unless options.skipEnrich is true. Unknown fields return 422 (unknownField). |
input.text | string | No | A description of the item in your own words, up to 2000 characters, e.g. "Rolex Submariner 2019, box and papers". The API reads the model's attributes from it and lists each one in enrichment.enriched with source TEXT. With text, attributes can be partial for every model. |
input.file | object | No | A file to read attributes from. Triggers enrichment unless options.skipEnrich is true. |
input.file.fileId | string | Yes* | From POST /v1/files. *Required when input.file is set. |
options | object | No | See Valuation options. |
The response always includes the exact version that ran, e.g. "model": "wristwatch@0.2". Send that value back as model to pin the version so results don't change when a new default version ships.
Values in attributes always take precedence over what's read from input. Values read from input.text take precedence over what's read from input.file.
category (e.g. "wristwatch") and options.model (e.g. "0.2") are still accepted as deprecated aliases for model. Use model in new integrations.
Response
| Field | Type | Description |
|---|---|---|
id | string | Identifies this request (e.g. for support). Valuations are not stored for later retrieval, so keep what you need from the response. |
model | string | The exact model version that ran, e.g. "car@0.1". |
asOf | string | ISO 8601 point in time the valuation is for. options.asOf if you set it, otherwise now. If the model can't value at the requested date, it values as of today and adds an AS_OF_IGNORED warning. |
valuation.value | number | The estimated value. |
valuation.lowerBound | number | Low end of the likely price range. |
valuation.upperBound | number | High end of the likely price range. |
valuation.confidence | number | 0–1. How certain the model is. More attributes give higher confidence. |
valuation.currency | string | Always "SEK". |
attributes | object | The attributes the model valuated, after enrichment. Always includes assetType. |
enrichment | object | null | What the API filled in before valuating. null when enrichment was skipped or nothing was added. |
enrichment.enriched[] | array | One entry per filled-in attribute: attribute, value, source (e.g. CAR_REGISTRY, WATCH_DATABASE, VISUAL_MATCH) and confidence. Values you sent always win and are not listed here. |
warnings[] | array | { code, message }. Things worth checking, e.g. AMBIGUOUS_OPTION (several values possible — send one to tighten the range) CONFLICT_DERIVED (the value you sent doesn't match known options) AS_OF_IGNORED (the model doesn't support historical dates), TEXT_VALUE_INVALID (a value read from input.text was out of range and ignored), FILE_IGNORED (the model doesn't read files) or INPUT_IGNORED (skipEnrich was set, so input wasn't used). |
metadata | object | timestamp and creditUsed. |
Pinning a version:
{
"model": "car@0.1",
"attributes": {
"licensePlate": "ABC123",
"odometerReading": 45000
}
}
Valuation options
All fields are optional. Omit options to use defaults.
| Option | Type | Default | Description |
|---|---|---|---|
skipEnrich | boolean | false | Skip enrichment even when input.file is provided. |
asOf | string | number | today | Point-in-time valuation. ISO 8601, date-only, or epoch seconds. |
market | string | server default | Market region, e.g. "SE", "US", "EU". |
currency | string | server default | ISO 4217 code (e.g. "SEK", "USD"). |
confidenceFloor | number | — | Suppress results below this confidence (0–1). |
Example with options:
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex",
"model": "Submariner",
"referenceNumber": "116610LN"
},
"options": {
"currency": "SEK",
"market": "SE",
"asOf": "2025-01-15"
}
}
Examples by category
Wristwatch — minimal (brand only)
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex"
}
}
Response (200):
{
"success": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"valuation": {
"currency": "SEK",
"value": 85000,
"lowerBound": 50000,
"upperBound": 150000,
"confidence": 0.5
},
"model": "wristwatch@0.2",
"asOf": "2025-03-06T00:00:00.000Z",
"attributes": { "assetType": "wristwatch", "brand": "Rolex" },
"enrichment": null,
"warnings": [],
"metadata": { "timestamp": "2025-03-06T12:00:00.000Z", "creditUsed": 1 }
}
Wristwatch — full attributes
More attributes yield a tighter estimate.
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex",
"model": "Submariner",
"referenceNumber": "116610LN",
"strap": "steel",
"case": "steel",
"bezel": "steel",
"movement": "automatic",
"dialColor": "black",
"caseDiameter": 41,
"condition": "very_good",
"box": true,
"papers": true
}
}
Response (200):
{
"success": true,
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"valuation": {
"currency": "SEK",
"value": 125000,
"lowerBound": 110000,
"upperBound": 140000,
"confidence": 0.88
},
"model": "wristwatch@0.2",
"asOf": "2025-03-06T00:00:00.000Z",
"attributes": { "assetType": "wristwatch", "..." : "..." },
"enrichment": null,
"warnings": [],
"metadata": { "timestamp": "...", "creditUsed": 1 }
}
Car — full attributes
{
"model": "car",
"attributes": {
"licensePlate": "ABC123",
"brand": "Volvo",
"model": "XC60",
"yearOfManufacture": 2020,
"odometerReading": 45000,
"fuelType": "Plug-in Hybrid (PHEV)",
"drive": "AWD",
"gearbox": "Automatic",
"enginePower": 340,
"color": "black",
"additionalWheelset": false
}
}
Response has the same shape; valuation.currency is "SEK".
Ring
{
"model": "ring",
"attributes": {
"style": "solitairering",
"engraving": false,
"material": "white gold",
"materialPurity": "18k",
"weight": 4.2,
"condition": "excellent",
"diamondCarat": 0.5
}
}
Property
A house in Varberg, valued at a past date. Property valuations support asOf from 2013-01-01; a later date than the latest known market data is valued at the latest price level. See Attributes for every field.
{
"model": "property",
"attributes": {
"housingForm": "HOUSE",
"tenure": "OWNED",
"livingArea": 145,
"landArea": 900,
"numberOfRooms": 5,
"constructionYear": 1978,
"lat": 57.0612,
"lng": 12.2778
},
"options": { "asOf": "2020-06-01" }
}
lowerBound–upperBound is the price range that 8 out of 10 sales of similar homes land inside. It is narrower for apartments in cities and wider for detached houses and holiday homes.
Examples by flow
Flow A: Valuate with enrichment (image first)
The API enriches missing attributes from the image, then values the item.
curl -X POST https://api.gemmai.io/v1/files \
-H "Content-Type: application/json" \
-d '{"imageUrl": "https://example.com/watch.jpg"}'
# Response: { "fileId": "f47ac10b-...", ... }
The server loads vision data for input.file, runs enrichment, then values the enriched attributes.
Flow B: Valuate without image (attributes only)
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex",
"model": "Submariner",
"referenceNumber": "116610LN",
"strap": "steel",
"movement": "automatic",
"dialColor": "black",
"condition": "very_good"
}
}
Flow C: Valuate with image but skip enrichment
You have a file but want to value using only the attributes you send (e.g. user already confirmed them).
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex",
"model": "Submariner",
"referenceNumber": "116610LN"
},
"input": { "file": { "fileId": "f47ac10b-58cc-4372-a567-0e02b2c3d479" } },
"options": { "skipEnrich": true }
}
Flow D: Valuate from a description
Send what the seller wrote in input.text. The API reads the attributes it can from the text, fills in the rest as usual, and values the result. attributes can be partial, even for models without enrichment such as ring.
Request body
{
"model": "ring@0.1",
"attributes": { "condition": "good" },
"input": { "text": "Vitguldsring 18k med briljant, väger 3,1 g." }
}
enrichment.enriched shows what was read from the text:
[
{ "attribute": "material", "value": "white gold", "source": "TEXT", "confidence": 0.95 },
{ "attribute": "materialPurity", "value": "18k", "source": "TEXT", "confidence": 0.95 },
{ "attribute": "weight", "value": 3.1, "source": "TEXT", "confidence": 0.95 }
]
Only values the text gives are read. The API doesn't guess from what it knows about a product: "Rolex Submariner" alone doesn't set the strap. If required attributes are still missing after that, you get a 400 listing them. Show them to the user and send them in attributes.
Reading the text adds a few seconds to the request. If it fails, you get a 502 and can retry or send the attributes instead.
Error handling
400 — Validation error:
{
"success": false,
"details": {
"brand": ["Required"],
"referenceNumber": ["Invalid value"]
},
"metadata": { "timestamp": "...", "creditUsed": 0 }
}
400 — Missing model:
{ "error": "app", "message": "\"model\" is required, e.g. \"car\" or \"car@0.1\"", "details": null }
422 — Property can't be valued: the location has too few past sales nearby (the model needs 20 within 25 km), or the property is otherwise outside what the model covers. details lists every reason.
{
"error": "app",
"message": "This property can not be valued: there are too few past sales near (67.855, 20.225) to value a property there (the model needs 20 sales within 25 km)",
"details": [{ "field": "attributes", "message": "there are too few past sales near (67.855, 20.225) ...", "code": "invalid" }]
}
404 — Unknown model:
{ "error": "app", "message": "Unknown asset type: boat", "details": null }
500 — Server error:
{ "error": "Something went wrong" }