عطرنا

نموذج التعرّف على العطر من الصورة

ترسل صورة زجاجة عطر فيعيد النموذج العطر نفسه من بين 2,017 عطراً، مع درجة الثقة وأقرب خمسة احتمالات، وسجلّه الكامل إن طلبته.

c-20261122صورة ← عطر

POST /v1/vision/identify

curl -X POST "https://api.ourscent.online/v1/vision/identify?k=5" \
  -H "Authorization: Bearer os_live_…" \
  -H "Content-Type: image/jpeg" \
  --data-binary @bottle.jpg
اقرأ التوثيق

مثال على الرد

JSON
{
  "model": "c-20261122",
  "candidates": [
    {
      "perfume_id": "Khamrah-Lattafa-Perfumes-Lattafa-Perfumes",
      "score": 0.91,
      "name": "Khamrah",
      "name_ar": "خمرة",
      "brand": { "id": "lattafa", "name": "Lattafa", "name_ar": "لطافة" },
      "thumbnail_url": "https://ourscent.online/perfume-images/…/w400.webp"
    },
    { "perfume_id": "Khamrah-Qahwa-Lattafa-Perfumes-Lattafa-Perfumes", "score": 0.06, "…": "…" }
  ],
  "request_id": "req_8f2c…"
}
JSON
{
  "error": {
    "code": "insufficient_credits",
    "message": "No credits left on this account. Top up or upgrade.",
    "request_id": "req_41ab…"
  }
}

مفتاحك الأول في دقيقتين

سجّل الدخول بحساب عطرنا، أنشئ مفتاح اختبار، وأرسل أول طلب.