MiniH3
EnglishTools

Breakdown v1 by content

中文

POSThttps://api.minih3.dev/v1/tools/breakdown-v1

This call is billed to your account. Price: Per content, per minute of video: shot $0.02, story $0.15, asset $0.08, script $0.05; all four $0.30 per minute; Grok: story $0.40, shot $0.20, asset $0.20, script $0.05 (per minute)

Purpose: break one video (or one episode of a series) into the contents you pick: shot (per shot: framing, camera, people, on-screen text), story (synopsis, scenes, beats, hook, turns, ending, people), asset (characters, settings and props with reference frames) and script (scenes with dialogue and speakers). Needed contents are added and listed in auto_added: shot and story need the internal base; asset needs shot + story; script needs story. Base and speakers are internal steps: never selected, never billed.
Billing: paid per content: each content delivered in full is one line (minih3-tool-breakdown-{shot,story,asset,script}-v1), units = minutes of the video (end - start for a clip), a part minute counts as a whole minute, at least 1; you are billed by the seconds you state, and a stated length that does not match the video is refused (longer_than_stated / stated_too_long), so state the real length. Prices: shot $0.02, story $0.15, asset $0.08, script $0.05 per minute; all four $0.30 per minute. A partial or missing content is still returned but not charged; not_billed says why. Running the same video again within 24 hours of a paid run reuses the result (reused, the bill line carries reuse_of), billed as /catalog says. When the recognition rules for the story or asset layer are updated, the story and asset made before the update are not reused. They are generated again, and the regenerated parts are billed as usual; shot and script are still reused. No error is charged. Bill rows: each billed row is {content, model, units, usd, usd_base}: usd is what the row is charged (price × your group ratio × units, at the price when the answer is made), usd_base the amount before your group ratio (price × units); a reused row with reuse_of is still listed, with usd and usd_base 0; each not_billed row has the same shape plus reason, with usd and usd_base 0; null when the price or group ratio cannot be read; billed_note explains these fields in one sentence. When our own service is out of capacity for now, the answer is 502 internal_balance (or it shows only in one content's error_codes); you are not charged, try again later. Model: MiniMax by default; "model": "grok" uses Grok (more detail, higher price, async only), billed under the four Grok ids; prices on /catalog.
Characters: story people and asset characters each carry kind (human (person), animal (animal), anthropomorphic_animal (anthropomorphic animal), other (other)) and species (what the animal or being is; null for a person). An animal that moves or reacts on its own is a character. To have animals such as cats and dogs recognized as characters in an older video, run the breakdown again. It is billed at the normal price.
Fields v2 (from 2026-11-16; written only when the model saw them, so older records have none): each shot row's people and animals also carry orient (where the body faces), gaze (what the eyes look at), expression (emotion and its strength, eyes, brow, mouth), pose (stand, sit, ride...) and speaking / vocal (who makes a sound, and what kind); real animals are listed apart in animals; objects are the things someone touches, holds or looks at in the shot, and a prop whose state changes carries its state at the start of the shot; setting is the place with its colours and materials (palette); events say who (with which body part) does what to what, and how; cause points to the event that caused it (unknown when it cannot be seen), and changes gives a prop's change of state; relations say how people and things relate (for example holds, steps_on, in_front_of); vfx lists visual effects (fire, breaking glass..., with a risk). When a Grok breakdown hears the sound, sound also has effects in sync with events, effects (sound, source, event, diegetic), plus music_diegetic and music_hit. checks flag a motion or a change of state with no cause (unexplained_motion, state_jump); such a shot is looked at once more, 1 s before and after, inside the shot price per minute (no extra charge). story adds appeal[]: why the episode is worth watching, possibly several reasons, most important first (id AP1..., kind, the shot ranges setup / payoff / react, keep: who or what must be on screen when it pays off, timing, seen, why); kind is humor, suspense, twist, payoff (the satisfying comeback), emotion, romance, conflict, curiosity, cute, spectacle, shock or other; hook.kind and retention[] (what keeps viewers watching midway) use the same kinds; narrative_mode (dialogue, monologue, voice_over, silent); pace (the editing pace, from the shot table); beats add seen (what is seen or heard) and means (what it is taken to mean). In asset, characters, settings and props are all assets with a uuid: any prop someone touches, looks at or moves counts (no longer only props seen in 2 shots or more); a prop whose state changes has key: true and states[] (id, label, look); settings have palette; appeals link each appeal to its events and asset uuids, with what does not match in checks.appeal_refs (no_appeal, unbound, payoff_unseen); checks.state_jump lists where a prop's state does not follow across the episode. This update changed the recognition rules of the shot, story and asset layers, so shot, story and asset made before it are not reused.
Filling a partial content (fill_missing): a partial content carries contents.<content>.retry {free_retry_left, fill_missing_left, how} (sometimes with a note). First do what how says: send the same request again unchanged, and the content runs once more. Once that rerun is used, the same request returns this result as it is for 24 hours; then add "fill_missing": true to the same request (same video, same contents) to fill only the missing parts. One result can be filled at most 3 times in 24 hours; past that the answer is 409 fill_limit_reached. A content is charged only once it is complete; until then it is not charged (not_billed).
Recut (base_recut: true, optional): for a finer cut of the same video; off by default. It uses another cut profile, so every content of that breakdown is new and is charged once per minute as usual; the same request (with base_recut: true) within 24 hours reuses that result at $0. Requests without it keep the default cuts. The answer gains base_recut {profile, shots, reused}.
Breakdown version update (tools 2.5, 2026-11-18): the shot, asset and script layers have new versions, so a video broken down before the update gets these three layers made again, not reused, at the normal price once. The shot layer now runs one segment after another; a clip of a little over 2 minutes takes about 35–50 minutes. Use an async job (async: true) and poll every 10 seconds; do not treat it as stuck and send it again.
Uncertain merges (checks.merge_candidates, asset layer): when one person may have been split into two entries and the system is not sure, it does not merge them; it lists the candidates (the two character ids and the evidence). Let the user decide, and fix it with adapt-v1 edits if needed. Two people seen together in one shot are never merged into one.
Breakdown 2.9 (from 2026-11-20): story gains acts[] (see components.schemas.StoryStructureFields) and motifs[]; a new content structure (automatic, free, never selected; present when shot and story or asset run, partial with missing: [owners] without the asset layer; read it with records get, data in StructureRecordData) holds touch steps, animal gaits and per-shot motif checks; a line may be split into sub-lines (L42.1, part_of L42), each with delivery_basis, suspected and lip_shot (SpeakersRow2_9, ScriptLine2_9); shot rows' checks gain place_unseen, ridden_tack and people_in_text (ShotRowChecks2_9); each asset checks.story_person_split row gains cast_entries and cast_groups (StoryPersonSplitRow2_9). Each contents entry is a BreakdownContentEntry. A video broken down before 2.9 gets shot, story, asset and script made again once, at the normal price; reuse within 24 hours works as usual after that; structure and speakers stay free.
Delivery gate (release layer): the last step checks the whole result again. Where a reading is uncertain and cannot be fixed automatically, it is not delivered silently but held as a question for the user; what can be fixed automatically is listed as auto-fixed, with a record. Held items (release.held / items) carry id, ring, content, code, ref, at, reason, question, record_id; held items of one kind form one question group, prioritised P1 (cuts, lines, names, who is who, presence), P2 (continuity, gaze, mouth, place, relations, riding, story structure, touch), P3 (props, wording). ref is usually {shot}, {line} or {shot, character_id}; from 2.11 ref.shot can be a list. Start with P1; the question text can be shown to users as is. There is no endpoint for answers yet, and answering does not change the record. Held codes by category: see the skill pack's references/tools.md.
Breakdown 2.11 (from 2026-12-03 20:33 (MYT)): new held codes CADENCE_UNEVEN (P1, uneven source frame cadence; asked once per film; asks only, moves no cut), LINE_MODE_UNCONFIRMED (P1, voice-over speaker appears too little in the film to settle inner voice vs narration; recorded as narration for now), MOUNT_UNBOUND (P2, an animal that carries a person or pulls a vehicle is tied to no character); RIDDEN_PULLS gains a film-wide case. Unclear lines: text keeps only subtitle-confirmed words, other stretches become "…", the candidate reading is in the new field candidate_text, asr_text keeps the words heard. Voice-over by a speaker who appears enough in the film is inner voice (inner_os). An open mouth is kept as seen and asked about (MOUTH_KEPT_HELD), no longer changed to closed. New fields: base video.cadence, checks.cadence_uneven, checks.boundary_uncertain[].evidence, per-shot start_frame/end_frame/start_pts/end_pts, lines.word_times; asset binding_evidence; script speaker_present, mode_evidence, candidate_text, checks.delivery_unchecked[].mouth, checks.line_mode_unconfirmed[]; story names_respelled[].from_attested. Versions: base-4, story-2, script-8, reconcile-4, push-3. A video broken down before 2026-12-03 20:33 (MYT) gets every layer made again on its next pull, billed once at the normal price; reuse works as usual within 24 hours after that.
Breakdown 2.11.1 (from 2026-12-03 23:44 MYT): names_respelled[].from holds only a spelling that really appears in the source material; with no single one it is an empty string and from_attested: false. MOUNT_UNBOUND now asks which prop asset the animal is, or whether it is only a background animal; entries that may be the same animal form one group, ref.character_ids lists them all, and the group is asked once. A line that is only a name and a full stop no longer counts as calling out to someone, but it is still asked when the speaker's mouth is open, and checks.delivery_unchecked[] carries name_only: true and open_shot. contents.script.version is script-9. Billing: if the same account pulls again, within 24 hours, a video broken down under 2.11.0 (12-03 20:33–23:44 MYT), the script is made again and billed once at the normal price; other layers are reused as usual ($0).
Usage: a breakdown takes minutes (a short video too), so always send "async": true: you get 202 and a bk_ job id at once, then poll GET /v1/tools/jobs/{job_id} every 10 seconds. A sync call that finds the service busy answers 429 busy; retry in a minute or go async. Results and records are kept for 24 hours; keep them with records export and bring them back with import.

Parameters

NameInTypeRequiredDescription
X-MiniH3-Skill-Versionheaderstringno

The skill-pack version you use (in SKILL.md and the pack's VERSION file, plus one on every upgrade; the current one is 13). Compared as numbers, segment by segment (10 is newer than 9, 2 equals 2.0). When it is missing, not numeric or older than the current pack, the answer adds the X-MiniH3-Notice header, and a 2xx JSON answer of /v1/tools/* also adds the minih3_notice field; the result is unchanged, never an error, never an extra charge.

video_urlbodystringyes

An https video URL, e.g. a fetch-*-v1 media_url

secondsbodynumberyes

The real length in seconds, which is what you are billed by; a longer video is 400 longer_than_stated, and a stated length that comes to more billed minutes than the video is 400 stated_too_long

contentsbodyarray<string>yes

Contents to make; duplicates collapse

startbodynumberno

Clip start in seconds, together with end; 0 <= start < end <= seconds, at least 1 s apart

endbodynumberno

Clip end in seconds

audio_languagebodystringno-
autoenzhjakoesptfrdeitruidthviarhitrms
focusbodystringno

One question the story answers; needs story in contents (or auto-added)

report_languagebodystringno

Adds a readable report

enzh
episodebodyintegerno

Episode number in a series

modelbodystringno

Model for the breakdown; grok needs async

minimaxgrok
base_recutbodybooleanno

Recut with the finer profile; every content of that run is new (charged as usual)

fill_missingbodybooleanno

After the rerun is used, fill only the missing parts of a partial content; at most 3 times per result in 24 hours (409 fill_limit_reached)

asyncbodybooleanno-

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/breakdown-v1" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "video_url": "https://…/tiktok-7339393672959757570.mp4",
  "seconds": 88.4,
  "contents": [
    "shot",
    "story"
  ],
  "async": true
}'

Try it

Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.

Enter your key to send.

Responses

200

Breakdown result

{
  "breakdown_id": "bi_…",
  "run_id": "bk_…",
  "expires_at": "2026-11-06T12:00:00Z",
  "source": {
    "sha256": "…",
    "platform": "tiktok",
    "video_id": "7339393672959757570",
    "matched_by": "sha256"
  },
  "episode": null,
  "clip": null,
  "contents": {
    "shot": {
      "record_id": "rc_…",
      "coverage": "full",
      "version": "shot-2",
      "reused": false,
      "missing": [],
      "blocked": [],
      "error_codes": []
    },
    "story": {
      "record_id": "rc_…",
      "coverage": "partial",
      "version": "story-1",
      "reused": false,
      "missing": [
        "…"
      ],
      "blocked": [],
      "error_codes": [
        "…"
      ],
      "retry": {
        "free_retry_left": false,
        "fill_missing_left": 3,
        "how": "send the same request with fill_missing: true"
      }
    },
    "speakers": {
      "record_id": "rc_…",
      "coverage": "full",
      "version": "speakers-7",
      "reused": false,
      "missing": [],
      "blocked": [],
      "error_codes": []
    },
    "structure": {
      "record_id": "rc_…",
      "coverage": "full",
      "version": "structure-1",
      "reused": false,
      "missing": [],
      "blocked": [],
      "error_codes": []
    }
  },
  "selected": [
    "shot",
    "story"
  ],
  "auto_added": [],
  "used": [
    "…"
  ],
  "reused": [],
  "summary": {
    "duration": 88.4,
    "shots": 28,
    "lines": 31,
    "synopsis": "…",
    "scenes": 4,
    "characters": 3
  },
  "report": null,
  "report_error": null,
  "billed": [
    {
      "content": "shot",
      "model": "minih3-tool-breakdown-shot-v1",
      "units": 2,
      "usd": 0.04,
      "usd_base": 0.04
    }
  ],
  "not_billed": [
    {
      "content": "story",
      "reason": "partial",
      "model": "minih3-tool-breakdown-story-v1",
      "units": 2,
      "usd": 0,
      "usd_base": 0
    }
  ],
  "billed_note": "…"
}

202

Queued (async)

{
  "job_id": "bk_…",
  "tool": "breakdown-v1",
  "status": "queued",
  "poll": "/v1/tools/jobs/bk_…",
  "created_at": "2026-11-05T12:00:00Z",
  "estimate": {
    "contents": [
      "shot",
      "story"
    ],
    "shots": 67,
    "calls": {
      "…": 1
    },
    "total_calls": 12,
    "est_seconds": 720
  }
}

400

Error

409

Error

429

Error

500

Error

502

Error

503

Error