@ai-sdk/black-forest-labs 2.0.20 → 2.0.21
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/CHANGELOG.md +8 -0
- package/README.md +16 -2
- package/dist/index.d.ts +27 -4
- package/dist/index.js +745 -80
- package/dist/index.js.map +1 -1
- package/docs/12-black-forest-labs.mdx +250 -3
- package/package.json +2 -2
- package/src/black-forest-labs-api.ts +58 -0
- package/src/black-forest-labs-image-model.ts +4 -51
- package/src/black-forest-labs-provider.ts +29 -2
- package/src/black-forest-labs-video-model-options.ts +92 -0
- package/src/black-forest-labs-video-model.ts +778 -0
- package/src/black-forest-labs-video-settings.ts +22 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// https://docs.bfl.ai/api-reference/utility/generate-a-video-with-flux-3
|
|
2
|
+
export type BlackForestLabsVideoModelId = 'flux-3-video' | (string & {});
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Aspect ratios FLUX 3 video accepts. `auto` lets the model infer the ratio
|
|
6
|
+
* from the prompt and any conditioning media, and is the API default.
|
|
7
|
+
*/
|
|
8
|
+
export const blackForestLabsVideoAspectRatios = [
|
|
9
|
+
'21:9',
|
|
10
|
+
'2:1',
|
|
11
|
+
'16:9',
|
|
12
|
+
'4:3',
|
|
13
|
+
'1:1',
|
|
14
|
+
'3:4',
|
|
15
|
+
'9:16',
|
|
16
|
+
'auto',
|
|
17
|
+
] as const;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Output resolution tiers FLUX 3 video accepts.
|
|
21
|
+
*/
|
|
22
|
+
export const blackForestLabsVideoResolutions = ['hd', 'fhd'] as const;
|
package/src/index.ts
CHANGED
|
@@ -15,4 +15,6 @@ export type {
|
|
|
15
15
|
/** @deprecated Use `BlackForestLabsImageModelOptions` instead. */
|
|
16
16
|
BlackForestLabsImageModelOptions as BlackForestLabsImageProviderOptions,
|
|
17
17
|
} from './black-forest-labs-image-model-options';
|
|
18
|
+
export type { BlackForestLabsVideoModelId } from './black-forest-labs-video-settings';
|
|
19
|
+
export type { BlackForestLabsVideoModelOptions } from './black-forest-labs-video-model-options';
|
|
18
20
|
export { VERSION } from './version';
|