WrongThinking

Kinesis Ranking v1

Which video will perform better

تہانوں کی چاہیدا اے

Attach 2, 4 or 8 MP4 videos from the same account, up to 4 minutes and 32 MiB each.

ایہہ کیویں کم کردا اے

The model uses images, audio and visible text to produce six forecasts. Light, Medium, High and Extra High control visual sampling.

نتیجہ کیویں پڑھنا اے

Each metric has its own ranking. In a replication with 254 videos from 32 accounts, Light scored 42.57/100 against a random baseline of 39.98. Scores express relative order.

API تے مُل

API دے مُل (USD)

$ ۰٫۰۲ توں شروع ویڈیو دے ہر منٹ پچھے

Studio وچ مُل ویکھو
API v1

Check GET /v1/models for current model availability.

ماڈل دی ID
kinesis-ranking
اِن پٹ
Group of MP4 files
آؤٹ پٹ
Scores and positions for six metrics
Studio دیاں حداں
2, 4 or 8 videos · 4 min and 32 MiB per video
درخواستاں

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/predictionsاِن پٹ گھلو۔ جے فیر کوشش کرنی ہووے تاں idempotency کِنجی سانبھ لو۔
  2. 202 Acceptedکم چلدا پیا ہووے تاں ID تے نتیجے دا URL سانبھ لو۔
  3. GET /v1/predictions/:idحالت ویکھو تے پیش گوئی پوری ہووے تاں نتیجہ پڑھو۔

حالتاں دیاں مثالاں queued → running → completed / failed.

جے 401 آوے تاں API کِنجی ویکھو۔ جے 429 آوے تاں ذرا ٹھہر کے اوسے idempotency کِنجی نال فیر کوشش کرو۔

HTTP درخواست
POST /v1/predictions HTTP/1.1Host: wrongthinking.comAuthorization: Bearer <API_KEY>Content-Type: application/jsonIdempotency-Key: <REQUEST_KEY> {  "model": "kinesis-ranking",  "input": {    "video_ids": [      "<VIDEO_ID_1>",      "<VIDEO_ID_2>"    ],    "level": "light"  }}
اِن پٹ تے آؤٹ پٹ

کی تیار کرنا اے

Attach 2, 4 or 8 MP4 videos from the same account, up to 4 minutes and 32 MiB each.

Input fields

video_idsstring[]
2, 4 or 8 distinct MP4 IDs from the same chat.
levelstring
light, medium, high or extra-high. Default light.

ماڈل کی واپس دیندا اے

Scores and positions for six metrics. نتیجے دیاں مکھ فیلڈاں rankings · level · version.

نتیجے دی مثال
{  "id": "pred_demo_001",  "model": "kinesis-ranking",  "status": "completed",  "result": {    "kind": "videoRanking",    "version": "Kinesis Ranking v1",    "revision": "5452803d7ae87c22d6d247a33bccd758a88ea03f0dba9bd25ec011384a39a271",    "level": "light",    "count": 2,    "rankings": {      "engagement": {        "scores": [61.93752168226524, 38.06247831773476],        "positions": [1, 2]      },      "saves": {        "scores": [43.79845457831144, 56.20154542168856],        "positions": [2, 1]      },      "shares": {        "scores": [42.400097338504835, 57.599902661495165],        "positions": [2, 1]      },      "comments": {        "scores": [32.41349668901569, 67.58650331098431],        "positions": [2, 1]      },      "likes": {        "scores": [52.300532679837005, 47.699467320162995],        "positions": [1, 2]      },      "views": {        "scores": [30.335554223336416, 69.66444577666358],        "positions": [2, 1]      }    }  }}
کال بیک

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-ranking",    "status": "completed",    "result_url": "/v1/predictions/pred_demo_001"  }}
بیچ

اکو ماڈل دے اِن پٹ items وچ اکٹھے کرو۔ ہر اِن پٹ لئی وکھری custom_id رکھو تاں جو کم اگے پچھے مکّن تے وی نتیجہ لبھے۔

  1. POST /v1/batchesہر اِن پٹ دی پڑتال کرو۔ جے کُل سائز یا آئٹماں دی گِنتی حد توں ودھ جاوے تاں کم نوں کئی بیچاں وچ ونڈو۔
  2. GET /v1/batches/:idہر آئٹم دی حالت ویکھو۔ اک بیچ وچ کجھ آئٹم کامیاب تے کجھ ناکام ہو سکدے نیں۔
  3. 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-ranking",  "items": [    {      "custom_id": "case-01",      "input": {        "video_ids": [          "<VIDEO_ID_1>",          "<VIDEO_ID_2>"        ],        "level": "light"      }    },    {      "custom_id": "case-02",      "input": {        "video_ids": [          "<VIDEO_ID_1>",          "<VIDEO_ID_2>"        ],        "level": "light"      }    }  ]}

کریڈٹ تے لائسنس

Kinesis Ranking v1 · WrongThinkingWrongThinking · Apache 2.0 · MIT

Implementación audiovisual propia. Datos de entrenamiento publicados bajo CC BY-NC 4.0 por Wensi Zhang, Ying Xie y Lingbo Wang.