Skip to content

Commit ee7e06b

Browse files
ci: apply automated fixes
1 parent 243ebf1 commit ee7e06b

10 files changed

Lines changed: 1428 additions & 1438 deletions

File tree

examples/ts-react-media/src/components/VideoGenerator.tsx

Lines changed: 150 additions & 154 deletions
Large diffs are not rendered by default.
Lines changed: 155 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,228 +1,228 @@
11
export const IMAGE_MODELS = [
22
{
3-
id: "fal-ai/nano-banana-pro",
4-
name: "Nano Banana Pro (4k)",
5-
description: "Fast, high-quality image generation",
6-
defaultSize: "landscape_16_9" as const,
7-
sizeType: "standard" as const,
8-
provider: "fal" as const,
3+
id: 'fal-ai/nano-banana-pro',
4+
name: 'Nano Banana Pro (4k)',
5+
description: 'Fast, high-quality image generation',
6+
defaultSize: 'landscape_16_9' as const,
7+
sizeType: 'standard' as const,
8+
provider: 'fal' as const,
99
},
1010
{
11-
id: "xai/grok-imagine-image",
12-
name: "Grok Imagine",
13-
description: "xAI highly aesthetic images with prompt enhancement",
14-
defaultSize: "16:9" as const,
15-
sizeType: "aspect_ratio" as const,
16-
provider: "fal" as const,
11+
id: 'xai/grok-imagine-image',
12+
name: 'Grok Imagine',
13+
description: 'xAI highly aesthetic images with prompt enhancement',
14+
defaultSize: '16:9' as const,
15+
sizeType: 'aspect_ratio' as const,
16+
provider: 'fal' as const,
1717
},
1818
{
19-
id: "grok-imagine-image",
20-
name: "Grok Imagine (xAI Direct)",
21-
description: "xAI Imagine API via the native grokImage adapter",
22-
defaultSize: "16:9" as const,
23-
sizeType: "aspect_ratio" as const,
24-
provider: "xai" as const,
19+
id: 'grok-imagine-image',
20+
name: 'Grok Imagine (xAI Direct)',
21+
description: 'xAI Imagine API via the native grokImage adapter',
22+
defaultSize: '16:9' as const,
23+
sizeType: 'aspect_ratio' as const,
24+
provider: 'xai' as const,
2525
},
2626
{
27-
id: "grok-imagine-image-quality",
28-
name: "Grok Imagine Quality (xAI Direct)",
29-
description: "Higher-quality xAI Imagine images via the native adapter",
30-
defaultSize: "16:9" as const,
31-
sizeType: "aspect_ratio" as const,
32-
provider: "xai" as const,
27+
id: 'grok-imagine-image-quality',
28+
name: 'Grok Imagine Quality (xAI Direct)',
29+
description: 'Higher-quality xAI Imagine images via the native adapter',
30+
defaultSize: '16:9' as const,
31+
sizeType: 'aspect_ratio' as const,
32+
provider: 'xai' as const,
3333
},
3434
{
35-
id: "fal-ai/flux-2/klein/9b",
36-
name: "FLUX.2 Klein 9B",
37-
description: "Enhanced realism, crisp text generation",
38-
defaultSize: "landscape_16_9" as const,
39-
sizeType: "standard" as const,
40-
provider: "fal" as const,
35+
id: 'fal-ai/flux-2/klein/9b',
36+
name: 'FLUX.2 Klein 9B',
37+
description: 'Enhanced realism, crisp text generation',
38+
defaultSize: 'landscape_16_9' as const,
39+
sizeType: 'standard' as const,
40+
provider: 'fal' as const,
4141
},
4242
{
43-
id: "fal-ai/z-image/turbo",
44-
name: "Z-Image Turbo",
45-
description: "Super fast 6B parameter model",
46-
defaultSize: "landscape_16_9" as const,
47-
sizeType: "standard" as const,
48-
provider: "fal" as const,
43+
id: 'fal-ai/z-image/turbo',
44+
name: 'Z-Image Turbo',
45+
description: 'Super fast 6B parameter model',
46+
defaultSize: 'landscape_16_9' as const,
47+
sizeType: 'standard' as const,
48+
provider: 'fal' as const,
4949
},
5050
{
51-
id: "gemini-3.1-flash-image-preview",
52-
name: "NanoBanana 2 (Gemini 3.1 Flash)",
53-
description: "Latest and fastest Gemini native image generation",
54-
defaultSize: "16:9_4K" as const,
55-
sizeType: "native" as const,
56-
provider: "gemini" as const,
51+
id: 'gemini-3.1-flash-image-preview',
52+
name: 'NanoBanana 2 (Gemini 3.1 Flash)',
53+
description: 'Latest and fastest Gemini native image generation',
54+
defaultSize: '16:9_4K' as const,
55+
sizeType: 'native' as const,
56+
provider: 'gemini' as const,
5757
},
5858
{
59-
id: "gemini-3-pro-image-preview",
60-
name: "NanoBanana Pro (Gemini 3 Pro)",
61-
description: "Higher quality Gemini native image generation",
62-
defaultSize: "16:9_4K" as const,
63-
sizeType: "native" as const,
64-
provider: "gemini" as const,
59+
id: 'gemini-3-pro-image-preview',
60+
name: 'NanoBanana Pro (Gemini 3 Pro)',
61+
description: 'Higher quality Gemini native image generation',
62+
defaultSize: '16:9_4K' as const,
63+
sizeType: 'native' as const,
64+
provider: 'gemini' as const,
6565
},
6666
{
67-
id: "imagen-4.0-ultra-generate-001",
68-
name: "Imagen 4.0 Ultra",
69-
description: "Best quality Imagen image generation",
70-
defaultSize: "1024x1024" as const,
71-
sizeType: "standard" as const,
72-
provider: "gemini" as const,
67+
id: 'imagen-4.0-ultra-generate-001',
68+
name: 'Imagen 4.0 Ultra',
69+
description: 'Best quality Imagen image generation',
70+
defaultSize: '1024x1024' as const,
71+
sizeType: 'standard' as const,
72+
provider: 'gemini' as const,
7373
},
7474
{
75-
id: "imagen-4.0-generate-001",
76-
name: "Imagen 4.0",
77-
description: "High quality Imagen image generation",
78-
defaultSize: "1024x1024" as const,
79-
sizeType: "standard" as const,
80-
provider: "gemini" as const,
75+
id: 'imagen-4.0-generate-001',
76+
name: 'Imagen 4.0',
77+
description: 'High quality Imagen image generation',
78+
defaultSize: '1024x1024' as const,
79+
sizeType: 'standard' as const,
80+
provider: 'gemini' as const,
8181
},
8282
{
83-
id: "imagen-4.0-fast-generate-001",
84-
name: "Imagen 4.0 Fast",
85-
description: "Fast Imagen image generation",
86-
defaultSize: "1024x1024" as const,
87-
sizeType: "standard" as const,
88-
provider: "gemini" as const,
83+
id: 'imagen-4.0-fast-generate-001',
84+
name: 'Imagen 4.0 Fast',
85+
description: 'Fast Imagen image generation',
86+
defaultSize: '1024x1024' as const,
87+
sizeType: 'standard' as const,
88+
provider: 'gemini' as const,
8989
},
9090
{
91-
id: "dola-seedream-5-0-pro-260628",
92-
name: "Seedream 5.0 Pro",
91+
id: 'dola-seedream-5-0-pro-260628',
92+
name: 'Seedream 5.0 Pro',
9393
description:
94-
"BytePlus Seedream image generation, sized with a 1K/2K/4K token",
95-
defaultSize: "2K" as const,
96-
sizeType: "standard" as const,
97-
provider: "byteplus" as const,
94+
'BytePlus Seedream image generation, sized with a 1K/2K/4K token',
95+
defaultSize: '2K' as const,
96+
sizeType: 'standard' as const,
97+
provider: 'byteplus' as const,
9898
},
99-
] as const;
99+
] as const
100100

