WrongThinking

Kinesis 1.7

How focus changes throughout a video

What to provide

Attach up to eight videos. Use H.264 or H.265 (HEVC) in MP4 or MOV, or VP8, VP9 or AV1 in WebM. Each clip can be up to 4 minutes, 1080p and 32 MB.

How it works

Light samples every second, Medium every 250 ms, High every 50 ms and Extra High every 10 ms. MediaAttention estimates spatial saliency at frames selected for shot and composition changes. Kinesis 1.7 updates the intervening maps using motion and resets the history at detected cuts.

How to read the result

Concentration ranges from 0 to 100. It rises when 80% of estimated attention fits into a smaller area of the frame. The player shows the current score and the time-weighted clip average. The percentages by third show where attention falls. Measuring actual gaze requires eye tracking.

API and pricing

API pricing (USD)

From $0.02 per minute of video

View pricing in Studio
API v1

Check GET /v1/models for current model availability.

Pricing is prorated by video duration, with a $0.01 USD minimum per completed analysis.

Estimated API price · $0.045 USD
Model ID
kinesis
Input
MP4, MOV or WebM video
Output
Temporal heatmap, focus trail, saliency by third and concentration per sample and clip
Studio limits
4 min · 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.

  1. POST /v1/predictionsSend the input and keep an idempotency key if you plan to retry.
  2. 202 AcceptedStore the ID and the result URL while the job runs.
  3. GET /v1/predictions/:idCheck the status and read the result when the prediction completes.

Example statuses queued → running → completed / failed.

If you receive 401, check the API key. If you receive 429, wait before retrying with the same idempotency key.

HTTP request
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

What to prepare

Attach up to eight videos. Use H.264 or H.265 (HEVC) in MP4 or MOV, or VP8, VP9 or AV1 in WebM. Each clip can be up to 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. Defaults to medium.

What it returns

Temporal heatmap, focus trail, saliency by third and concentration per sample and clip. Key result fields duration · rate · anchors · regions · focus · samples.

Example result
{  "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
The prediction completed and the result can be fetched.
prediction.failed
The prediction failed. Check its status for the error.
batch.completed
The batch finished. Inspect each item, including when the batch status is partial.

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.

Prediction event
{  "id": "evt_demo_001",  "type": "prediction.completed",  "data": {    "id": "pred_demo_001",    "model": "kinesis",    "status": "completed",    "result_url": "/v1/predictions/pred_demo_001"  }}
Batches

Group inputs for the same model under items. Give each input a unique custom_id to match results even when processing finishes out of order.

  1. POST /v1/batchesValidate each input. Split work across batches when the total size or item count exceeds its limit.
  2. GET /v1/batches/:idCheck the status of each item. A batch can contain successes and failures.
  3. custom_idStore successful results and assemble another batch with the items eligible for retry.

Each batch accepts 1–8 items, 512 KiB of JSON and 3 MiB of images combined. Up to two predictions run concurrently per account.

Batch request
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"      }    }  ]}

Credits and licenses

Kinesis 1.7 · WrongThinkingWrongThinking · MediaAttention Apache 2.0

Temporal adaptation by WrongThinking based on MediaAttention-Ads v1 by Pratyush Mahapatra, UNISAL and UEyes.