إيه اللي تحتاجه
ارفق لحد تمن فيديوهات. استخدم H.264 أو H.265 (HEVC) في MP4 أو MOV، أو VP8 أو VP9 أو AV1 في WebM. الحد لكل مقطع 4 دقايق و1080p و32 ميجابايت.
بيشتغل إزاي
Light بياخد عيّنة كل ثانية، وMedium كل 250 مللي ثانية، وHigh كل 50 مللي ثانية، وExtra High كل 10 مللي ثانية. MediaAttention بيقدّر البروز المكاني في الفريمات اللي اختارها بناءً على تغيّر اللقطات وتكوينها. Kinesis 1.7 بيحدّث الخرائط اللي بينها حسب الحركة، وبيبدأ السجل من جديد لما يكتشف قطع.
تقرا النتيجة إزاي
التركيز من 0 لـ100. بيعلى لما 80% من الانتباه المقدّر يتجمّع في مساحة أصغر من الفريم. مشغّل الفيديو بيعرض القيمة اللحظية والمتوسط المرجّح بمدة المشاهدة. النسب في كل تلت بتورّي الانتباه رايح فين. عشان تقيس النظرة الحقيقية محتاج تتبّع حركة العين.
الـAPI والأسعار
Check GET /v1/models for current model availability.
السعر بيتحسب حسب مدة الفيديو. كل تحليل يخلص له حد أدنى ٠٫٠١ US$ USD.
- معرّف النموذج
kinesis- المدخلات
- فيديو بصيغة MP4 أو MOV أو WebM
- المخرجات
- خريطة حرارية مع الوقت، مسار النظر، البروز في كل تلت، وتركيز كل عيّنة وكل مقطع
- حدود Studio
- 4 دقايق · 1080p · 32 ميجابايت
الطلبات
The API accepts one asynchronous job per request. The body includes the model ID and its input object. Send the key in Authorization from your server.
POST /v1/predictionsابعت المدخلات واحتفظ بمفتاح منع التكرار لو هتجرّب تاني.202 Acceptedاحتفظ بالمعرّف ورابط النتيجة طول ما المهمة شغّالة.GET /v1/predictions/:idتابع الحالة واقرا النتيجة بعد ما التوقّع يخلص.
أمثلة للحالات queued → running → completed / failed.
لو جالك 401، راجع مفتاح الـAPI. لو جالك 429، استنى قبل ما تجرّب تاني بنفس مفتاح منع التكرار.
POST /v1/predictions HTTP/1.1Host: wrongthinking.comAuthorization: Bearer <API_KEY>Content-Type: application/jsonIdempotency-Key: <REQUEST_KEY> { "model": "kinesis", "input": { "video_id": "<VIDEO_ID>", "level": "medium" }}المدخلات والمخرجات
تجهّز إيه
ارفق لحد تمن فيديوهات. استخدم H.264 أو H.265 (HEVC) في MP4 أو MOV، أو VP8 أو VP9 أو AV1 في WebM. الحد لكل مقطع 4 دقايق و1080p و32 ميجابايت.
Input fields
video_idstring- Attach the video to a Studio chat and copy the ID at the end of its /api/chats/files/{id} download link. Up to 4 minutes and 32 MiB.
levelstring- اختياري. light, medium, high, extra-high. المستوى الافتراضي هو medium.
النموذج بيرجّع إيه
خريطة حرارية مع الوقت، مسار النظر، البروز في كل تلت، وتركيز كل عيّنة وكل مقطع. أهم حقول النتيجة duration · rate · anchors · regions · focus · samples.
{ "id": "pred_demo_001", "model": "kinesis", "status": "completed", "result": { "kind": "video", "version": "Kinesis 1.7", "duration": 6.75, "rate": 4, "anchors": 7, "regions": [30.59, 46.79, 22.63], "samples": "<27 temporal maps>" }}الاستدعاءات الراجعة
callback_url is an optional HTTPS URL on your server. The event reports the terminal status and includes a reference for retrieving the response.
- prediction.completed
- التوقّع خلص وتقدر تجيب النتيجة.
- prediction.failed
- التوقّع ما نجحش. راجع حالته عشان تعرف الخطأ.
- batch.completed
- الدفعة خلصت. راجع كل عنصر حتى لو حالة الدفعة نجاح جزئي.
When integrating, verify the signature before accepting the event, deduplicate by ID, and return 2xx after recording it. Compute HMAC-SHA256 using your signing secret as text and Wrongthinking-Timestamp + a dot + the raw body. Compare the hex digest with Wrongthinking-Signature after v1=. Retries follow the previous failure after 1, 5 and 15 minutes.
{ "id": "evt_demo_001", "type": "prediction.completed", "data": { "id": "pred_demo_001", "model": "kinesis", "status": "completed", "result_url": "/v1/predictions/pred_demo_001" }}الدفعات
حط مدخلات نفس النموذج تحت items. ادّي كل مدخل custom_id مميّز عشان تربطه بنتيجته حتى لو التنفيذ خلص بترتيب مختلف.
POST /v1/batchesاتأكد من صلاحية كل مدخل. قسّم الشغل على كذا دفعة لو الحجم الكلي أو عدد العناصر عدى الحد.GET /v1/batches/:idراجع حالة كل عنصر. نفس الدفعة ممكن يبقى فيها عناصر نجحت وعناصر فشلت.custom_idاحفظ النتايج الناجحة وجهّز دفعة جديدة للعناصر اللي ينفع تحاول تشغّلها تاني بس.
Each batch accepts 1–8 items, 512 KiB of JSON and 3 MiB of images combined. Up to two predictions run concurrently per account.
POST /v1/batches HTTP/1.1Host: wrongthinking.comAuthorization: Bearer <API_KEY>Content-Type: application/jsonIdempotency-Key: <REQUEST_KEY> { "model": "kinesis", "items": [ { "custom_id": "case-01", "input": { "video_id": "<VIDEO_ID>", "level": "medium" } }, { "custom_id": "case-02", "input": { "video_id": "<VIDEO_ID>", "level": "medium" } } ]}حقوق وإشارات للمصادر
Kinesis 1.7 · WrongThinkingWrongThinking · MediaAttention Apache 2.0
تكييف النموذج عشان يتابع التغيّر مع الوقت من WrongThinking، اعتمادًا على MediaAttention-Ads v1 من Pratyush Mahapatra وUNISAL وUEyes.