101101
export const VIDEO_MODELS = [
102102
{
103-
id: "fal-ai/kling-video/v3/pro/text-to-video",
104-
name: "Kling 3 Pro (Text-to-Video)",
105-
description: "High-quality text-to-video generation",
106-
mode: "text-to-video" as const,
107-
provider: "fal" as const,
103+
id: 'fal-ai/kling-video/v3/pro/text-to-video',
104+
name: 'Kling 3 Pro (Text-to-Video)',
105+
description: 'High-quality text-to-video generation',
106+
mode: 'text-to-video' as const,
107+
provider: 'fal' as const,
108108
},
109109
{
110-
id: "fal-ai/kling-video/v3/pro/image-to-video",
111-
name: "Kling 3 Pro (Image-to-Video)",
112-
description: "Animate images with Kling",
113-
mode: "image-to-video" as const,
114-
provider: "fal" as const,
110+
id: 'fal-ai/kling-video/v3/pro/image-to-video',
111+
name: 'Kling 3 Pro (Image-to-Video)',
112+
description: 'Animate images with Kling',
113+
mode: 'image-to-video' as const,
114+
provider: 'fal' as const,
115115
},
116116
{
117-
id: "fal-ai/veo3.1",
118-
name: "Veo 3.1 (Text-to-Video)",
119-
description: "Google Veo text-to-video",
120-
mode: "text-to-video" as const,
121-
provider: "fal" as const,
117+
id: 'fal-ai/veo3.1',
118+
name: 'Veo 3.1 (Text-to-Video)',
119+
description: 'Google Veo text-to-video',
120+
mode: 'text-to-video' as const,
121+
provider: 'fal' as const,
122122
},
123123
{
124-
id: "fal-ai/veo3.1/image-to-video",
125-
name: "Veo 3.1 (Image-to-Video)",
126-
description: "Google Veo image-to-video",
127-
mode: "image-to-video" as const,
128-
provider: "fal" as const,
124+
id: 'fal-ai/veo3.1/image-to-video',
125+
name: 'Veo 3.1 (Image-to-Video)',
126+
description: 'Google Veo image-to-video',
127+
mode: 'image-to-video' as const,
128+
provider: 'fal' as const,
129129
},
130130
{
131-
id: "xai/grok-imagine-video/text-to-video",
132-
name: "Grok Imagine Video (Text-to-Video)",
133-
description: "xAI video generation from text",
134-
mode: "text-to-video" as const,
135-
provider: "fal" as const,
131+
id: 'xai/grok-imagine-video/text-to-video',
132+
name: 'Grok Imagine Video (Text-to-Video)',
133+
description: 'xAI video generation from text',
134+
mode: 'text-to-video' as const,
135+
provider: 'fal' as const,
136136
},
137137
{
138-
id: "xai/grok-imagine-video/image-to-video",
139-
name: "Grok Imagine Video (Image-to-Video)",
140-
description: "xAI animate images to video",
141-
mode: "image-to-video" as const,
142-
provider: "fal" as const,
138+
id: 'xai/grok-imagine-video/image-to-video',
139+
name: 'Grok Imagine Video (Image-to-Video)',
140+
description: 'xAI animate images to video',
141+
mode: 'image-to-video' as const,
142+
provider: 'fal' as const,
143143
},
144144
{
145-
id: "grok-imagine-video",
146-
name: "Grok Imagine Video 1.0 (Text-to-Video)",
145+
id: 'grok-imagine-video',
146+
name: 'Grok Imagine Video 1.0 (Text-to-Video)',
147147
description:
148-
"xAI Imagine API via the native grokVideo adapter (v1.0 supports text-to-video)",
149-
mode: "text-to-video" as const,
150-
provider: "xai" as const,
148+
'xAI Imagine API via the native grokVideo adapter (v1.0 supports text-to-video)',
149+
mode: 'text-to-video' as const,
150+
provider: 'xai' as const,
151151
},
152152
{
153-
id: "grok-imagine-video-1.5/image-to-video",
154-
name: "Grok Imagine Video 1.5 (Image-to-Video)",
153+
id: 'grok-imagine-video-1.5/image-to-video',
154+
name: 'Grok Imagine Video 1.5 (Image-to-Video)',
155155
description:
156-
"Animate a starting frame via the native grokVideo adapter (1.5 is image-to-video only)",
157-
mode: "image-to-video" as const,
158-
provider: "xai" as const,
156+
'Animate a starting frame via the native grokVideo adapter (1.5 is image-to-video only)',
157+
mode: 'image-to-video' as const,
158+
provider: 'xai' as const,
159159
},
160160
{
161-
id: "fal-ai/ltx-2.3/text-to-video/fast",
162-
name: "LTX-2.3 Fast (Text-to-Video)",
163-
description: "Fast text-to-video generation",
164-
mode: "text-to-video" as const,
165-
provider: "fal" as const,
161+
id: 'fal-ai/ltx-2.3/text-to-video/fast',
162+
name: 'LTX-2.3 Fast (Text-to-Video)',
163+
description: 'Fast text-to-video generation',
164+
mode: 'text-to-video' as const,
165+
provider: 'fal' as const,
166166
},
167167
{
168-
id: "fal-ai/ltx-2.3/image-to-video/fast",
169-
name: "LTX-2.3 Fast (Image-to-Video)",
170-
description: "Fast image-to-video animation",
171-
mode: "image-to-video" as const,
172-
provider: "fal" as const,
168+
id: 'fal-ai/ltx-2.3/image-to-video/fast',
169+
name: 'LTX-2.3 Fast (Image-to-Video)',
170+
description: 'Fast image-to-video animation',
171+
mode: 'image-to-video' as const,
172+
provider: 'fal' as const,
173173
},
174174
{
175-
id: "gemini-omni-flash-preview",
176-
name: "Gemini Omni Flash (Text-to-Video)",
175+
id: 'gemini-omni-flash-preview',
176+
name: 'Gemini Omni Flash (Text-to-Video)',
177177
description:
178-
"Google multimodal video generation with conversational editing, via the Interactions API (3-10s, 720p)",
179-
mode: "text-to-video" as const,
180-
provider: "gemini" as const,
178+
'Google multimodal video generation with conversational editing, via the Interactions API (3-10s, 720p)',
179+
mode: 'text-to-video' as const,
180+
provider: 'gemini' as const,
181181
},
182182
{
183-
id: "gemini-omni-flash-preview/image-to-video",
184-
name: "Gemini Omni Flash (Image-to-Video)",
183+
id: 'gemini-omni-flash-preview/image-to-video',
184+
name: 'Gemini Omni Flash (Image-to-Video)',
185185
description:
186-
"Animate an image with Gemini Omni Flash via the Interactions API",
187-
mode: "image-to-video" as const,
188-
provider: "gemini" as const,
186+
'Animate an image with Gemini Omni Flash via the Interactions API',
187+
mode: 'image-to-video' as const,
188+
provider: 'gemini' as const,
189189
},
190190
{
191-
id: "dreamina-seedance-2-0-260128",
192-
name: "Seedance 2.0 (Text-to-Video)",
191+
id: 'dreamina-seedance-2-0-260128',
192+
name: 'Seedance 2.0 (Text-to-Video)',
193193
description:
194-
"BytePlus Seedance text-to-video (4-15s, 480p/720p/1080p/4k) via ModelArk",
195-
mode: "text-to-video" as const,
196-
provider: "byteplus" as const,
194+
'BytePlus Seedance text-to-video (4-15s, 480p/720p/1080p/4k) via ModelArk',
195+
mode: 'text-to-video' as const,
196+
provider: 'byteplus' as const,
197197
},
198198
{
199-
id: "bytedance/seedance-2.0",
200-
name: "Seedance 2.0 (Text-to-Video, OpenRouter)",
199+
id: 'bytedance/seedance-2.0',
200+
name: 'Seedance 2.0 (Text-to-Video, OpenRouter)',
201201
description:
202202
"OpenRouter's async video API; duration typed 4–15s with snapDuration()",
203-
mode: "text-to-video" as const,
204-
provider: "openrouter" as const,
203+
mode: 'text-to-video' as const,
204+
provider: 'openrouter' as const,
205205
},
206206
{
207-
id: "google/veo-3.1",
208-
name: "Veo 3.1 (Image-to-Video, OpenRouter)",
207+
id: 'google/veo-3.1',
208+
name: 'Veo 3.1 (Image-to-Video, OpenRouter)',
209209
description:
210-
"OpenRouter async video; duration snaps to the nearest of 4/6/8s",
211-
mode: "image-to-video" as const,
212-
provider: "openrouter" as const,
210+
'OpenRouter async video; duration snaps to the nearest of 4/6/8s',
211+
mode: 'image-to-video' as const,
212+
provider: 'openrouter' as const,
213213
},
214-
] as const;
214+
] as const
215215

216-
export type ImageModel = (typeof IMAGE_MODELS)[number];
217-
export type VideoModel = (typeof VIDEO_MODELS)[number];
218-
export type VideoMode = "text-to-video" | "image-to-video";
216+
export type ImageModel = (typeof IMAGE_MODELS)[number]
217+
export type VideoModel = (typeof VIDEO_MODELS)[number]
218+
export type VideoMode = 'text-to-video' | 'image-to-video'
219219

220220
/**
221221
* Gemini Omni Flash task modes (`generation_config.video_config.task`).
222222
* Omit to let the model infer the mode from the prompt and attachments.
223223
*/
224224
export type OmniTaskMode =
225-
| "text_to_video"
226-
| "image_to_video"
227-
| "reference_to_video"
228-
| "edit";
225+
| 'text_to_video'
226+
| 'image_to_video'
227+
| 'reference_to_video'
228+
| 'edit'

0 commit comments

Comments
 (0)