curl "https://api.genlook.app/tryon/v1/products/shirt-42/stats?from=2026-04-01T00:00:00Z&to=2026-05-01T00:00:00Z" \
-H "x-api-key: gk_your_api_key"
const stats = await client.products.stats("shirt-42", {
from: new Date("2026-04-01"), // optional, Date or ISO string
to: new Date("2026-05-01"),
});
{
"totalGenerations": 187,
"completedGenerations": 181,
"failedGenerations": 4,
"avgGenerationTimeMs": 9120
}
Products (optional)
Product Stats
Try-on counts and average duration for one product.
GET
/
tryon
/
v1
/
products
/
{externalId}
/
stats
curl "https://api.genlook.app/tryon/v1/products/shirt-42/stats?from=2026-04-01T00:00:00Z&to=2026-05-01T00:00:00Z" \
-H "x-api-key: gk_your_api_key"
const stats = await client.products.stats("shirt-42", {
from: new Date("2026-04-01"), // optional, Date or ISO string
to: new Date("2026-05-01"),
});
{
"totalGenerations": 187,
"completedGenerations": 181,
"failedGenerations": 4,
"avgGenerationTimeMs": 9120
}
Try-on counts and average duration for one product, over its lifetime or a date range. Works for every product, one-shot IDs included. Data can lag a few seconds.
string
required
string
ISO 8601. Count try-ons created at or after this time.
string
ISO 8601. Count try-ons created at or before this time.
curl "https://api.genlook.app/tryon/v1/products/shirt-42/stats?from=2026-04-01T00:00:00Z&to=2026-05-01T00:00:00Z" \
-H "x-api-key: gk_your_api_key"
const stats = await client.products.stats("shirt-42", {
from: new Date("2026-04-01"), // optional, Date or ISO string
to: new Date("2026-05-01"),
});
Response
integer
required
All try-ons, including those still running.
integer
required
integer
required
integer
required
Average duration of completed try-ons.
0 if none.{
"totalGenerations": 187,
"completedGenerations": 181,
"failedGenerations": 4,
"avgGenerationTimeMs": 9120
}
Was this page helpful?

