Getting Started
This guide gets you from zero to your first price estimate. No prior knowledge of the API is required.
Using TypeScript or JavaScript? The TypeScript SDK handles authentication and errors for you, and types the attributes of every model.
Authentication
All API requests require an X-API-Key header. Add it to every request:
X-API-Key: <your-api-key>
Only GET /v1 (API info) does not require authentication.
Contact your account manager or check your dashboard to get your API key.
Step 1: Check the API is running
GET https://api.gemmai.io/v1
If it works, you get:
{
"name": "Gemmai Valuation API",
"version": "1.0.0",
"description": "API for valuing cars, watches, and rings"
}
Step 2: Get your first price (no image)
Send only the model (the type of item, e.g. wristwatch) and a few details (attributes). No photo needed.
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex",
"model": "Submariner",
"referenceNumber": "116610LN"
}
}
Response:
{
"success": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"valuation": {
"currency": "SEK",
"value": 125000,
"lowerBound": 110000,
"upperBound": 140000,
"confidence": 0.85
},
"model": "wristwatch@0.2",
"asOf": "2025-03-06T00:00:00.000Z",
"attributes": { "assetType": "wristwatch", "..." : "..." },
"enrichment": null,
"warnings": [],
"metadata": { "timestamp": "...", "creditUsed": 1 }
}
- valuation.value — the estimated value.
- valuation.lowerBound / upperBound — the likely price range.
- enrichment — attributes the API filled in for you (e.g. from the car registry), or
null. - warnings — anything worth checking, e.g. an attribute with several possible values.
- id — use this to fetch the same result later.
- asOf — the point in time the valuation is for (today unless you set
options.asOf).
Step 3: Try with an image (optional)
If you have a photo of the item, the API can use it to fill in more details and then value it.
3a. Send the image URL to Vision:
{
"imageUrl": "https://example.com/photos/my-watch.jpg"
}
Response:
{
"fileId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"status": "completed",
"objects": [{ "assetType": "wristwatch" }],
"usage": { "creditUsed": 1 }
}
3b. Valuate using that file:
{
"model": "wristwatch",
"attributes": {
"brand": "Rolex"
},
"input": { "file": { "fileId": "f47ac10b-58cc-4372-a567-0e02b2c3d479" } }
}
The API enriches missing attributes from the image, then values the item. The response shape is the same as in Step 2.
Step 4: Get the same result later
Retrieve a previous valuation by its id:
GET https://api.gemmai.io/v1/valuations/a1b2c3d4-e5f6-7890-abcd-ef1234567890
X-API-Key: <your-api-key>
The response is identical to when you created the valuation.
| You want to… | Go to |
|---|---|
| See more valuation examples (cars, rings, options) | Valuations guide |
| Use Enrich to get suggested attributes from an image | Enrich guide |
| Discover which attributes to pass | Attributes |
| Look up every endpoint and parameter | API reference |