@slatesvideo/shared 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/events.d.ts +155 -0
- package/dist/analytics/events.js +430 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/dist/manual/content.d.ts +1 -1
- package/dist/manual/content.js +1 -1
- package/dist/operations/index.d.ts +88 -82
- package/dist/operations/index.js +235 -45
- package/dist/operations/surface.js +1 -0
- package/dist/prompts/agent-doctrine.js +26 -7
- package/dist/prompts/banned-tokens.d.ts +18 -0
- package/dist/prompts/banned-tokens.js +59 -4
- package/dist/prompts/generation-policy.d.ts +1 -1
- package/dist/prompts/model-capabilities.d.ts +3 -3
- package/dist/prompts/model-capabilities.js +3 -3
- package/dist/prompts/model-facts.d.ts +1 -1
- package/dist/prompts/model-facts.js +2 -2
- package/dist/prompts/partials.generated.js +1 -1
- package/dist/prompts/prompting-tips.js +8 -8
- package/dist/prompts/shot-grammar.d.ts +2 -2
- package/dist/prompts/shot-grammar.js +2 -2
- package/dist/skills/content.js +18 -18
- package/dist/update-check.js +1 -1
- package/exports/slates-prompt-builder/generated/reference-character.md +2 -2
- package/exports/slates-prompt-builder/generated/reference-content-policy.md +3 -3
- package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +4 -4
- package/exports/slates-prompt-builder/generated/reference-kling.md +5 -6
- package/exports/slates-prompt-builder/generated/reference-omni-flash.md +1 -1
- package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +15 -15
- package/exports/slates-prompt-builder/generated/reference-seedance.md +3 -4
- package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +26 -26
- package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
- package/package.json +5 -2
- package/skills/_partials/cinematic-card.md +1 -1
- package/skills/_partials/model-routing.md +2 -2
- package/skills/slates-character-identity.md +2 -2
- package/skills/slates-content-policy.md +3 -3
- package/skills/slates-model-selection.md +3 -3
- package/skills/slates-prompting-elevenlabs.md +1 -1
- package/skills/slates-prompting-flux-2-max.md +1 -2
- package/skills/slates-prompting-gpt-image-2-5.md +5 -5
- package/skills/slates-prompting-inworld-tts.md +1 -1
- package/skills/slates-prompting-kling-v3.md +4 -5
- package/skills/slates-prompting-lip-sync.md +5 -8
- package/skills/slates-prompting-ltx-2-5.md +2 -2
- package/skills/slates-prompting-minimax-h3.md +5 -5
- package/skills/slates-prompting-motion-transfer.md +2 -4
- package/skills/slates-prompting-omni-flash.md +1 -1
- package/skills/slates-prompting-seed-audio.md +1 -1
- package/skills/slates-prompting-seedance-2-5.md +19 -19
- package/skills/slates-prompting-seedance.md +10 -11
- package/skills/slates-prompting-seedream-5-lite.md +2 -3
- package/skills/slates-vision-feedback-loop.md +117 -117
|
@@ -27,13 +27,18 @@
|
|
|
27
27
|
// 3. PROSE IS EXPLANATION, NOT ENFORCEMENT. The two rules the agent actually
|
|
28
28
|
// breaks — "load the guide" and "quality-check with vision" — are enforced
|
|
29
29
|
// STRUCTURALLY in the op layer (generated banned-token lists inlined into
|
|
30
|
-
// the generate ops' descriptions,
|
|
31
|
-
//
|
|
30
|
+
// the generate ops' descriptions, warnings on the submitted prompt that the
|
|
31
|
+
// desktop loop turns into a refusal before the spend, and a review pointer
|
|
32
|
+
// on every generation result). A rule with no
|
|
32
33
|
// check is a suggestion, and an LLM is the least reliable enforcer you
|
|
33
34
|
// could pick. Do not "fix" a skipped rule by adding a sentence here.
|
|
34
|
-
// 4. NEVER BLOCK. PRODUCT_PHILOSOPHY.md → the Sandbox Doctrine: make
|
|
35
|
-
// visible, never block.
|
|
36
|
-
// and violations are reported back
|
|
35
|
+
// 4. NEVER BLOCK THE USER. PRODUCT_PHILOSOPHY.md → the Sandbox Doctrine: make
|
|
36
|
+
// state visible, never block. In the op layer enforcement means the guidance
|
|
37
|
+
// is already present and violations are reported back. The desktop loop may
|
|
38
|
+
// refuse an AGENT's call that breaks a rule code can check (never-use words
|
|
39
|
+
// before a spend, a project nobody asked for, a model the plan did not
|
|
40
|
+
// approve: slate `studio-agent/guards.ts`, 2026-10-07), and each refusal has
|
|
41
|
+
// a way through for the user: their own words, an approved plan, a resend.
|
|
37
42
|
// 5. CACHE DISCIPLINE. This output is the desktop's cached prompt prefix and
|
|
38
43
|
// its byte-stability IS the cache mechanism (measured 97.4% steady-state
|
|
39
44
|
// cache hit). No timestamps, no balances, no project names, no per-session
|
|
@@ -100,7 +105,9 @@ export const WORKING_METHOD = [
|
|
|
100
105
|
// client would name a tool that does not exist.
|
|
101
106
|
fork(`4. PLAN + GET APPROVAL: before ANY generation, call present_plan with itemized credit costs (slates_estimate_generation_cost per step). One approval covers the plan's listed steps ONLY. Generation tools are rejected without an approved plan — and any user revision, question, or new instruction after an approval means you MUST re-present the plan BEFORE the next generation call (calling a generation op first just gets BLOCKED and wastes a turn).`, `4. PLAN + GET APPROVAL: before ANY generation, price every step with slates_estimate_generation_cost and put the itemized total in front of the user in ONE message, then wait for their answer. There is no present_plan tool on this surface — consent is per call: a generation over the confirm threshold returns requires_confirm, and confirm: true is only ever a relay of an explicit user OK for that exact spend. Never pass confirm: true to clear a gate the user has not seen.`),
|
|
102
107
|
fork(`5. EXECUTE: after approval, pass confirm: true (the approval IS the consent — never re-ask per step). Use background: true + status polling for video.`, `5. EXECUTE: run the approved steps, passing confirm: true only for the spend the user actually OK'd. Use background: true + status polling for video.`),
|
|
103
|
-
|
|
108
|
+
// Desktop adds the frame-edge check (2026-10-08: Haiku looked at a lighthouse with its top cropped
|
|
109
|
+
// off and kept it, agent-eval round 6); the MCP copy is unchanged, its instructions sit at the ceiling.
|
|
110
|
+
fork(`6. QUALITY-CHECK: you have vision. Inspect images or sampled video frames against the brief (slates-vision-feedback-loop), starting at the frame edges: is the whole subject in frame, and is anything the brief named cut off? Frames establish visible appearance, not continuous motion, lip sync or sound: review those through actual playback or an audio-capable host when available; otherwise state they remain unreviewed. Fix real problems and change ONE variable per regeneration.`, `6. QUALITY-CHECK: you have vision. Inspect images or sampled video frames against the brief (slates-vision-feedback-loop). Frames establish visible appearance, not continuous motion, lip sync or sound: review those through actual playback or an audio-capable host when available; otherwise state they remain unreviewed. Fix real problems and change ONE variable per regeneration.`),
|
|
104
111
|
both(`7. REPORT: when done, summarize what was made and where it landed. Concise and concrete.`),
|
|
105
112
|
];
|
|
106
113
|
// ── Hard rules ─────────────────────────────────────────────────────
|
|
@@ -109,7 +116,7 @@ export const WORKING_METHOD = [
|
|
|
109
116
|
// the exception: it is multi-line and generated, and supplies its own bullet.
|
|
110
117
|
export const HARD_RULES = [
|
|
111
118
|
// FORKED: "outside an approved plan" names the desktop's code-level gate.
|
|
112
|
-
fork(`- COST DISCIPLINE (slates-cost-discipline): never fire a billable generation outside an approved plan. Estimate before you promise. Batch related generations into one plan.`, `- COST DISCIPLINE (slates-cost-discipline): never fire a billable generation the user has not agreed to. Estimate before you promise. Batch related generations into one quote so the user approves a total, not a drip.`),
|
|
119
|
+
fork(`- COST DISCIPLINE (slates-cost-discipline): never fire a billable generation outside an approved plan. Estimate before you promise. Batch related generations into one plan. When the user says cheap or cheapest, price decides: plan the lowest-priced setting the estimates show (at a tie, the better quality at that price); "best" then means the best picture at that price, never a dearer tier. A dearer tier is named in words, never generated unless the user asks for it.`, `- COST DISCIPLINE (slates-cost-discipline): never fire a billable generation the user has not agreed to. Estimate before you promise. Batch related generations into one quote so the user approves a total, not a drip.`),
|
|
113
120
|
both(`- CONTENT POLICY: before writing prompts involving real people/celebrities, minors, brands/logos, weapons, or gore, load slates-content-policy and build the scene safe from the first word. If a provider rejects (e.g. real-face detection), explain in plain language — refunds for provider rejections are automatic.`),
|
|
114
121
|
both(`- PROMPT IS LAW (reference doctrine): references are cited inline by name and image number ("Marcus (images 1 and 2)"); the prompt text leads. Never write role-essays about what each reference is "for".`),
|
|
115
122
|
both(`- NAMES AND DESCRIPTIONS ARE THE USER'S UI, NOT YOUR NOTEPAD. A project, board or shot name is rendered at the top of the user's screen at all times. Name it after the piece ("Kaiju selfie"), never after your process, and NEVER append your own status or housekeeping — no "shot list", no "v2", no "Written from IMG-A172 and IMG-A182", no "Delete freely", no "scratch". Leave the description empty unless the user gave you one worth keeping: a note-to-self at the top of the screen reads as part of the product, and the user has to look at it every day. Say that kind of thing in your reply to them instead.`),
|
|
@@ -134,6 +141,13 @@ export const HARD_RULES = [
|
|
|
134
141
|
both(`- ASSET CODES + STALENESS: every asset carries a badge code (IMG-A12 / VID-V3 / AUD-S1, top-left of its gallery card); speak about assets by code + label. When the user says "these" or "this one", call slates_get_selection rather than asking which. Asset lists go STALE — the user creates assets in the Slates UI mid-conversation. When the user names a code you have NOT seen in a tool result this session, resolve it with slates_list_assets (use the search filter) BEFORE using it. NEVER guess an asset id or reuse a nearby UUID — pass the exact id a tool returned for that exact code. A wrong start frame burns real credits.`),
|
|
135
142
|
both(`- CREDITS ONLY: every generation you drive bills Slates credits (your tool calls enforce this), except ChatGPT images, which use the person's ChatGPT account. Never suggest BYOK keys for agent work.`),
|
|
136
143
|
both(`- Do not invent tools, asset ids, or credit prices. If a tool errors, read the error and fix that exact issue; don't repeat the same call unchanged and never switch models to route around a parameter mistake.`),
|
|
144
|
+
// 2026-10-08, measured: Haiku 5.5 called slates_list_assets in the SAME turn as
|
|
145
|
+
// slates_get_workspace_state, with a project id it made up, read the empty
|
|
146
|
+
// answer as "IMG-A8 does not exist" and stopped (slate scripts/agent-eval
|
|
147
|
+
// README, round 5). Dependent calls wait; independent ones may still run together.
|
|
148
|
+
// Desktop loop only: the invented id came from the desktop brain, and the MCP
|
|
149
|
+
// instructions sit at their 14,000-character ceiling (agent-surface check).
|
|
150
|
+
fork(`- IDS COME FROM RESULTS: pass only a project, asset, shot, folder or board id you read in a tool result in this conversation. When a call needs another call's answer (the open project's id from slates_get_workspace_state, an asset's id from slates_list_assets), make the first call, read its result, then make the second; never fill the id in ahead of the answer. Calls that do not depend on each other may run together. "No project …" or "No asset …" means the id was wrong, not that the thing is missing: get the real id and try again.`, ``),
|
|
137
151
|
// FORKED: only the desktop loop auto-polls generation status
|
|
138
152
|
// (loop.ts → autoPollUntilTerminal). Telling an MCP client "the app keeps
|
|
139
153
|
// polling for you" would strand a job nobody is watching.
|
|
@@ -149,6 +163,11 @@ export const HARD_RULES = [
|
|
|
149
163
|
// compliance 0/8 → 30/32, while the same guidance behind a guide fetch sat at
|
|
150
164
|
// 13% before and after. This sentence exists only to say the numbers are
|
|
151
165
|
// there and must be looked at; the craft is the skill.
|
|
166
|
+
// 2026-10-07, measured: asked for "just the shot list for now", GLM-5.3-Flash
|
|
167
|
+
// AND Opus 5.5 both wrote a good list into the chat, 0/8 each, and never
|
|
168
|
+
// created a Shot. Neither knew that in Slates a shot list IS Shots — and on
|
|
169
|
+
// the desktop slates_create_shot is not core, so nothing on screen said so.
|
|
170
|
+
fork(`- A SHOT LIST IS SHOTS: asked for a shot list, storyboard or breakdown, write each beat as a Shot with slates_create_shot (load it by name first): Shots land on the board and can be priced and fired later; a chat list cannot. Read the set back with slates_list_shots. Writing Shots is free, even under "don't generate yet". Firing Shots is slates_generate_from_shots, so each take lands on its Shot; to fire them at other settings, change each Shot first with slates_update_shot and say so in the plan. A loose slates_generate_video leaves the board without its takes.`, `- A SHOT LIST IS SHOTS: asked for a shot list, storyboard or breakdown, write each beat as a Shot with slates_create_shot: Shots land on the board and can be priced and fired later; a chat list cannot. Read the set back with slates_list_shots. Writing Shots is free, even under "don't generate yet".`),
|
|
152
171
|
both(`- READ THE VARIETY COUNTS BEFORE FIRING A SET: slates_list_shots and slates_get_storyboard_with_frames return authored framing and movement distributions. Review unintended sameness while preserving deliberate repetition and the user's format; counts do not require a rewrite. slates-shot-variety is the craft.`),
|
|
153
172
|
both(`- AUDIO LENGTH IS PROMPT-DRIVEN ON SEED AUDIO: it has no duration parameter, so the durationSeconds you pass is written into the prompt AND is what the user is charged, whatever comes back. Choose it deliberately and load slates-prompting-seed-audio before the first call.`),
|
|
154
173
|
];
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export type BannedTokenScope = 'image' | 'video';
|
|
2
|
+
/** The call shape a block's heading limits its tokens to. */
|
|
3
|
+
export type BannedTokenCondition = 'reference-video' | 'edit';
|
|
2
4
|
export interface BannedToken {
|
|
3
5
|
token: string;
|
|
4
6
|
skill: string;
|
|
5
7
|
scope: BannedTokenScope;
|
|
8
|
+
/** The never-use line the token came from, as the skill words it. */
|
|
9
|
+
note: string;
|
|
10
|
+
/** False when the rule needs context the call cannot show; such a token only warns. */
|
|
11
|
+
checkable: boolean;
|
|
12
|
+
/** Set when the block's heading limits it to a call shape. */
|
|
13
|
+
when?: BannedTokenCondition;
|
|
6
14
|
}
|
|
7
15
|
/** Compatibility exports: there is no cross-model blacklist. */
|
|
8
16
|
export declare const BANNED_PROMPT_TOKENS: readonly BannedToken[];
|
|
@@ -10,6 +18,16 @@ export declare function bannedTokensFor(_scope: BannedTokenScope): readonly Bann
|
|
|
10
18
|
export declare function describeBannedTokens(_scope: BannedTokenScope): string;
|
|
11
19
|
export declare function bannedTokensForSkill(skill: string): readonly BannedToken[];
|
|
12
20
|
export declare function findBannedTokens(prompt: string, _scope: BannedTokenScope, skill?: string): BannedToken[];
|
|
21
|
+
/**
|
|
22
|
+
* The never-use words this CALL breaks, as far as the call can show: checkable
|
|
23
|
+
* tokens, and a heading-limited token only when the call has that shape (a
|
|
24
|
+
* Seedance 2.5 "edit" reclassifies a fresh generation only with a reference
|
|
25
|
+
* video attached). The desktop loop refuses these before the spend.
|
|
26
|
+
*/
|
|
27
|
+
export declare function refusableBannedTokens(prompt: string, scope: BannedTokenScope, skill: string | undefined, call?: {
|
|
28
|
+
referenceVideo?: boolean;
|
|
29
|
+
edit?: boolean;
|
|
30
|
+
}): BannedToken[];
|
|
13
31
|
export declare function describeBannedTokensForSkill(skill: string): string;
|
|
14
32
|
export declare function bannedTokenWarning(prompt: string, scope: BannedTokenScope, skill?: string): string;
|
|
15
33
|
//# sourceMappingURL=banned-tokens.d.ts.map
|
|
@@ -1,17 +1,63 @@
|
|
|
1
1
|
/** Model-specific prompt advice, extracted from each skill's @banned blocks.
|
|
2
|
-
*
|
|
2
|
+
* The op layer only warns: it never rewrites or blocks a prompt, on any surface.
|
|
3
|
+
* The desktop Studio Agent's loop refuses an agent-written generation prompt
|
|
4
|
+
* BEFORE the spend when it carries a word code can check from the call alone
|
|
5
|
+
* (`refusableBannedTokens`; slate `src/main/studio-agent/guards.ts`,
|
|
6
|
+
* 2026-10-07): a word the user typed passes, and the identical call sent again
|
|
7
|
+
* after the refusal runs. No model's list is universal.
|
|
8
|
+
*
|
|
9
|
+
* WHAT A BLOCK MAY CONTAIN. Every `backticked` string is a never-use token,
|
|
10
|
+
* except the right way written beside it, which is never a token: `(say \`x\`)`,
|
|
11
|
+
* `than \`x\``, `as in: \`x\`` and `(\`x\`) passed`. A heading that limits the
|
|
12
|
+
* block to a call shape ("with a reference video", "in an EDIT prompt") limits
|
|
13
|
+
* the refusal to calls of that shape. A line whose rule depends on context the
|
|
14
|
+
* call cannot show ("after the first introduction") stays a warning only.
|
|
3
15
|
*/
|
|
4
16
|
import { SKILLS } from '../skills/content.js';
|
|
17
|
+
/** The right way, written next to the wrong one: never a token. */
|
|
18
|
+
const POSITIVE_BEFORE = [/\(\s*say\s*$/i, /\bthan\s*$/i, /\bas in:?\s*$/i];
|
|
19
|
+
const POSITIVE_AFTER = /^\)\s*passed\b/i;
|
|
20
|
+
/** A rule the call alone cannot settle. */
|
|
21
|
+
const CONTEXTUAL = /after the first introduction/i;
|
|
22
|
+
function conditionOf(heading) {
|
|
23
|
+
if (/with a reference video/i.test(heading))
|
|
24
|
+
return 'reference-video';
|
|
25
|
+
if (/in an EDIT prompt/i.test(heading))
|
|
26
|
+
return 'edit';
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
/** One fence → its tokens, positives dropped, each with its line and its limits. */
|
|
30
|
+
function parseBannedBlock(body, skill, scope) {
|
|
31
|
+
const lines = body.replace(/<!--[\s\S]*?-->/g, '').split('\n').map((l) => l.trim()).filter(Boolean);
|
|
32
|
+
const heading = lines.find((l) => /never use|avoid/i.test(l)) ?? '';
|
|
33
|
+
const when = conditionOf(heading.replace(/`[^`\n]*`/g, ''));
|
|
34
|
+
const out = [];
|
|
35
|
+
for (const line of lines) {
|
|
36
|
+
const note = line.replace(/^-\s*/, '').replace(/`([^`\n]+)`/g, '"$1"');
|
|
37
|
+
for (const m of line.matchAll(/`([^`\n]+)`/g)) {
|
|
38
|
+
const before = line.slice(0, m.index);
|
|
39
|
+
const after = line.slice((m.index ?? 0) + m[0].length);
|
|
40
|
+
if (POSITIVE_BEFORE.some((re) => re.test(before)) || POSITIVE_AFTER.test(after))
|
|
41
|
+
continue;
|
|
42
|
+
const token = m[1].trim();
|
|
43
|
+
if (out.some((t) => t.token === token))
|
|
44
|
+
continue;
|
|
45
|
+
out.push({ token, skill, scope, note, checkable: !CONTEXTUAL.test(line), ...(when ? { when } : {}) });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return out;
|
|
49
|
+
}
|
|
5
50
|
const bySkill = new Map();
|
|
6
51
|
for (const [skill, content] of Object.entries(SKILLS)) {
|
|
7
52
|
const fences = [...content.matchAll(/<!--\s*@banned:start\s*-->([\s\S]*?)<!--\s*@banned:end\s*-->/g)];
|
|
8
53
|
if (!fences.length)
|
|
9
54
|
continue;
|
|
10
|
-
const
|
|
55
|
+
const scope = /nano-banana|gpt-image|flux|seedream/.test(skill) ? 'image' : 'video';
|
|
56
|
+
const tokens = fences.flatMap((f) => parseBannedBlock(f[1], skill, scope))
|
|
57
|
+
.filter((t, i, all) => all.findIndex((o) => o.token === t.token) === i);
|
|
11
58
|
if (!tokens.length)
|
|
12
59
|
throw new Error(`${skill}: @banned block contains no tokens`);
|
|
13
|
-
|
|
14
|
-
bySkill.set(skill, tokens.map((token) => ({ token, skill, scope })));
|
|
60
|
+
bySkill.set(skill, tokens);
|
|
15
61
|
}
|
|
16
62
|
/** Compatibility exports: there is no cross-model blacklist. */
|
|
17
63
|
export const BANNED_PROMPT_TOKENS = Object.freeze([]);
|
|
@@ -31,6 +77,15 @@ function matcherFor(token) {
|
|
|
31
77
|
export function findBannedTokens(prompt, _scope, skill) {
|
|
32
78
|
return skill ? bannedTokensForSkill(skill).filter((b) => matcherFor(b.token).test(prompt)) : [];
|
|
33
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* The never-use words this CALL breaks, as far as the call can show: checkable
|
|
82
|
+
* tokens, and a heading-limited token only when the call has that shape (a
|
|
83
|
+
* Seedance 2.5 "edit" reclassifies a fresh generation only with a reference
|
|
84
|
+
* video attached). The desktop loop refuses these before the spend.
|
|
85
|
+
*/
|
|
86
|
+
export function refusableBannedTokens(prompt, scope, skill, call = {}) {
|
|
87
|
+
return findBannedTokens(prompt, scope, skill).filter((b) => b.checkable && (b.when === undefined || (b.when === 'reference-video' ? !!call.referenceVideo : !!call.edit)));
|
|
88
|
+
}
|
|
34
89
|
export function describeBannedTokensForSkill(skill) {
|
|
35
90
|
const list = bannedTokensForSkill(skill);
|
|
36
91
|
return list.length ? `Avoid these phrases for ${skill}: ${list.map((b) => `"${b.token}"`).join(', ')}. Describe the intended result specifically.` : '';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is NOT a model capability or provider batch limit. Desktop mirror is
|
|
3
3
|
* generated by slate/scripts/sync-generation-policy.mjs; never edit it there. */
|
|
4
4
|
export declare const IMAGE_QUANTITIES: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
5
|
-
export declare const MAX_IMAGE_VARIATIONS: 1 | 2 | 4 | 5 |
|
|
5
|
+
export declare const MAX_IMAGE_VARIATIONS: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
6
6
|
export type ImageQuantity = typeof IMAGE_QUANTITIES[number];
|
|
7
7
|
export declare const clampImageQuantity: (count?: number) => ImageQuantity;
|
|
8
8
|
/** Default saved-recipe framing, shared by composer restore, quote and dispatch. */
|
|
@@ -35,9 +35,9 @@ export interface DurationCapability {
|
|
|
35
35
|
mode: 'continuous' | 'discrete';
|
|
36
36
|
/** For discrete mode: the exact allowed durations. */
|
|
37
37
|
values?: number[];
|
|
38
|
-
/** Resolution-dependent narrowing
|
|
38
|
+
/** Resolution-dependent narrowing: a resolution that allows fewer durations (LTX sets this). */
|
|
39
39
|
resolutionOverrides?: Record<string, Pick<DurationCapability, 'min' | 'max' | 'mode' | 'values'>>;
|
|
40
|
-
/** Prompt-mode narrowing
|
|
40
|
+
/** Prompt-mode narrowing: a mode, such as reference-to-video, that allows fewer durations. No row sets one today. */
|
|
41
41
|
modeOverrides?: Record<string, Pick<DurationCapability, 'min' | 'max' | 'mode' | 'values'>>;
|
|
42
42
|
}
|
|
43
43
|
/** Video resolution constraints. */
|
|
@@ -195,7 +195,7 @@ export interface ModelCapability {
|
|
|
195
195
|
* credits route carries Kling on fal: `slate/src/main/agent/routes.ts`
|
|
196
196
|
* never sends `klingProvider`, so `handlers/video.ts` defaults it to `'fal'`.
|
|
197
197
|
* So an agent gets Kling's THREE fal ratios, not the eight it takes on its
|
|
198
|
-
* direct API
|
|
198
|
+
* direct API. Validating
|
|
199
199
|
* against the direct sets would accept a ratio fal rejects, which is the exact
|
|
200
200
|
* failure this module exists to delete.
|
|
201
201
|
*/
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
// enums plus English prose, with no link of any kind back to the registry. It
|
|
14
14
|
// had drifted on every axis: an aspect-ratio enum offering `9:21` (a value that
|
|
15
15
|
// exists in NO model, invented here), "Kling/Seedance support all" when Seedance
|
|
16
|
-
// takes 6 of 11 and Kling-on-fal takes 3, "
|
|
17
|
-
//
|
|
16
|
+
// takes 6 of 11 and Kling-on-fal takes 3, "locks to 16:9" for a model that took
|
|
17
|
+
// two on fal, "Kling: 5-15" against a registry minimum of 3, and a
|
|
18
18
|
// `videoResolution` description that never mentioned Kling at all. A customer
|
|
19
19
|
// burned a round trip on 2026-08-16 passing `4:5` to Seedance: the op accepted
|
|
20
20
|
// it, the job queued, credits reserved, and the provider rejected it
|
|
@@ -206,7 +206,7 @@ export function falImageSize(model, aspectRatio, resolution) {
|
|
|
206
206
|
* credits route carries Kling on fal: `slate/src/main/agent/routes.ts`
|
|
207
207
|
* never sends `klingProvider`, so `handlers/video.ts` defaults it to `'fal'`.
|
|
208
208
|
* So an agent gets Kling's THREE fal ratios, not the eight it takes on its
|
|
209
|
-
* direct API
|
|
209
|
+
* direct API. Validating
|
|
210
210
|
* against the direct sets would accept a ratio fal rejects, which is the exact
|
|
211
211
|
* failure this module exists to delete.
|
|
212
212
|
*/
|
|
@@ -34,7 +34,7 @@ export interface ModelFact {
|
|
|
34
34
|
* meaning the default SEEDANCE seat (a bare "seedance" resolves to 2.0), and for
|
|
35
35
|
* a month two rows read as the default while the routing doctrine then in force
|
|
36
36
|
* (Eric, 2026-07-03: Kling 3.0 the general-purpose default, Seedance the premium
|
|
37
|
-
* escalation) never changed. The marketing site meanwhile headlined
|
|
37
|
+
* escalation) never changed. The marketing site meanwhile headlined a
|
|
38
38
|
* `niche` row, because no check could read a tier out of prose. The tier is
|
|
39
39
|
* DATA now; the notes describe, they do not rank.
|
|
40
40
|
*
|
|
@@ -301,7 +301,7 @@ export const MODEL_FACTS = [
|
|
|
301
301
|
// from the base row: "Audio cannot be the only reference input; provide at
|
|
302
302
|
// least one reference image or video with it."
|
|
303
303
|
audioRefNeedsCompanion: true,
|
|
304
|
-
notes: 'THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default.
|
|
304
|
+
notes: 'THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default. A post-train of the H3 weights: MEASURED 2026-08-27 at about 12x faster than base H3 on the same prompt and params, queue to finished file, plus a thin vendor-reported quality edge. It tops out at a 1080p refinement of its 768p render. It takes the same omni-reference set as base H3 and animates start and end frames — but not both in one call, the same as base H3: frames and references go to different endpoints. Never describe this row as taking no image or reference input. Route here when a fast turnaround on text-to-video or a start-frame shot is worth the premium.',
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
id: 'minimax-h3-max-turbo',
|
|
@@ -313,7 +313,7 @@ export const MODEL_FACTS = [
|
|
|
313
313
|
// image-to-video for Turbo and its reference-to-video returns 404, so
|
|
314
314
|
// `caps()` returns nulls and the composer refuses references.
|
|
315
315
|
...caps('minimax-h3-max-turbo'),
|
|
316
|
-
notes: 'THE BUDGET SEAT of the MiniMax family: a second
|
|
316
|
+
notes: 'THE BUDGET SEAT of the MiniMax family: a second post-train of the H3 weights, billed at half H3 Max\'s rate at every tier. Its 1080p is a refinement of the native 768p render, not a native 1080p generation. INPUTS ARE FRAMES, NOT REFERENCES: text-to-video and start/end frames only, with no reference endpoint, so reference-driven consistency goes to H3 Max or base H3. Route here for drafts, volume and cheap coverage, then re-run the keeper on H3 Max or a hero seat.',
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
id: 'ltx-2-5',
|
|
@@ -13,7 +13,7 @@ export const PARTIALS = {
|
|
|
13
13
|
"image-defaults": "**Image default:** gpt-image-2-5-sunburst, quality `high`, 3k. User overrides take priority. Without a project, generation uses the headless Nano Banana 2 seat.\n\n| Model | Default resolution |\n|---|---|\n| nano-banana-2 | 2k |\n| nano-banana-2-lite | 1k |\n| nano-banana-pro | 2k |\n| gpt-image-2-5-flare | 2k |\n| gpt-image-2-5-sunburst | 3k |\n| flux-2-max | 1k |\n| seedream-5-lite | 2k |",
|
|
14
14
|
"iteration-diagnosis": "## Diagnose repeated failures\n\nAfter three failed attempts at the same requirement, pause unchanged re-rolls and diagnose the source reference, prompt structure, model fit and tool result. Three is a review checkpoint, not a universal limit or proof that the seed cannot matter. Preserve the attempts and name what each test changed.\n\nContinue autonomously when the brief is clear, a specific correction is supported and the next request is already authorized. Hand control back when taste or intent cannot be inferred, the next request needs fresh consent, or the available tool cannot meet the requirement. A failed roll never authorizes an additional charge. Follow the existing batch and per-request cost policy.",
|
|
15
15
|
"lens-video-split": "Named lenses, apertures, film stocks and camera bodies (`85mm f/1.4`, `Kodak Portra 400`, `ARRI Alexa 65`) are an image-model lever. On a video model, translate the look instead of pasting the gear list: `85mm f/1.4, Portra 400` becomes `close-up, shallow depth of field, warm natural colors, cinematic texture, film-grain texture`. ByteDance's Seedance 2.0 guide never mentions fps, shutter angle, f-stop or lens millimetres. Its Seedance 2.5 guide does, once: the visual-style line of its own storyboard example names one camera body and one 35 mm cinema lens. On 2.5 a single line like that is vendor-sanctioned; a stacked gear list still is not.",
|
|
16
|
-
"model-routing": "**Current model routing, generated from the operation routing source:**\n\n### image generate\n\nNano Banana 2 (Gemini 3.1 Flash Image): The all-rounder and the only image seat with a headless path: holds many subjects coherently in one frame, and the start-frame for legible in-scene text. Knowledge cutoff Jan 2025: anything later needs reference images.\nNano Banana 2 Lite: FAST/DRAFT image tier — markedly cheaper and faster than NB2 full, at draft quality. Route here for iteration volume, then re-run the winner on NB2 full. Same Gemini content filter as NB2.\nNano Banana Pro: HERO-FRAME / typography PREMIUM image tier. NB2 is about 95% of Pro — escalate only when spatial composition, cinematic lighting/skin, fine typography-in-scene or deep multi-element reasoning must be perfect, and say why.\nGPT Image 2.5 Flare: THE FAST GPT IMAGE SEAT — OpenAI's small model, optimized for SPEED, quality COMPARABLE to GPT Image 2 (not better) at roughly half the latency. Route here when speed matters: drafts, exploration, volume. TEXT / DIAGRAM / PANEL work — character sheets, shot grids, text-bearing panels. When quality outranks speed, escalate to Sunburst. Own content filter, distinct from Gemini's. Killed by a head-to-head at the intended crop going the other way.\nGPT Image 2.5 Sunburst: THE QUALITY GPT IMAGE SEAT — OpenAI's most capable image model, higher quality than GPT Image 2, same price as Flare, deliberately SLOWER. Route here unless speed is the point: finals, hero frames, photoreal people, and multi-reference edits where every reference must survive into one frame — its widest lead. Explore on Flare, finish on Sunburst.\nFLUX.2 Max: Photoreal image seat, less censored than the Gemini rails. Auto-routes to its edit endpoint when references are present.\nSeedream 5 Lite: Cheapest flat-priced image seat (GPT Image 2.5 at low quality costs less per image). Less censored. Routes to its edit endpoint when references are present.\n\n### video generate\n\nSeedance 2.0: THE 4K AND VALUE SEAT beside the 2.5 default — the only Seedance with native 4K (Pro-gated; base accounts get PRO_REQUIRED) and cheaper than 2.5 at every resolution they share, with the same physics, effects and scale strengths; shorter takes, fewer references, no timestamps. VIDEO-ONLY. A bare \"seedance\" still resolves here for older CLIs that expect 4K.\nSeedance 2.5: DEFAULT VIDEO MODEL — the strongest seat for physics, effects, scale and hero shots, and the only Seedance that takes long single takes, many references, audio-only references and integer-second timestamps. No 4K, and dearer than 2.0 at every shared resolution: go to 2.0 for 4K or the same resolution cheaper. LENGTH is the price dial — quote long takes first. VIDEO-ONLY. Timestamp grammar and the edit/extend words that make the provider reclassify and fail a generation are in slates-prompting-seedance-2-5.\nKling 3.0: THE COST-EFFECTIVE SEAT — strong start-frame adherence (identity, layout, text), acting, dialogue and lip-sync; pick it when the budget matters and the shot is a performance or a start-frame animation. Kling is also the ONLY engine behind the Motion Transfer and Lip Sync tools.\nGemini Omni Flash: 720p seat with native synced audio included. Route here for drafts with sound in one pass and reference-to-video character-consistency trials; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Quality against Kling/Seedance is unproven — do not route hero shots here.\nMiniMax H3: THE AUTHORED-AUDIO SEAT — reach for H3 when the sound is part of the shot rather than a switch on it: synchronised dialogue, scene sound and an audience-only score directed as three separate layers in ONE pass, across eleven languages. Kling and Seedance treat audio as on/off. Only H3 also carries a DECLARED REFERENCE RELATIONSHIP (kept whole, partly kept, transferred, or a loose echo). VIDEO-ONLY. Its top two resolution tiers are UPSCALES of the native render, not larger generations — judge at native and upscale in post. Reference images past the fifth are a PAID key dimension: pass referenceImages when quoting.\nMiniMax H3 Max: THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default.
|
|
16
|
+
"model-routing": "**Current model routing, generated from the operation routing source:**\n\n### image generate\n\nNano Banana 2 (Gemini 3.1 Flash Image): The all-rounder and the only image seat with a headless path: holds many subjects coherently in one frame, and the start-frame for legible in-scene text. Knowledge cutoff Jan 2025: anything later needs reference images.\nNano Banana 2 Lite: FAST/DRAFT image tier — markedly cheaper and faster than NB2 full, at draft quality. Route here for iteration volume, then re-run the winner on NB2 full. Same Gemini content filter as NB2.\nNano Banana Pro: HERO-FRAME / typography PREMIUM image tier. NB2 is about 95% of Pro — escalate only when spatial composition, cinematic lighting/skin, fine typography-in-scene or deep multi-element reasoning must be perfect, and say why.\nGPT Image 2.5 Flare: THE FAST GPT IMAGE SEAT — OpenAI's small model, optimized for SPEED, quality COMPARABLE to GPT Image 2 (not better) at roughly half the latency. Route here when speed matters: drafts, exploration, volume. TEXT / DIAGRAM / PANEL work — character sheets, shot grids, text-bearing panels. When quality outranks speed, escalate to Sunburst. Own content filter, distinct from Gemini's. Killed by a head-to-head at the intended crop going the other way.\nGPT Image 2.5 Sunburst: THE QUALITY GPT IMAGE SEAT — OpenAI's most capable image model, higher quality than GPT Image 2, same price as Flare, deliberately SLOWER. Route here unless speed is the point: finals, hero frames, photoreal people, and multi-reference edits where every reference must survive into one frame — its widest lead. Explore on Flare, finish on Sunburst.\nFLUX.2 Max: Photoreal image seat, less censored than the Gemini rails. Auto-routes to its edit endpoint when references are present.\nSeedream 5 Lite: Cheapest flat-priced image seat (GPT Image 2.5 at low quality costs less per image). Less censored. Routes to its edit endpoint when references are present.\n\n### video generate\n\nSeedance 2.0: THE 4K AND VALUE SEAT beside the 2.5 default — the only Seedance with native 4K (Pro-gated; base accounts get PRO_REQUIRED) and cheaper than 2.5 at every resolution they share, with the same physics, effects and scale strengths; shorter takes, fewer references, no timestamps. VIDEO-ONLY. A bare \"seedance\" still resolves here for older CLIs that expect 4K.\nSeedance 2.5: DEFAULT VIDEO MODEL — the strongest seat for physics, effects, scale and hero shots, and the only Seedance that takes long single takes, many references, audio-only references and integer-second timestamps. No 4K, and dearer than 2.0 at every shared resolution: go to 2.0 for 4K or the same resolution cheaper. LENGTH is the price dial — quote long takes first. VIDEO-ONLY. Timestamp grammar and the edit/extend words that make the provider reclassify and fail a generation are in slates-prompting-seedance-2-5.\nKling 3.0: THE COST-EFFECTIVE SEAT — strong start-frame adherence (identity, layout, text), acting, dialogue and lip-sync; pick it when the budget matters and the shot is a performance or a start-frame animation. Kling is also the ONLY engine behind the Motion Transfer and Lip Sync tools.\nGemini Omni Flash: 720p seat with native synced audio included. Route here for drafts with sound in one pass and reference-to-video character-consistency trials; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Quality against Kling/Seedance is unproven — do not route hero shots here.\nMiniMax H3: THE AUTHORED-AUDIO SEAT — reach for H3 when the sound is part of the shot rather than a switch on it: synchronised dialogue, scene sound and an audience-only score directed as three separate layers in ONE pass, across eleven languages. Kling and Seedance treat audio as on/off. Only H3 also carries a DECLARED REFERENCE RELATIONSHIP (kept whole, partly kept, transferred, or a loose echo). VIDEO-ONLY. Its top two resolution tiers are UPSCALES of the native render, not larger generations — judge at native and upscale in post. Reference images past the fifth are a PAID key dimension: pass referenceImages when quoting.\nMiniMax H3 Max: THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default. A post-train of the H3 weights: MEASURED 2026-08-27 at about 12x faster than base H3 on the same prompt and params, queue to finished file, plus a thin vendor-reported quality edge. It tops out at a 1080p refinement of its 768p render. It takes the same omni-reference set as base H3 and animates start and end frames — but not both in one call, the same as base H3: frames and references go to different endpoints. Never describe this row as taking no image or reference input. Route here when a fast turnaround on text-to-video or a start-frame shot is worth the premium.\nMiniMax H3 Max Turbo: THE BUDGET SEAT of the MiniMax family: a second post-train of the H3 weights, billed at half H3 Max's rate at every tier. Its 1080p is a refinement of the native 768p render, not a native 1080p generation. INPUTS ARE FRAMES, NOT REFERENCES: text-to-video and start/end frames only, with no reference endpoint, so reference-driven consistency goes to H3 Max or base H3. Route here for drafts, volume and cheap coverage, then re-run the keeper on H3 Max or a hero seat.\nLTX-2.5: THE VOLUME SEAT — the cheapest 1080p second with sound included, and the row for MANY takes rather than one hero shot. Native synced audio is included free at every tier, unlike Kling where sound is a paid key dimension. It supports native high-resolution output and longer takes than most seats; use the capability surface for its resolution-dependent duration limits. VIDEO-ONLY. INPUTS ARE FRAMES, NOT REFERENCES: start frame plus an optional end frame, and no reference endpoint at all — for character consistency across shots use H3 or Kling. Route here for batch coverage, long takes, and anything where the credit budget is the binding constraint.\nLTX-2.5 Pro: THE FIDELITY SEAT of the LTX pair — the full diffusion build against the base row's distilled one. 🚨 IT IS NOT A SUPERSET OF THE BASE ROW, which is the opposite of every other Pro seat here: it reaches a SHORTER resolution ladder and makes SHORTER clips, and it costs more at both tiers they share. Reaching for it because the name says Pro costs more AND takes away reach. Everything else matches the base row. Route here only when a specific shot needs the fidelity and fits inside its narrower envelope.\n\n### video edit\n\nSeedance 2.5 Edit: VIDEO-TO-VIDEO EDIT via slates_edit_video, and the only edit engine that takes a clip longer than the other two reach — that length is the whole reason to route here. Inside their range, compare on fidelity instead: Omni Flash edit won the prompt-only head-to-head, and Kling edit is the one that takes reference images. Edits audio on the same row (re-voice, re-accent, translate with re-fitted lips, replace BGM). Costs about 1.2x a plain 2.5 generation of the same length: an edit bills at twice the reduced video-reference rate.\nKling O3 Video Edit: VIDEO-TO-VIDEO EDIT, the REF-DRIVEN one: it is the only edit seat that takes element/style reference images to lock subject identity, and its keepAudio preserves the original audio verbatim. Route here when an edit NEEDS reference images or bit-exact audio; for prompt-only footage-synced VFX, omni-flash-edit won the fidelity head-to-head. One instruction beat per pass — multi-beat prompts get under-executed.\nOmni Flash Edit: VIDEO-TO-VIDEO EDIT, prompt-only — THE EDIT-FIDELITY WINNER (head-to-head vs Kling edit on real talking footage: lips held, audio near-identical, both action beats landed), priced level with Kling O3 Edit Standard. Footage-synced prop, effect, environment and lighting swaps. Takes NO reference images — identity swaps needing refs go to Kling edit. Fidelity is EARNED by prompt discipline; the exact form is in slates-prompting-omni-flash.\n\n### audio generate\n\nSeed Audio 1.0: DEFAULT audio model — the one-pass SCENE workhorse: dialogue, SFX and ambience together from ONE plain sentence. Route here for continuity beds, room tone, crowd and nature soundscapes, and quick scratch VO. AUDIO-ONLY. Takes one image XOR up to three audio clips as references, never both. Prompt form and the length rule are in slates-prompting-seed-audio.\nElevenLabs Sound Effects v2: ONE-SHOT SOUND EFFECT with an EXACT duration — route here for a single hit that must land on a frame (door slam, whoosh, impact, UI blip) or for a seamless loop. AUDIO-ONLY. For layered scenes with dialogue or room tone, seed-audio does it in one pass instead.\nInworld Realtime TTS-2: THE VOICE SEAT — one named voice saying one line, billed per CHARACTER not per second. Route here when WHO is speaking matters. NOT scene audio — that is seed-audio; a single effect is eleven-sfx.",
|
|
17
17
|
"reference-rules-core": "Identity = a few flat-lit neutral angles; one reference per role, named inline; 2-4 refs not 12; describe environments instead of feeding a grid.\n\n1. **2-4 strong references beat both extremes.** Not 1 (warps toward itself), not 12 (averages worse). Start with 2-3 focused refs — each one adds context AND another variable to balance.\n2. **One reference per ROLE, named in the prompt** — identity / style-grade / environment. The model does **not** infer a reference's role from its position in the list; the inline name carries it. Same-role competitors drift (two \"identity\" refs of different people blend into a third face). Slates resolves `@mentions` / `#tags` into numbered citations. You can also bind references directly in scene prose, naming what each image supplies.\n3. **One identity sheet per character, named inline.** A character's identity is a single asset (dominant portrait + body panels), so attach that one asset rather than a pile of views: **fewer competing renderings of a face is better, because the model cannot tell which one is authoritative and averages them.** Slates cites it as `Marcus (image 1)`. **Do NOT hand-write a \"Reference Image Instructions\" block or role essays** (\"use for identity, ignore the outfit, render a neutral expression\") — that drags the sheet's studio lighting and wardrobe into a scene that asked for neither. The prompt leads; the user's words own wardrobe, expression, lighting, and action.\n4. **Flat-light identity refs.** Prep identity references with flat, even, shadowless lighting on a plain neutral background. A studio-lit or scene-lit character sheet bleeds its lighting into every generation — the failure looks like the subject was green-screen-pasted in front of the location. Reference prep beats prompting here.\n5. **Environment: describe it, don't feed a grid.** Default to describing the location in words and let the model build a space that fits the shot. Reserve an environment reference for a mandatory exact-match, and then use ONE clean establishing image with natural ambient light that reads as the location's real light — never a multi-panel grid fed whole.\n6. **Grids: explore, don't input.** Use grids to explore compositions cheaply, then pick a cell. Never feed a grid back in as a reference — the cells share a split detail budget and were generated jointly, so their flaws propagate.\n7. **Reuse the same refs across every shot** in a sequence. Lock a set and keep it; swapping references mid-sequence causes drift, because the model adapts each reference to the current prompt rather than copying it.\n8. **Legible in-shot text → bake it into a still start frame, never trust text-to-video.** Have an image model render the text, then animate from that locked frame. Video models smear type.\n9. **Working from existing media — describe ONLY what changes.** The source already carries its composition, motion, timing, and performance; re-describing them fights the model. Narrate the delta. (Video lane: restyle your own clip while keeping the performance; delayed-VFX on \"video one\"; marker-object insertion; video-as-reference for a series.)\n10. **Style transforms happen in natural language.** By default the source's artistic medium and visual style are inherited. To change it, add a plain-text instruction (\"anime → real person\"). There are no preset pickers, and there is no style slider.",
|
|
18
18
|
"reference-tips-short": "Name each reference inline; never write role essays. Slates does this for you: `@mention` a subject or environment and it composes `Marcus (image 1) in the cafe (image 2)`, citing them in the exact order it sends them. One canonical identity image avoids competing facial renderings; a \"Reference Image Instructions\" block drags reference lighting into your scene. Start with 2-3 focused refs.",
|
|
19
19
|
"references-read-literally": "> **The general law: the model reads a reference literally.**\n> A reference image is not a suggestion. Whatever is baked into it — lighting, medium, texture, symmetry, competing identities — is read as a **property of the subject** and reproduced downstream. A baked rim light tints every shot made from that sheet. A sheet that looks like a 3D game render gets animated like game footage. Two competing renderings of one face get averaged into a third face.\n\nEvery reference rule below is a corollary of that one sentence, which is why \"prep the reference\" beats \"prompt around the reference\" every time:\n\n- **Flat, plain identity refs** — because scene lighting in the sheet becomes scene lighting in the output (Slates' own receipt: a studio-lit sheet produced a subject that looked green-screen-pasted in front of mountains).\n- **One authoritative rendering per subject** — because the model cannot tell which panel is the real one. ByteDance documents this failure directly: multi-view character assets \"confuse the model's character recognition, causing it to generate duplicate characters of the same appearance.\"\n- **No 3D-game-render look in a reference** — the model recognizes the render mood and inherits its motion character, so the *animation* comes out looking like game footage. This is not a taste rule; it is the same literal-reading mechanism applied to the temporal layer.\n- **Break perfect symmetry** — mirrored faces and dead-square framing read as synthetic, and the model preserves that reading rather than correcting it.\n\n**What this means in practice:** when output is wrong in a way that tracks the *subject* rather than the *scene* — the lighting is wrong the same way in every shot, the face drifts, the material looks synthetic everywhere — fix the reference, not the prompt. Prompting around a baked-in property is the expensive way to lose.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Per-model PROMPTING TIPS — the short, curated, FREE prompting guidance.
|
|
2
2
|
// SINGLE SOURCE OF TRUTH: this file. Nothing downstream authors tips copy (no
|
|
3
|
-
// hand-written tips JSX or prose anywhere — that's how the Omni Flash
|
|
4
|
-
//
|
|
3
|
+
// hand-written tips JSX or prose anywhere — that's how the Omni Flash modal shipped
|
|
4
|
+
// showing another model's tips under a Kling title).
|
|
5
5
|
//
|
|
6
6
|
// WHERE IT RENDERS (changed 2026-08-10): exactly one place, the generated page
|
|
7
7
|
// https://slates.video/docs/prompting, emitted by slates-web
|
|
@@ -137,21 +137,21 @@ const SEEDANCE_25 = {
|
|
|
137
137
|
[
|
|
138
138
|
{
|
|
139
139
|
heading: '720p is not the cheap one here',
|
|
140
|
-
example: '30s \u00b7 720p \u00b7 Face
|
|
140
|
+
example: '30s \u00b7 720p \u00b7 Seedance 2.5 Face = 489 credits\n15s \u00b7 1080p \u00b7 Seedance 2.0 Face = 411 credits',
|
|
141
141
|
note: 'Length is what moves the price, and 2.5 doubles the length ceiling — so a 30-second 720p clip can cost more than a 15-second 1080p one, against a 1,000-credit starting balance. Explore at short LENGTH rather than low resolution: cut the seconds to 4-8 while you are finding the shot, and stay at the resolution you actually want. A 480p pass does not de-risk a 720p render — generation is stochastic, so the 720p run is a different take, not the same shot rendered better. The Generate button always shows the exact number first.',
|
|
142
142
|
critical: true,
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
heading: 'Audio-only references',
|
|
146
146
|
example: 'Reference the timbre in audio 1 to generate...',
|
|
147
|
-
note: '2.5 accepts an audio reference on its own — a voice line, a music bed, a room tone — with no image or video alongside it. 2.0 could not. Audio references never cost extra on any Seedance
|
|
147
|
+
note: '2.5 accepts an audio reference on its own — a voice line, a music bed, a room tone — with no image or video alongside it. 2.0 could not. Audio references never cost extra on any Seedance row.',
|
|
148
148
|
},
|
|
149
149
|
...SEEDANCE.columns[1],
|
|
150
150
|
],
|
|
151
151
|
],
|
|
152
152
|
footer: [
|
|
153
153
|
'30 image references is a budget, not a target — 2-4 strong references still beat both extremes, one per role. ByteDance\'s own ceilings for 2.5: 1-8 subjects bound by image reference stay stable (9-12 works but needs re-rolls), 1-5 subjects bound by video or audio reference, and 5-10 seconds is the sweet spot for a reference clip. Unlike 2.0, a multi-view turnaround sheet can be a single subject reference here — past 5 subjects, go back to one view per image. The larger budget is for long multi-shot takes and for video plus audio references alongside images.',
|
|
154
|
-
'A reference VIDEO bills input seconds PLUS output seconds, and 2.5 accepts references up to 30s combined — so a 20-second reference driving a 20-second output bills 40 seconds. On
|
|
154
|
+
'A reference VIDEO bills input seconds PLUS output seconds, and 2.5 accepts references up to 30s combined — so a 20-second reference driving a 20-second output bills 40 seconds. On a Face row the reference counts as at least as long as the output: a 5-second reference on a 20-second output bills 40 seconds, not 25. The Generate button shows the total.',
|
|
155
155
|
...(SEEDANCE.footer ?? []).slice(0, 2),
|
|
156
156
|
'Frames and reference images stay mutually exclusive, and on a first/last-frame generation Seedance 2.5 chooses the aspect ratio itself — the ratio control shows "Adaptive" because the start frame decides the shape.',
|
|
157
157
|
],
|
|
@@ -179,7 +179,7 @@ const SEEDANCE_25_EDIT = {
|
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
heading: 'Turn Face on when a face is visible',
|
|
182
|
-
note: '
|
|
182
|
+
note: 'Without Face, a character face in the clip is refused outright — this is not a price optimisation, it is whether the job runs at all. Editing has no consented real-person option; real-person footage the Face row rejects has to go to Kling O3 Edit.',
|
|
183
183
|
critical: true,
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -592,7 +592,7 @@ const MINIMAX_H3 = {
|
|
|
592
592
|
label: 'MiniMax H3',
|
|
593
593
|
intro: [
|
|
594
594
|
'MiniMax H3 generates picture and sound in one pass — 24fps, 32kHz stereo, 5-15 seconds, 11 stably-supported languages. It is the only video model in Slates where audio is AUTHORED rather than switched on: synchronised dialogue and action sounds go in the body of the prompt, ambience goes in a soundscape section, and audience-only music goes in a score section. Put a sound in the wrong section and it is dropped, doubled, or attributed to the wrong source.',
|
|
595
|
-
'Three models. Base H3 runs 480p / 768p / 2K / 4K; H3 Max is
|
|
595
|
+
'Three models. Base H3 runs 480p / 768p / 2K / 4K; H3 Max is a faster post-train and runs 480p / 768p / 1080p, dearer than base H3 at 768p and equal at 480p - a deliberate speed pick, never the cheap one; H3 Max Turbo has Max\'s ladder at half Max\'s rate and takes NO references. Base H3 and Max read up to 9 reference images plus 3 video and 3 audio clips (12 files total, and audio never travels alone); all three animate a start frame and an end frame. 768p is the default on all three because it is the tier the model natively generates; base H3\'s 2K and 4K are upscales of a 768p base, and 1080p on Max and Turbo is a refinement of it. Reference images past the free allowance are billed and the allowances DIFFER: 5 free on base H3, 4 on Max.',
|
|
596
596
|
],
|
|
597
597
|
columns: [
|
|
598
598
|
[
|
|
@@ -622,7 +622,7 @@ const MINIMAX_H3 = {
|
|
|
622
622
|
{
|
|
623
623
|
heading: 'Cite references by number',
|
|
624
624
|
example: 'Marcus (image 1) walks into the workshop (image 2)...',
|
|
625
|
-
note: `H3 takes references as typed slots and expects plain numbered prose — image 1, video 1, audio 1, each modality counted separately from 1.
|
|
625
|
+
note: `H3 takes references as typed slots and expects plain numbered prose — image 1, video 1, audio 1, each modality counted separately from 1. The endpoint's own prompt-field description: "Refer to reference assets by their modality and order in the reference lists: Image 1, Image 2, Video 1, Audio 1, and so on." Do not hand-write angle-bracket tags — MiniMax's guides use \`<Subject N>\` / \`<Audio N>\` as DOCUMENTATION notation and typing them puts literal brackets in the prompt. An audio reference binds as a voice timbre to a named speaker, the same primitive Seedance uses. ${PARTIALS['reference-tips-short']}`,
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
628
|
heading: 'Say how much of a reference survives',
|
|
@@ -87,7 +87,7 @@ export interface SpeechRate {
|
|
|
87
87
|
*/
|
|
88
88
|
export declare const SPEECH_RATE_QUERY: string;
|
|
89
89
|
/** When the numbers below were last derived from the query above. */
|
|
90
|
-
export declare const SPEECH_RATE_MEASURED_ON = "2026-
|
|
90
|
+
export declare const SPEECH_RATE_MEASURED_ON = "2026-10-17";
|
|
91
91
|
/**
|
|
92
92
|
* 🔑 THE REGISTER SPLIT IS REAL AND MEASURED, which is why there is no single
|
|
93
93
|
* number. the performed, genre-acted reads run a median of 133 wpm;
|
|
@@ -119,7 +119,7 @@ export declare const SPEECH_RATE: {
|
|
|
119
119
|
*/
|
|
120
120
|
readonly ceiling: {
|
|
121
121
|
readonly wpm: 283;
|
|
122
|
-
readonly n:
|
|
122
|
+
readonly n: 70;
|
|
123
123
|
readonly segment: "max over every marked row";
|
|
124
124
|
};
|
|
125
125
|
};
|
|
@@ -124,7 +124,7 @@ SELECT id, speech_rate, duration_seconds, transcript
|
|
|
124
124
|
-- statistic: median per register; ceiling = max over every marked row
|
|
125
125
|
`.trim();
|
|
126
126
|
/** When the numbers below were last derived from the query above. */
|
|
127
|
-
export const SPEECH_RATE_MEASURED_ON = '2026-
|
|
127
|
+
export const SPEECH_RATE_MEASURED_ON = '2026-10-17';
|
|
128
128
|
/**
|
|
129
129
|
* 🔑 THE REGISTER SPLIT IS REAL AND MEASURED, which is why there is no single
|
|
130
130
|
* number. the performed, genre-acted reads run a median of 133 wpm;
|
|
@@ -142,7 +142,7 @@ export const SPEECH_RATE = {
|
|
|
142
142
|
* 250, not p90: those are rates real ads actually hit, and flagging an
|
|
143
143
|
* achievable read is exactly how a check gets ignored.
|
|
144
144
|
*/
|
|
145
|
-
ceiling: { wpm: 283, n:
|
|
145
|
+
ceiling: { wpm: 283, n: 70, segment: 'max over every marked row' },
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* The default register, and there is deliberately no picker for it.
|