@slatesvideo/shared 0.4.8 → 0.5.0
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/operations/index.d.ts +43 -6
- package/dist/operations/index.js +371 -51
- package/dist/prompts/model-facts.js +34 -2
- package/dist/prompts/reference-composer.d.ts +35 -0
- package/dist/prompts/reference-composer.js +81 -0
- package/dist/skills/content.js +8 -7
- package/package.json +1 -1
- package/skills/slates-content-policy.md +8 -0
- package/skills/slates-model-selection.md +31 -1
- package/skills/slates-prompting-gpt-image-2.md +40 -0
- package/skills/slates-prompting-kling-v3.md +26 -0
- package/skills/slates-prompting-lip-sync.md +22 -8
- package/skills/slates-prompting-motion-transfer.md +21 -7
- package/skills/slates-prompting-nano-banana-2.md +9 -0
- package/skills/slates-prompting-seedance.md +9 -0
|
@@ -33,7 +33,8 @@ export declare const estimateGenerationCost: Operation<{
|
|
|
33
33
|
quantity?: number;
|
|
34
34
|
duration?: number;
|
|
35
35
|
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
36
|
-
resolution?: '1k' | '2k' | '4k';
|
|
36
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
37
|
+
quality?: 'medium' | 'high';
|
|
37
38
|
sound?: boolean;
|
|
38
39
|
seedanceFace?: boolean;
|
|
39
40
|
seedanceRealFace?: boolean;
|
|
@@ -142,12 +143,14 @@ export declare const addFrame: Operation<{
|
|
|
142
143
|
notes?: string;
|
|
143
144
|
position?: number;
|
|
144
145
|
}>;
|
|
146
|
+
export type ImageModelId = 'nano-banana-2' | 'nano-banana-2-lite' | 'nano-banana-pro' | 'gpt-image-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
145
147
|
export declare const generateImage: Operation<{
|
|
146
148
|
prompt: string;
|
|
147
|
-
model?:
|
|
149
|
+
model?: ImageModelId;
|
|
148
150
|
projectId?: string;
|
|
149
|
-
resolution?: '1k' | '2k' | '4k';
|
|
151
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
150
152
|
aspectRatio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '21:9' | '9:21' | '4:5' | '5:4' | '2:3' | '3:2';
|
|
153
|
+
quality?: 'medium' | 'high';
|
|
151
154
|
count?: number;
|
|
152
155
|
referenceImageUrls?: string[];
|
|
153
156
|
referenceAssetIds?: string[];
|
|
@@ -158,9 +161,10 @@ export declare const editImage: Operation<{
|
|
|
158
161
|
projectId: string;
|
|
159
162
|
sourceAssetId: string;
|
|
160
163
|
prompt: string;
|
|
161
|
-
editModel?: 'nano-banana-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
164
|
+
editModel?: 'nano-banana-2' | 'nano-banana-2-lite' | 'nano-banana-pro' | 'gpt-image-2' | 'flux-2-max' | 'seedream-5-lite';
|
|
162
165
|
referenceAssetIds?: string[];
|
|
163
|
-
resolution?: '1k' | '2k' | '4k';
|
|
166
|
+
resolution?: '1k' | '2k' | '3k' | '4k';
|
|
167
|
+
quality?: 'medium' | 'high';
|
|
164
168
|
aspectRatio?: string;
|
|
165
169
|
confirm?: boolean;
|
|
166
170
|
background?: boolean;
|
|
@@ -174,7 +178,12 @@ export declare function videoCostKey(input: {
|
|
|
174
178
|
sound?: boolean;
|
|
175
179
|
seedanceFace?: boolean;
|
|
176
180
|
seedanceRealFace?: boolean;
|
|
181
|
+
/** Seedance only: ceiled combined seconds of reference VIDEO inputs (motion
|
|
182
|
+
* transfer / lip-sync on video / relocate). >0 bills the vref key on TOTAL
|
|
183
|
+
* (input+output) seconds — the server re-derives this by probing the refs. */
|
|
184
|
+
videoRefSeconds?: number;
|
|
177
185
|
}): string;
|
|
186
|
+
export declare function klingEditCostKey(model: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit', duration: number): string;
|
|
178
187
|
export declare const generateVideo: Operation<{
|
|
179
188
|
prompt: string;
|
|
180
189
|
model: string;
|
|
@@ -189,6 +198,8 @@ export declare const generateVideo: Operation<{
|
|
|
189
198
|
environmentAssetIds?: string[];
|
|
190
199
|
styleAssetIds?: string[];
|
|
191
200
|
videoReferenceAssetId?: string;
|
|
201
|
+
videoReferenceSeconds?: number;
|
|
202
|
+
audioReferenceAssetId?: string;
|
|
192
203
|
sound?: boolean;
|
|
193
204
|
audioLanguage?: 'EN' | 'ZH' | 'JA' | 'KO' | 'ES';
|
|
194
205
|
generateMusic?: boolean;
|
|
@@ -211,6 +222,14 @@ export declare const generateLipSync: Operation<{
|
|
|
211
222
|
audioFilePath?: string;
|
|
212
223
|
avatarModel?: 'avatar-standard' | 'avatar-pro';
|
|
213
224
|
klingProvider?: 'fal' | 'kling';
|
|
225
|
+
engine?: 'kling' | 'seedance-2';
|
|
226
|
+
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
227
|
+
aspectRatio?: string;
|
|
228
|
+
seedanceFace?: boolean;
|
|
229
|
+
seedanceRealFace?: boolean;
|
|
230
|
+
realFaceConsent?: boolean;
|
|
231
|
+
sourceSeconds?: number;
|
|
232
|
+
audioSeconds?: number;
|
|
214
233
|
background?: boolean;
|
|
215
234
|
confirm?: boolean;
|
|
216
235
|
}>;
|
|
@@ -218,10 +237,28 @@ export declare const generateMotionTransfer: Operation<{
|
|
|
218
237
|
projectId: string;
|
|
219
238
|
sourceVideoAssetId: string;
|
|
220
239
|
targetImageAssetId: string;
|
|
221
|
-
motionModel?: 'kling-mc-std' | 'kling-mc-pro';
|
|
240
|
+
motionModel?: 'kling-mc-std' | 'kling-mc-pro' | 'seedance-2';
|
|
222
241
|
characterOrientation?: 'video' | 'image';
|
|
223
242
|
prompt?: string;
|
|
224
243
|
klingProvider?: 'fal' | 'kling';
|
|
244
|
+
duration?: number;
|
|
245
|
+
videoResolution?: '480p' | '720p' | '1080p' | '4k';
|
|
246
|
+
aspectRatio?: string;
|
|
247
|
+
seedanceFace?: boolean;
|
|
248
|
+
seedanceRealFace?: boolean;
|
|
249
|
+
realFaceConsent?: boolean;
|
|
250
|
+
sourceVideoSeconds?: number;
|
|
251
|
+
background?: boolean;
|
|
252
|
+
confirm?: boolean;
|
|
253
|
+
}>;
|
|
254
|
+
export declare const editVideo: Operation<{
|
|
255
|
+
projectId: string;
|
|
256
|
+
sourceVideoAssetId: string;
|
|
257
|
+
prompt: string;
|
|
258
|
+
model?: 'kling-v3.0-omni-edit' | 'kling-v3.0-omni-pro-edit';
|
|
259
|
+
characterAssetIds?: string[];
|
|
260
|
+
styleAssetIds?: string[];
|
|
261
|
+
keepAudio?: boolean;
|
|
225
262
|
background?: boolean;
|
|
226
263
|
confirm?: boolean;
|
|
227
264
|
}>;
|