ما الذي تحتاجه؟
أرفق ما يصل إلى ثمانية مقاطع فيديو. استخدم 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.
يُحتسب السعر بحسب مدة الفيديو، بحد أدنى 0.01 US$ USD لكل تحليل مكتمل.
- معرّف النموذج
kinesis- المدخلات
- فيديو بصيغة MP4 أو MOV أو WebM
- المخرجات
- خريطة حرارية عبر الزمن ومسار النظر والبروز في كل ثلث ودرجة التركيز لكل عينة ومقطع
- حدود الاستوديو
- 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احتفظ بالمعرّف وعنوان URL للنتيجة أثناء معالجة المهمة.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.