Adapt a whole series: one shared series bible
POSThttps://api.minih3.dev/v1/tools/adapt-series-v1
This call is billed to your account. Price: stage $0.01 per episode minute (at least 2 minutes a stage); redo: stages already done $0.005 per episode minute (half price, each stage once); assets $0.005 each described; candidate pictures at the image price
Purpose: one series bible shared by every episode of a series (characters and their looks, settings, props, series intents, the glossary, final pictures and voices), so names, looks and intents stay the same in every episode. Each episode still uses adapt-v1 (with series and minutes) and remake-v1.
Rules: every asset in the bible has an id (a uuid); work by id, never by name. Every action but draft takes bible_id (sb_…) and the version the user confirmed; an older version answers 409 bible_stale. One call at a time per bible (409 series_in_progress).
Actions: draft (roster_id, the newest roster, or from_record, an imported bible; optional series_id) → edit (edits [{op, asset, …}]; the series intents are the op intents with answers, the items of the adapt-v1 checklist, characters by bible id; regenre, story and seconds take keep only (400 series_structure_later); names localize only together with relocate change (400 invalid_edits)) → confirm (what: assets → descriptions → intents → canon; intents with draft: true quotes first (free), then send it again with quote_id; canon takes waive, and while pictures are missing it answers 409 canon_incomplete with error.details.gaps [{asset, slot, state}]). extract (picture descriptions and candidate reference frames, optional assets, at most 200, send async). generate (assets, candidates 1–4). assets (items [{asset, slot, source, id}] or {asset, slot, remove: true}; an original frame needs the user's tick, a recast character never takes one, and after the series intents change a look an original frame shows the old look and is refused (400 frame_not_canonical: draw one with generate and pick it)). rebase (a newer roster_id). Read only: status, check (optional adaptation_ids, sections), script (optional episodes, pick, format).
Candidate pictures (generate): after a new place or a new style, MiniH3 can draw candidate pictures of the assets from the new bible, or the user uploads their own with assets. Quote first, draw only after the user confirms the direction: without confirm it only quotes (free): the picture count images, unit_price (the base image price, the same as /v1/tools/image; the group ratio applies) and total. After the user agrees, send confirm: true with quote_id, images and unit_price, and "async": true (more than 1 picture without it is 400 generate_needs_async). Each picture made is charged once (minih3-tool-image), candidates the user does not pick included; a picture that fails is not (not_billed). At most 20 assets and 48 pictures per call (400 too_many_assets / too_many_images). If the bible or the count changed, the answer is 409 quote_changed with the new quote in error.details (quote_id, images, unit_price, total): show it, and confirm with it once the user agrees; if the price changed, 409 quote_changed has no error.details: call generate without confirm again (free) for a new quote, then confirm. 503 quote_unavailable when the price cannot be read. The user picks the final one with the edit op pick.
Billing: extract is charged once per asset described (minih3-tool-series-assets-v1), never for one not described; without assets the balance must cover 200 assets before it starts, and only the assets actually described are charged. A confirmed generate is charged per picture made at the image price. Every other action (draft, edit, confirm with or without draft: true, rebase, status, assets, check, script) is free. Adapting each episode (adapt-v1 series mode) is billed as adapt-v1 says. Each answer says how much it charged (billed) and what it did not charge (not_billed, with the reason). Prices on /catalog. No error is charged.
Usage: send "async": true with extract or with generate confirm: true for an as_ job id; poll it every 10 seconds. Other actions answer at once. When the bible changes, the episodes that use a changed asset are marked stale; nothing is adapted again or charged on its own, and adapting again bills the stages the stale adaptation had reached at half price (see adapt-v1). The series bible is kept for 24 hours (the end is in keep_until; each change writes a new version kept for its own 24 hours, and adapting an episode from a version keeps that version another 24 hours); keep a copy with records export.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-MiniH3-Skill-Version | header | string | no | The skill-pack version you use (in SKILL.md and the pack's VERSION file, plus one on every upgrade; the current one is |
action | body | string | yes | -drafteditconfirmrebasestatusextractgenerateassetscheckscript |
bible_id | body | string | no | sb_…, required except for draft |
version | body | integer | no | The bible version the user confirmed; not for status, optional for check and script |
roster_id | body | string | no | rc_…: draft (newest roster), rebase (a newer roster) |
from_record | body | string | no | draft: an imported bible |
series_id | body | string | no | draft,可选:ss_… / draft, optional: ss_… |
edits | body | array<object> | no | - |
what | body | string | no | confirm assetsdescriptionsintentscanon |
draft | body | boolean | no | confirm what=intents: quote, then write the series looks and glossary |
quote_id | body | string | no | The quote the user agreed to |
waive | body | array<object> | no | confirm what=canon: slots left without a picture |
assets | body | array<string> | no | extract, generate: asset ids (extract at most 200; generate at most 20 assets a call) |
candidates | body | integer | no | generate |
confirm | body | boolean | no | generate: true draws (quote first) |
images | body | integer | no | generate confirm: true:报价里的张数(必填)/ generate confirm: true: the quote's picture count (required) |
unit_price | body | number | no | generate confirm: true:报价里每张的价(必填,价格变了 409 quote_changed)/ generate confirm: true: the quote's price of one picture (required; a changed price is 409 quote_changed) |
items | body | array<object> | no | assets |
adaptation_ids | body | array<string> | no | check:ap_… / check: ap_… |
sections | body | array<string> | no | check |
episodes | body | object | no | script |
pick | body | object | no | script:{集号: ap_…} / script: {episode: ap_…} |
format | body | string | no | script jsontext |
report_language | body | string | no | -enzh |
async | body | boolean | no | extract and generate confirm: true queue |
Code samples
curl -X POST "https://api.minih3.dev/v1/tools/adapt-series-v1" \
-H "Authorization: Bearer $MINIH3_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "draft",
"roster_id": "rc_…"
}'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
The new bible version, a quote, or a read (status, check, script)
202
extract or generate confirm queued (as_)
400
Error
404
Error
409
Error
429
Error
500
Error
502
Error
503
Error