MiniH3
EnglishTools

Adapt: checklist, outline, script, shots

中文

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

This call is billed to your account. Price: The checklist is free; $0.02 per stage, $0.06 for all three

Purpose: adapt one episode from its breakdown. First the adaptation checklist (stage: "intake"), then three stages: outline (the new outline and the cast table), script (scenes and lines) and shots (the new-shot plan the remake uses). Each stage is a checkpoint: show it to the user and wait for their OK before the next stage.
The adaptation checklist: the first call sends source (the breakdown_id from breakdown-v1, run with contents shot, story and asset) and stage: "intake". It is free, answers at once (200) and calls no model. The answer has checklist (in order: recast who plays whom, names, relocate place, regenre genre, story, language of the dialogue, seconds length, style of the picture, and recipe when the recipe list is not empty; each item has question, options, default and source_facts, whose characters[] carry id, kind and species) and missing (the items with no answer yet). Ask the user one item at a time and send the answers with adaptation_id + the current version + stage: "intake" + answers (only the items just answered); each call returns a new version. Refer to characters only by source_facts.characters[].id. When missing is empty, tell the user what will_change_text and billable_stages say, with prices from /catalog; the checklist itself is free. When the user agrees, call with the last checklist version and stage: "outline" (or all). A checklist version has expires_at (24 hours, like the breakdown). Batch scripts can do it in one call: source + stage: "outline" + every item in answers; with an item missing the answer is 400 intake_incomplete. Once the outline has started, the intents are fixed: edits on a checklist version is 400 intake_open, intents / notes / recipe with the outline call is 400 fixed_by_checklist, a checklist answer on a version whose outline has started is 400 not_intake_version, and one adaptation takes at most 50 checklist versions (400 too_many_versions). Every 400 tries to name the field in error.param.
A recast can change a character's kind: each recast character may carry kind: human, animal or anthropomorphic_animal; an animal needs species (for example tabby cat). A dog can become a person and a person a cat: the character is designed again as the new kind, and its actions, lines and remake prompts follow it. Without kind the character keeps its kind from the video. A character recast with kind: animal may leave out age_band; an animal from the video recast without kind still needs it.
Without the checklist (older packs): a first call with source and stage outline (or all) still works; with no intents the adaptation keeps the original: the story, the lines and the shot timing stay, and the characters, settings and props get new looks. Intents change it: recast (new characters), relocate (another place, era or culture), regenre (one or two new genres; the structure may change, and the answer says structure_changed), retarget (language, seconds or style), names, story and appeal (what makes it work). recast can also change props and settings by their asset uuid: props [{for, name, description?}] and settings [{for, description?, short?, palette?}], and {for, drop: true} leaves that prop or setting out; with only props or settings, characters may be left out. appeal changes what makes the episode work (for example humor into romance): {kind: appeal, changes: [{for: AP1, to: romance, direction?}], confirmed: true}, where for is an appeal[].id of the breakdown's story and to one of its kinds; send it only after the user confirmed it: without confirmed: true, with an AP id the story does not have, or with an unknown kind, it is 400 invalid_intents. With the checklist, use its optional items props, settings and appeal (checklist 2) instead: they default to keep, name the assets by source_facts.props[].id / source_facts.settings[].id (mode change or drop), and an appeal change needs the user's yes and confirmed: true. intents, notes and recipe are fixed by the first call. From pack 4 on, skipping the checklist is 400 intake_incomplete.
Changes: send edits by id (beat:B1, cast:C1, set:SET1, prop:PR1, scene:S1, line:NL1, shot:1, each with field and value) with the same version, never the whole result. An edit to an earlier stage makes the later ones stale: run the earlier stage again first (409 stage_stale). New or changed with fields v2: shot composition (the framing, at most 1200 characters, no names: refer to characters as @C1; null clears it; it stays when the shots stage runs again) and action (at most 1200 characters; once you change action or characters, the shot's events and relations from the video are no longer used and the prompt follows your action); set palette (colours and materials, at most 8 short texts; [] clears it) and short (the short name, at most 60 characters); prop name (at most 80 characters) and description: a renamed prop is renamed everywhere the outline, the shots and the prompts mention it.
Cast: each character has kind (human (person), animal (animal), anthropomorphic_animal (anthropomorphic animal), other (other)) and species; a person seen only as hands or in part, never the face, has faceless: true (its picture is always optional). An animal stays the same animal, with no clothes; an anthropomorphic animal stands upright and wears clothes. These come from the video. A recast can change kind and species (with kind / species in recast); edits cannot. A character recast to another kind carries recast_from ({kind, species}: what it was in the video). A person seen only as hands is no longer faceless once recast as an animal. When a person who speaks in the video becomes an animal, the animal still speaks those lines and needs a voice. needs.voice is true only for a character who speaks lines (a talking animal too). A character the new story adds has no lines yet at this stage, so its needs.voice is always true.
Results with fields v2: the cast table of characters, settings and props is this adaptation's own set of assets, each with a new uuid; source_of is the uuid of the asset it comes from in the video (null for a new one), and the video's assets are never changed. Source assets left out are in cast.dropped; a recast prop or setting carries recast_from (what it was); setting cards carry short and palette; a prop whose state changes carries states. The outline adds appeal (the video's appeals: kind, setup_shots / payoff_shots / react_shots, timing, why, with keep as this adaptation's asset ids; one whose kind the user changed carries source_kind, changed_by: user and direction) and retention, and hook carries kind. Shot rows keep the video's events, relations, prop states and poses. A character the adaptation did not recast whose look is still empty after two asks takes its look from the video (look_from: source).
Long shots: a shot in shots longer than 15 s carries parts ({id: "1a", shot, start, seconds, action, lines, beats}), cut at story beats where possible and never inside a line, each 3–15 s; the shot's own seconds and lines stay. A shot that cannot be cut is flagged exceeds_single_call: true. Each H3 call rounds up to a whole second (at least 5 s per segment in the remake: a 3.2 s part sent as a segment of its own is billed as 5 s), so a cut shot costs a few seconds more (for example, a 28.3 s shot cut into 14.2 s and 14.1 s is billed as 15 + 15 = 30 s).
Recipes (optional): list them with recipes-v1 (free) and pass recipe {id, version} (add pack when the answer is recipe_ambiguous). Recipe content is never in any answer; recipe_status gives codes only.
Recipes v2 (recommended, then confirmed by the user): get recommendations with recipes-v1 action: "recommend" and breakdown_id (free) and send only what the user confirmed as the optional checklist item recipes: {choice: use, pack?: {id, version}, recipes?: [{id, version}] (at most 12), confirmed: true} (at least one of pack and recipes); {choice: none} or no answer = no recipe. Only one of recipe and recipes may be use (400 intake_conflict); use while recipes are not open yet is 400 recipes_unavailable. The checklist answer's recipes_v2_fit shows what each recipe will do at each step (applied, review_only, skipped and why); when locked is not empty, some recipes would change what this adaptation keeps, so they only check: tell the user, and change story to rewrite_lines or rewrite_plot only if they agree. Recipes that cannot be used are 400 recipe_not_usable with [{id, reason}] in error.metadata.items. Every stage answer then has recipe_status (each recipe's state per step) and recipes_v2 (used: which recipes were used at which step, names only; newer: newer versions exist, this adaptation keeps the confirmed ones). Withdrawal: a recipe already withdrawn when it is confirmed is 400 recipe_not_usable (reason withdrawn; a withdrawn member of a pack is simply left out); one withdrawn after the confirmation, while a stage runs, is 409 recipe_withdrawn. Neither writes anything or charges. Recipes cost nothing extra: the stages keep their price.
Billing: the checklist is free. Then each stage delivered in full is charged once (bill id minih3-tool-adapt-v1, $0.02 per stage). Partial and failed stages are free (not_billed says why), and so is a call that only applies edits, and so is a stage built without a model call (rule_stage, for example the original script when nothing changes it). No error is charged.
Usage: send "async": true for outline, script and shots to get an ad_ job id; poll it every 10 seconds. The checklist always answers at once, with nothing to poll. 409 adapt_in_progress names a job that is still open: poll it, never send again. Results are kept 24 hours; keep a copy with records export.
Adaptations after breakdown 2.9: the asset entries of one main story person become one actor (one picture, one voice) unless they are seen together in one shot, their genders conflict, their ages are two or more bands apart, or the breakdown saw a clear look difference within one scene; the same speaking voice also keeps them together. A grouped actor's source.ids lists the entries it holds, and the adaptation's params.cast names the rule (cast-2 is 2.9's, cast-1 the earlier one). Existing adaptations stay as they are; for the new rule, pull the video again and start a new adaptation from the new breakdown_id. An outline that keeps the original story carries the source's acts and motifs (AdaptOutline2_9); each kept source shot in shots carries structure (AdaptShotRowStructure); each script line carries delivery, delivery_basis, suspected, lip_shot and speaker_origin (AdaptScriptLine2_9).
Splitting a wrongly grouped actor (split_cast, from 2026-11-20): {op: "split_cast", target: "cast:C1", source: [asset character ids to move], name?, look?}, sent with stage: "outline" (free when the outline is full: not_billed says edit_only, no model call). source takes only ids from that entry's result.cast.characters[].source.ids, never its main source.id. Each op makes one new entry with a new ref and split_from {ref, source, lines, review} (AdaptCastSplitFrom): what the source places on the moved ids goes with them (lines by the speakers record, shot rows by the shot bindings, staging, touches, reference frames); what the source does not tell stays on the old entry and is listed in split_from.review for the user's own free edits. look may not contain a name; when the source shows nothing of the part, look is required. Outline, script and shots reruns keep the split. Errors: 400 invalid_edits (shape, the main id listed, an entry with one source character, a name in look, no look where one is needed, a full cast of 60), 400 unknown_edit_target (the target or an id not on that entry, the message naming the id; also when the outline is not built in this version; a target merged away names the entry it went into), 400 edit_in_bible in series mode (use split in the series bible).
Series mode: the first call sends source and series {bible_id, version, episode?} (an adapt-series-v1 series bible and its current version). The cast, looks, series intents and glossary come from the bible: there is no checklist, and you send no answers, intents or recipe (400 series_owns_intents); notes steer this episode only; change series characters, settings and props in the bible (400 edit_in_bible). Later calls need no series; if sent, it must match the first call (400 fixed_on_first_call). The bible's asset table and series intents must be confirmed first (409 assets_not_confirmed / intents_not_confirmed).
Series-mode billing: every call (the first and every later one) carries minutes, the episode's billed minutes (a whole number from 1 to 60, a part minute counted whole, at least 1): for the first call work it out from the episode's length in its breakdown; later answers give it in series.bill.minutes. Without it the answer is 400 minutes_required (nothing charged, no number given); with a wrong one it is 400 minutes_mismatch (nothing charged) and error.metadata.expected gives the right number (got the one you sent). Each stage built with a model call and delivered in full is charged max(2, minutes) units of minih3-tool-adapt-series-v1 (series.bill.units_per_stage); a call is quoted at stages × max(2, minutes) units, and only the stages delivered in full are charged. Adapting an episode again from the current bible after the bible changed bills the stages the stale adaptation had reached on minih3-tool-adapt-series-redo-v1 instead (half price, the same units), once per stale adaptation and each of its stages once (series.bill.redo_of, series.bill.redo_stages).
Series-mode old names and edits: a kept line, scene action or shot may still use an old name of a series character; the rule leaves what it is not sure of and only flags it, never holding the stage up: next.name_flags, each {stage, target, field, old, new} (new is the suggested text, possibly null), and a series_name_left warning in series.checks. Check them with the user and fix the wrong ones with edits by target and field; a line you edit (or send back unchanged) is no longer flagged. When the script or shots stage already has a draft (full or partial), a call with only edits is applied as sent, with no model call and no charge (not_billed reason edit_only), and a partial stage that the edits alone make full is not charged either; add rerun: true (series mode only) to have the model build the stage again with the edits, billed as a normal stage. Every series-mode call, even one that ends up free (edits only), needs a balance that covers its quote (stages × max(2, minutes) units) before it starts; what is not charged comes back.

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.

sourcebodystringno

bi_…, first call only

seriesbodyobjectno

Series mode, first call only (if sent later it must match)

minutesbodyintegerno

Required on every series-mode call: the episode's billed minutes (whole minutes, a part minute counted whole; later answers give series.bill.minutes)

rerunbodybooleanno

Series mode: build the stage again with the edits (billed as a stage); without it, edits alone make no model call and are free

adaptation_idbodystringno

ap_…, later calls

versionbodyintegerno

The version the user confirmed, with adaptation_id

stagebodystringyes

A first call takes intake (the adaptation checklist); an older call, or a batch call with every answer, may take outline or all

intakeoutlinescriptshotsall
answersbodyobjectno

With stage intake only (or every item, with a first outline / all); each item {choice, …}: recast {choice: keep | custom, characters: [{for: <source_facts.characters[].id> | null, mode: keep | new_look | replace | add, look?, gender?, age_band?, name?, kind?: human | animal | anthropomorphic_animal, species? ≤80, staging?: {visibility: full | partial | offscreen, part? (required with partial) ≤80, movement? ≤200} (source characters only, from 2.12.3)}]}, names {choice: keep | localize | user, characters?}, relocate {choice: keep | change, place?, era?, culture?}, regenre {choice: keep | change, genres?}, story {choice: keep | rewrite_lines | rewrite_plot, direction? ≤500}, language {choice: keep | change, language?}, seconds {choice: keep | change, seconds? 5–1800}, style {choice: keep | change, style?, style_note?}, recipe {choice: none | use, id?, version?}, recipes (optional, recipes v2) {choice: none | use, pack?: {id, version}, recipes?: [{id, version}] ≤12, confirmed: true}; a bad one is 400 invalid_answers / intake_conflict with error.param on the field

intentsbodyarray<object>no

For older calls without the checklist; each kind at most once

notesbodystringno-
recipebodyobjectno-
editsbodyarray<object | object | object | object | object | object>no

按 id 修改,免费,不调模型。每一项是一个字段修改 {target, field, value},或带 op 的修改(2026-11-18 起):merge_cast 合并重复角色、remove_cast 删除没人用的角色、add_line 加一句台词、split_line 把一句拆成 2–8 句、split_cast(2026-11-20 起)把合错的演员拆出一条新角色(和 stage outline 一起发才免费)。字段 v2 新增:shot 的 composition(≤1200,null 清空),set 的 palette(最多 8 条,[] 清空)和 short(≤60);shot 的 action ≤1200,prop 的 name ≤80;shot 的 setting(set:SETn、SETn 或 null)。整剧模式下 merge_cast / remove_cast / split_cast 回 400 edit_in_bible。 Edits by id, free, no model call. Each item is a field edit {target, field, value} or an edit with an op (since 2026-11-18): merge_cast folds a duplicate character into the one that stays, remove_cast removes a character nothing uses, add_line adds a line, split_line splits a line into 2–8 parts, split_cast (since 2026-11-20) moves part of a wrongly grouped actor to a new entry (free with stage outline). New with fields v2: shot composition (≤1200, null clears it), set palette (up to 8, [] clears it) and short (≤60); shot action ≤1200, prop name ≤80; shot setting (set:SETn, SETn or null). In series mode merge_cast / remove_cast / split_cast answer 400 edit_in_bible.

accept_partialbodybooleanno-
report_languagebodystringno-
enzh
asyncbodybooleanno-

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/adapt-v1" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "source": "bi_…",
  "stage": "intake",
  "report_language": "en"
}'

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

This version's result

{
  "adaptation_id": "ap_…",
  "record_id": "rc_…",
  "version": 1,
  "parent_version": null,
  "mode": "original",
  "structure": "kept",
  "warnings": [],
  "stage": "outline",
  "status": {
    "outline": "full",
    "script": "not_started",
    "shots": "not_started"
  },
  "result": {
    "outline": "…",
    "cast": {
      "characters": [
        "…"
      ],
      "settings": [
        "…"
      ],
      "props": [
        "…"
      ]
    }
  },
  "next": {
    "stage": "script",
    "hint": "…"
  },
  "expires_at": "2026-11-06T12:00:00Z",
  "billed": [
    {
      "stage": "outline",
      "model": "minih3-tool-adapt-v1"
    }
  ],
  "not_billed": [],
  "edits_not_kept": []
}

202

Queued (ad_)

400

Error

404

Error

409

Error

429

Error

500

Error

502

Error