Guide · Published · Updated

The most cost-effective way to moderate live streams.

Let a model watch every stream at a low frame rate, check only the flags you act on, and send people only the moments it flags. Detectivision prices a live stream session by the minute, for the frames checked: 1 credit a minute at 1 frame a second in detect mode.

The answer

Four things set the price

  • Frames a second

    Most things worth moderating stay on screen for more than a second. Checking 1 frame a second costs a thirtieth of checking every frame of a 30 fps stream.

  • Mode

    Ask for the flags only, in detect mode: the live stream docs price it lowest.

  • Name only the flags you act on. Fewer flags mean fewer models to run, so frames are checked faster; at Detectivision they never cost more.

  • People for what is flagged

    Moderators look only at the flagged moments, instead of watching streams from start to end.

Worked examples

What a session costs

From the live stream docs, in detect mode: credits per minute are the frames a second, rounded up.

SessionFrames a secondCredits a minuteCredits an hour
Flags at a low rate1160
Shorter moments22120
Every frame of a 30 fps stream30301,800

The docs price a session by the minute and, unlike a check answered at once, never double it. A minute is held ahead; when the session ends it keeps what its frames cost and gives the rest back.

How it works

With Detectivision, as its docs describe it:

  1. Start a session

    Give a stream link (RTSP, RTMP, HLS, HTTP or SRT) for our servers to watch, or send frames yourself from a browser camera or a device.

  2. Flagged frames become moments

    A flagged frame is kept with its picture, at most one every few seconds (3 by default), in your moderation history.

  3. A live.moment webhook reaches your system for each moment, with the session’s metadata, so you can act at once.

  4. Stop and settle

    Stop the session when the stream ends, or it stops by itself. The credits its frames did not use come back.

In code

Starting a session

Request
curl https://api.detectivision.ai/api/v1/live/sessions \
  -H "Api-Key: $DETECTIVISION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "url",
    "url": "rtsp://cams.example.com/live",
    "fps": 1,
    "mode": "detect"
  }'
Response
{
  "id": 31,
  "source": "url",
  "url": "rtsp://cams.example.com/live",
  "fps": 1,
  "mode": "detect",
  "frameSide": 1280,
  "momentEvery": 3,
  "status": "running",
  "reason": null,
  "framesChecked": 0,
  "framesFlagged": 0,
  "moments": 0,
  "creditsCharged": 1,
  "creditsUsed": 0,
  "costPerMinute": 1,
  "startedAt": 1790505000,
  "endedAt": null,
  "jobId": 2210
}

The status code is 201. This session costs 1 credit a minute, and a minute is held ahead (creditsCharged); it keeps only what its frames cost (creditsUsed).

Questions

Frequently asked

Can Detectivision moderate live streams?

Yes. A live session checks a stream link or camera frames as they come, and each flagged moment reaches your webhook with its picture. GET /api/v1/status shows the state of each type.

What does live stream moderation cost with Detectivision?

In the live stream docs, a session at 1 frame a second costs 1 credit a minute in detect mode. A higher rate costs that times the rate, rounded up: every frame of a 30 fps stream is 30 credits a minute.

How many frames a second should I check?

For most streams 1 or 2. A higher rate catches shorter moments and costs more.

Will a whole minute be charged when a session stops early?

No. As the docs describe it, a minute is held ahead, and when the session ends it keeps what its frames cost and gives the rest back to your balance.

Which streams does it check?

A stream link over RTSP, RTMP, HLS, HTTP or SRT on a public address, or frames you send yourself, for example from a browser camera.

Related
Related articles