Story0.API

Story0 API · live streams, clips and stories

The video API that shows its work.

Point it at a game, a broadcast or a street camera and know what just happened, seconds after it airs. Sort incoming clips by your desk’s rules. Turn rushes and copy into a cut you approve. Every answer carries timecodes and evidence.

On air · Football, 1965

00:00 / 02:13

capturinganalyzinganalyzedseenheardinferred20 s windows · $0.00 so far

Tracked

score
—
last score
—
situation
—

Story so far

The first result arrives seconds after the first window closes.

The last minute timeline?last_seconds=60

  1. Nothing analyzed in the last sixty seconds yet.
webhooks appear as windows complete

A real capture: a December 1965 Universal Newsreel, streamed into the API as live HLS. 7 windows, $0.22 in total.

12.6 s

from a window closing to its result arriving, median of the game above

$0.22

for the whole 2 min 14 s game, 7 windows

14

tracked-fact changes, each tied to a moment in the footage

9 of 9

webhooks delivered and verified by signature

Live streams

Ask what just happened. Get the last minute, with sources.

Send an HLS playlist or push your own chunks. Story0 cuts whole segments into windows, watches each with its sound, and carries a bounded memory forward: what the stream is, what has happened so far, and the facts you asked it to keep current.

import Story0 from "@story0/sdk";
const story0 = new Story0(); // STORY0_API_KEY

const stream = await story0.streams.create({
  source: { type: "hls", url: "https://example.com/live/playlist.m3u8" },
  instruction: "Log the plays as they happen: who has the ball, gains, scores, turnovers and crowd reactions. Name players only when they are shown or said.",
  context: "The NFL Western Conference playoff, December 26, 1965: Baltimore Colts at Green Bay Packers, in Green Bay. A Universal Newsreel narrated by Ed Herlihy, replayed as a live feed.",
  track: [
    { key: "score", description: "The score as shown or said, written as Team n – Team n. Null until something shows or says it." },
    { key: "last_score", description: "The most recent scoring play shown or said, with the player and team." },
    { key: "situation", description: "The game situation as shown or said: the quarter, overtime, or that the game is over." },
  ],
  window_seconds: 20,
  billing: { max_charge: { currency: "USD", amount: "2.00" } },
});

// Any time, for free: what happened in the last minute, and what the stream knows now.
const recap = await story0.streams.timeline(stream.id, { last_seconds: 60 });
recap.story_so_far;   // the running account
recap.state;          // { key: "score", value: "Baltimore 10 – Green Bay 13", since_ms, kind: "seen" }
recap.changes;        // each change, with the evidence time and the value before
GET /v1/streams/{id}/timeline?last_seconds=60 · the game above, at the final whistle
{
  "object": "stream_timeline",
  "range": {
    "start_ms": 73942,
    "end_ms": 133942
  },
  "story_so_far": "In the NFL Western Conference playoff between the Baltimore Colts and Green Bay Packers, Baltimore took an early 10–0 lead. Green Bay responded in the second half with a Paul Hornung touchdown and a late Don Chandler field goal to tie the game 10–10 and force sudden death overtime. In overtime, Baltimore missed a 47-yard field goal attempt, allowing Green Bay to drive into range behind an 18-yard pass to Carroll Dale. Don Chandler then kicked a game-winning 25-yard field goal to secure a 13–10 Packers victory. After the final kick, fans celebrated in the stands and flooded the field as Green Bay captured the divisional title.",
  "state": [
    {
      "key": "score",
      "value": "Baltimore 10 – Green Bay 13",
      "since_ms": 118799,
      "kind": "seen"
    },
    {
      "key": "last_score",
      "value": "Don Chandler field goal for Green Bay",
      "since_ms": 85935,
      "kind": "seen"
    },
    {
      "key": "situation",
      "value": "Final",
      "since_ms": 122474,
      "kind": "seen"
    }
  ],
  "changes": [
    {
      "key": "situation",
      "previous": "2nd half",
      "value": "Two minutes left in the game",
      "at_ms": 74160,
      "kind": "heard"
    },
    {
      "key": "score",
      "previous": "Baltimore 10 – Green Bay 7",
      "value": "Baltimore 10 – Green Bay 10",
      "at_ms": 85935,
      "kind": "seen"
    },
    {
      "key": "last_score",
      "previous": "Paul Hornung touchdown for Green Bay",
      "value": "Don Chandler field goal for Green Bay",
      "at_ms": 85935,
      "kind": "seen"
    },
    {
      "key": "situation",
      "previous": "Two minutes left in the game",
      "value": "Overtime",
      "at_ms": 89035,
      "kind": "seen"
    },
    {
      "key": "score",
      "previous": "Baltimore 10 – Green Bay 10",
      "value": "Baltimore 10 – Green Bay 13",
      "at_ms": 118799,
      "kind": "seen"
    },
    {
      "key": "situation",
      "previous": "Overtime",
      "value": "Final",
      "at_ms": 122474,
      "kind": "seen"
    }
  ],
  "events": [
    {
      "start_ms": 114999,
      "kind": "seen",
      "description": "Don Chandler kicks the game-winning field goal for Green Bay in overtime."
    },
    {
      "start_ms": 120374,
      "kind": "seen",
      "description": "Fans celebrate the game outcome in the stands."
    },
    {
      "start_ms": 122474,
      "kind": "seen",
      "description": "Crowds flood onto the field alongside players as the game concludes."
    }
  ]
}

Clip triage

Sort the pile before anyone watches it.

Write your desk’s rules in plain words, with a severity for each. Every clip comes back usable, usable after a specific trim, for a person to check, or rejected, with the moments that decided it. These are seven real clips, judged by the rules on the left.

