Wetin you need
Attach up to eight videos. Use H.264 or H.265 (HEVC) inside MP4 or MOV, or VP8, VP9 or AV1 inside WebM. Each clip fit reach 4 minutes, 1080p and 32 MB.
How e dey work
Light take sample every second, Medium every 250 ms, High every 50 ms and Extra High every 10 ms. MediaAttention estimate which parts stand out for frames wey dem choose based on changes in di shot and arrangement. Kinesis 1.7 update di maps between those frames based on movement and start di history again when e detect cut.
How to read di result
Concentration go from 0 to 100. E go up when 80% of estimated attention fit inside smaller area of di frame. Di player show di current score and di clip average wey take viewing time into account. Percentages for di three parts show how attention share. To measure where real eyes look, you need eye tracking.
API and prices
Check GET /v1/models for current model availability.
Di price follow how long di video be, with minimum of $0.01 USD for each analysis wey finish.
- Model ID
kinesis- Input
- MP4, MOV or WebM video
- Output
- Heatmap as time dey pass, path of eye focus, wetin stand out for each third, and concentration for each sample and whole clip
- Studio limits
- 4 minutes · 1080p · 32 MB
Requests
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/predictionsSend di input. Keep an idempotency key if you fit need to try again.202 AcceptedSave di ID and result URL while di job dey run.GET /v1/predictions/:idCheck di status and read di result when di prediction finish.
Example statuses queued → running → completed / failed.
If you get 401, check di API key. If you get 429, wait before you try again with di same idempotency key.
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" }}Inputs and outputs
Wetin to prepare
Attach up to eight videos. Use H.264 or H.265 (HEVC) inside MP4 or MOV, or VP8, VP9 or AV1 inside WebM. Each clip fit reach 4 minutes, 1080p and 32 MB.
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- Optional. light, medium, high, extra-high. Default level na medium.
Wetin di model return
Heatmap as time dey pass, path of eye focus, wetin stand out for each third, and concentration for each sample and whole clip. Main fields for di result 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>" }}Callbacks
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
- Di prediction don finish. You fit collect di result.
- prediction.failed
- Di prediction fail. Check its status to see di error.
- batch.completed
- Di batch don finish. Check each item even if di batch only succeed in part.
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" }}Batches
Put inputs for di same model inside items. Give each input its own custom_id so you fit match di results even when jobs finish for different order.
POST /v1/batchesCheck say each input valid. Split di work into more batches if di total size or item count pass di limit.GET /v1/batches/:idCheck di status for every item. Some items fit succeed and others fit fail for di same batch.custom_idKeep di results wey succeed. Make another batch with only di items wey fit run again.
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" } } ]}People wey do di work and licences
Kinesis 1.7 · WrongThinkingWrongThinking · MediaAttention Apache 2.0
WrongThinking adapt how di model follow changes over time, based on MediaAttention-Ads v1 by Pratyush Mahapatra, UNISAL and UEyes.