VinKet

AI API Reference

REST API for listing analysis, virtual try-on, and pricing intelligence. Base URL: https://www.vinket.eu

# Authentication — Bearer token
curl -X POST https://www.vinket.eu/api/v1/analyze \
  -H "Authorization: Bearer vk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://..."}'

Agency / integrator channel (KadmilOS)

1. Get a key at dashboard/developer. 2. Read live quotas via GET /api/v1/usage (see below — nothing advertised there is unenforced). 3. Issue a passport with POST /api/v1/dpp, or go async at volume with POST /api/v1/dpp/bulk { async: true } and poll GET /api/v1/dpp/jobs/{id}.

Full 46-path spec (generated from the routes, not copied here): /api/v1/openapi.json · /kadmilos/docs · /kadmilos/docs/dpp

Listing analysis (AI)

POST/api/v1/analyze~30s

Analyze item photo — generate a full listing

Request body

{ image_url }

Response

{ ok, data, meta: { calls_remaining, processing_ms } }
Auth:Bearer vk_live_*
POST/api/v1/ai~5-30s

Unified action endpoint (analyze, product_to_model)

Request body

{ action, garment_image?, text_hint?, category? }

Response

{ action, result|output_url, calls_remaining }
Auth:Bearer vk_live_*

AI Studio

POST/api/ai/jobs/start5-30s

Start AI job (try-on, bg remove, enhance, video, 3D)

Request body

{ job_type, input_data }

Response

{ job_id, status, poll_url }
Auth:Session
GET/api/ai/jobs/:idinstant

Job status + output_url when complete

Request body

—

Response

{ status, output_url?, error? }
Auth:Session
POST/api/ai/osvariable

OS: background removal, segmentation, 3D reconstruction, image-to-video

Request body

{ job_type, image_url }

Response

{ ok, output_url, model }
Auth:Bearer
POST/api/ai/visual-search~5s

Image search with CLIP embeddings

Request body

{ image_url?, image_base64?, limit? }

Response

{ results: [item...] }
Auth:Bearer

Catalog & inventory

GET/api/search<1s

Search listings (catalog index)

Request body

?q=&category=&era=&sort=

Response

{ hits, totalHits, totalPages }
Auth:Public
PATCH/api/inventory/update<1s

Update listing fields

Request body

{ item_id, title?, price?, status?, ... }

Response

{ ok }
Auth:Bearer
PATCH/api/v1/catalog/bulk<2s

Bulk update price/status (max 500)

Request body

{ ids: [...], updates: { price?, status? } }

Response

{ ok, updated }
Auth:Bearer

Wholesale batch

POST/api/v1/batch/upload~30s/item

CSV upload — run AI on all items

Request body

FormData { file: CSV } o { csv_text }

Response

{ batch_id, total, processed, errors }
Auth:Bearer (Wholesaler)
GET/api/v1/usageinstant

Live quotas for the current key — every number is enforced, none invented

Request body

—

Response

{ ok, quotas: { data_reads, ai_credits, requests_per_minute, sku_writes, monthly_volume, modules }, webhooks, openapi_url }
Auth:Bearer vk_live_* / kos_live_*

Authentication & account

POST/api/role/switchinstant

Switch active role (seller/buyer/wholesaler)

Request body

{ role }

Response

{ ok, role, redirect }
Auth:Bearer
PUT/api/role/switchinstant

Add a new role to the account

Request body

{ role }

Response

{ ok, role }
Auth:Bearer
POST/api/billing/upgradeinstant

Plan upgrade — redirect to Stripe Checkout

Request body

{ plan }

Response

{ checkout_url } or 303 redirect
Auth:Bearer

Webhook events

Configure a URL in dashboard / settings to receive realtime events.

order.createdNew order received
order.paidPayment confirmed
order.shippedShipment registered
listing.publishedListing published
vkai.job.completedAI job completed (with output_url)
batch.completedCSV batch completed

Every event includes header X-VinKet-Signature for HMAC-SHA256 verification.