The desk’s rules

  1. shows_floodingmajor

    Flood water is clearly visible in the shot.

  2. no_overlaysminorfixable

    No title cards, logos, watermarks or burned-in text appear.

  3. steady_cameraminorfixable

    The camera is steady enough to use on air.

  4. no_injuryfatal

    No graphic injury and no person in visible distress.

The server derives each disposition from the rule outcomes in a fixed order. The model judges evidence; it never picks the bucket.

Usable5

Every rule passed with evidence

Usable after an edit1

A remediable rule failed; the trim is in edit_plan

Needs a person0

Uncertain, or a safety rule at stake

None in this pile.

Rejected for fit1

A major rule definitely failed

Floods (1946) newsreel

usable_after_edit · US National Archives · 13.2 s · $0.07

edit_plan: trim 0.0–0.6 s (Film head leader with markings and scratches visible), 0.6–3.9 s (Title card reading 'UNIVERSAL NEWSREEL' and 'FLOODS!' with '-Ed Herlihy-')

  • shows_floodingpass

    Clear flood water is visible in multiple shots, including a swollen river rushing past an embankment and cars driving through flooded streets.

    seen 3.9–7.4 s: “Static camera shot of a swollen, rushing river running alongside a paved embankment under a bridge.”

  • no_overlaysfail

    A title card reading 'UNIVERSAL NEWSREEL' and 'FLOODS!' with '-Ed Herlihy-' is displayed from 0.6 to 3.9 seconds.

    seen 0.6–3.9 s: “Title card reading 'UNIVERSAL NEWSREEL' and 'FLOODS!' with '-Ed Herlihy-'.”

  • steady_camerapass

    The camera remains static on a tripod across all documentary scenes, making it steady enough for broadcast.

    seen 0.0–22.0 s: “The camera remains static on a tripod across all documentary scenes.”

  • no_injurypass

    No visible physical injuries or persons in visible medical distress are observed.

    seen 0.0–22.0 s: “No visible physical injuries or persons in medical distress are observed.”

Story packaging

From rushes and copy to a cut you sign off.

Send the tapes and the reporter’s copy. Story0 writes captions only from the copy, cuts each tape under the caption that describes it, renders a preview per language and shape, and promotes the exact bytes you approved.

The reporter’s copy

Streets turn to rivers after a downpour Heavy rain left city streets under water. Cars pushed through the flood, throwing up spray, and traffic crawled through standing water after dark. In one street a dog waded through water that reached its chest while cycle rickshaws carried people past. A sign warned pedestrians away from a flooded path.

Captions written from it

  1. Heavy rain left city streets under water after a downpour turned roadways into rivers.red car mexico city
  2. Cars pushed through the flood and threw up spray while traffic crawled through standing water after dark.red car mexico citynight traffic
  3. In one street, a dog waded through water reaching its chest as cycle rickshaws carried people past.dog rickshaw street
  4. The flooded path prompted a warning sign to keep pedestrians away from the water.warning sign path

en-US · 16:9 · approved preview

de-DE · 9:16

red car mexico city
night traffic
dog rickshaw street
warning sign path

V1 · four tapes, cut in the order the captions tell it30 s

  1. 01

    Prepare

    29 s

    $0.202

  2. 02

    Edit a caption

    instant

    free

  3. 03

    Render preview

    9.6 s

    $0.015

  4. 04

    Approve

    Demo desk editor

    free

  5. 05

    Promote final

    sha256 908b5466…

    same bytes, $0.00

Films

Watch it work, start to finish.

Every number, sentence and timecode in these films is what the API returned on the footage shown.

A live game, understood as it airsSports desks · 92 sA 1965 playoff newsreel streamed in as live HLS. Watch the score build from nothing, each change tied to the moment it was heard or seen, then the last minute asked for and turned into a score bug and an alert.

A broadcast, logged story by story

Newsrooms · 92 s

A 1946 newsreel as a live feed: the story on air, where it is and how many have run, kept current window by window into a rundown.

Seven clips, sorted by a desk's rules

UGC and breaking-news desks · 49 s

Four plain-language rules, seven incoming clips: five usable, one usable after trimming its title card, one rejected for fit, each with the evidence.

Copy and tapes in, an approved cut out

Video producers · 60 s

Captions written only from the reporter's copy, tapes cut under the captions that describe them, previews in two languages, and a final that is byte for byte the approved preview.

The contract

Answers you can check. Costs you can predict.

Evidence, not adjectives
Every observation says whether it was seen, heard or inferred, and when. Inferred claims are flagged for review.
Memory you can audit
A stream's story and tracked facts change only on evidence inside a window, with its time. Anything else keeps the remembered value.
Uncertainty goes to a person
The server, not the model, decides dispositions and review flags, in a published order.
Spend you can cap
Every request takes a max_charge. Work reserves its worst case and settles at most that. Failed jobs cost nothing.
Safe to retry
An idempotency key returns the original job and one charge. The SDKs set keys for you.
Signed delivery
Standard Webhooks signatures. A replay keeps the original event ID, so receivers deduplicate.

Pricing

You pay for the footage we watch.

And for the video we render. Edits, approvals, retries, webhooks, timelines and test mode are free. These are the receipts from the runs on this page. See pricing

Playoff football, December 1965

$0.2232

Tokyo Olympic Games, October 1964

$0.2141

A news broadcast, May 1946

$0.3512

Street cameras in a flood

$0.1423

Seven incoming clips

$0.49

A 30-second story in two languages

$0.217

Start with $10 of footage on us.

About a hundred minutes of video understanding. Test keys are free forever. No card to sign up.