@apicity/fal 0.31.0 → 0.31.2

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/src/zod.js CHANGED
@@ -439,7 +439,7 @@ export const FalSeedance2p0MiniReferenceToVideoRequestSchema = z
439
439
  // ---------------------------------------------------------------------------
440
440
  // Bytedance Seedance 2.5 shared vocabularies
441
441
  // ---------------------------------------------------------------------------
442
- const Seedance2p5ResolutionSchema = z.enum(["480p", "720p", "1080p"]);
442
+ const Seedance2p5ResolutionSchema = z.enum(["480p", "720p", "1080p", "4k"]);
443
443
  const Seedance2p5DurationSchema = z.enum([
444
444
  "auto",
445
445
  "4",
@@ -487,7 +487,7 @@ export const FalSeedance2p5TextToVideoRequestSchema = z.object({
487
487
  resolution: Seedance2p5ResolutionSchema.optional(),
488
488
  draft: z
489
489
  .boolean()
490
- .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within seven days.")
490
+ .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p or 4k within 14 days.")
491
491
  .optional(),
492
492
  duration: Seedance2p5DurationSchema.optional(),
493
493
  aspect_ratio: Seedance2p5AspectRatioSchema.optional(),
@@ -515,8 +515,8 @@ export const FalSeedance2p5ImageToVideoRequestSchema = FalSeedance2p5TextToVideo
515
515
  export const FalSeedance2p5ReferenceToVideoRequestSchema = FalSeedance2p5TextToVideoRequestSchema.extend({
516
516
  prompt: z.string().nullable().optional(),
517
517
  task: z
518
- .enum(["reference", "editing", "extension"])
519
- .describe("The type of video generation task. Reference uses the supplied media as guidance. Editing modifies a reference video and automatically coerces aspect_ratio and duration to auto. Extension continues a reference video and automatically coerces aspect_ratio to auto.")
518
+ .enum(["auto", "reference", "editing", "extension"])
519
+ .describe("The type of video generation task. Reference uses the supplied media as guidance. Editing modifies a reference video and automatically coerces aspect_ratio and duration to auto. Extension continues a reference video and automatically coerces aspect_ratio to auto. Auto leaves the task type unset so the model decides it from the prompt and references.")
520
520
  .optional(),
521
521
  image_urls: z.array(z.string()).max(30).optional(),
522
522
  video_urls: z.array(z.string()).max(10).optional(),
@@ -855,7 +855,8 @@ export const FalMeshyV7ImageTo3dRequestSchema = z.object({
855
855
  // is upstream's own "no specific pose" default.
856
856
  is_a_t_pose: z.boolean().optional(),
857
857
  pose_mode: z.enum(["a-pose", "t-pose", ""]).optional(),
858
- texture_prompt: z.string().max(600).optional(),
858
+ // Upstream documents a maximum of 800 characters (re-read 2026-11-27).
859
+ texture_prompt: z.string().max(800).optional(),
859
860
  texture_image_url: z.string().optional(),
860
861
  enable_rigging: z.boolean().optional(),
861
862
  rigging_height_meters: z.number().positive().optional(),
@@ -1073,6 +1074,10 @@ export const FalNanoBananaProTextToImageRequestSchema = z.object({
1073
1074
  "3:4",
1074
1075
  "2:3",
1075
1076
  "9:16",
1077
+ "4:1",
1078
+ "1:4",
1079
+ "8:1",
1080
+ "1:8",
1076
1081
  ])
1077
1082
  .optional(),
1078
1083
  output_format: z.enum(["jpeg", "png", "webp"]).optional(),
@@ -1106,6 +1111,10 @@ export const FalNanoBananaProEditRequestSchema = z.object({
1106
1111
  "3:4",
1107
1112
  "2:3",
1108
1113
  "9:16",
1114
+ "4:1",
1115
+ "1:4",
1116
+ "8:1",
1117
+ "1:8",
1109
1118
  ])
1110
1119
  .optional(),
1111
1120
  output_format: z.enum(["jpeg", "png", "webp"]).optional(),
@@ -1146,10 +1155,14 @@ export const FalSeedreamV5LiteEditRequestSchema = z.object({
1146
1155
  // documented only on the text-to-image surface, so it is absent here.
1147
1156
  // Docs: https://fal.ai/models/fal-ai/bytedance/seedream/v5/lite/edit
1148
1157
  image_size: FalSeedreamV5LiteImageSizeSchema.optional(),
1149
- // Fal documents `num_images` and `max_images` as integers in [1, 6].
1158
+ // Fal documents `num_images` as an integer in [1, 6] and `max_images`
1159
+ // (images per generation in sequential mode) as an integer in [1, 15]
1160
+ // (queue OpenAPI re-read 2026-11-27). Above 1, `max_images` turns
1161
+ // sequential generation on, and input references plus outputs per
1162
+ // generation cannot exceed 15.
1150
1163
  // Docs: https://fal.ai/models/fal-ai/bytedance/seedream/v5/lite/edit
1151
1164
  num_images: z.number().int().min(1).max(6).optional(),
1152
- max_images: z.number().int().min(1).max(6).optional(),
1165
+ max_images: z.number().int().min(1).max(15).optional(),
1153
1166
  sync_mode: z.boolean().optional(),
1154
1167
  enable_safety_checker: z.boolean().optional(),
1155
1168
  });
@@ -1166,10 +1179,14 @@ export const FalSeedreamV5LiteTextToImageRequestSchema = z.object({
1166
1179
  // text-to-image surface only.
1167
1180
  // Docs: https://fal.ai/models/fal-ai/bytedance/seedream/v5/lite/text-to-image
1168
1181
  return_byteplus_urls: z.boolean().optional(),
1169
- // Fal documents `num_images` and `max_images` as integers in [1, 6].
1182
+ // Fal documents `num_images` as an integer in [1, 6] and `max_images`
1183
+ // (images per generation in sequential mode) as an integer in [1, 15]
1184
+ // (queue OpenAPI re-read 2026-11-27). Above 1, `max_images` turns
1185
+ // sequential generation on, and input references plus outputs per
1186
+ // generation cannot exceed 15.
1170
1187
  // Docs: https://fal.ai/models/fal-ai/bytedance/seedream/v5/lite/text-to-image
1171
1188
  num_images: z.number().int().min(1).max(6).optional(),
1172
- max_images: z.number().int().min(1).max(6).optional(),
1189
+ max_images: z.number().int().min(1).max(15).optional(),
1173
1190
  sync_mode: z.boolean().optional(),
1174
1191
  enable_safety_checker: z.boolean().optional(),
1175
1192
  });
@@ -1203,9 +1220,10 @@ export const FalSeedreamV5ProLayerizeRequestSchema = z.object({
1203
1220
  // Bytedance Seedream v5 Pro text-to-image
1204
1221
  // Bytedance Seedream v5 Pro (shared image_size)
1205
1222
  // ---------------------------------------------------------------------------
1206
- // The Pro surface offers `auto_1K`/`auto_2K` where the Lite surface offers
1207
- // `auto_2K`/`auto_3K`/`auto_4K`, so it carries its own union rather than
1208
- // reusing FalSeedreamV5LiteImageSizeSchema.
1223
+ // The Pro surface offers `auto_1K`/`auto_1.5K`/`auto_2K` where the Lite
1224
+ // surface offers `auto_2K`/`auto_3K`/`auto_4K`, so it carries its own union
1225
+ // rather than reusing FalSeedreamV5LiteImageSizeSchema. Both Pro ids list
1226
+ // `auto_1.5K` (queue OpenAPI re-read 2026-11-27).
1209
1227
  // Docs: https://fal.ai/models/bytedance/seedream/v5/pro/text-to-image/api
1210
1228
  // Docs: https://fal.ai/models/bytedance/seedream/v5/pro/edit/api
1211
1229
  const FalSeedreamV5ProImageSizeSchema = z.union([
@@ -1217,6 +1235,7 @@ const FalSeedreamV5ProImageSizeSchema = z.union([
1217
1235
  "landscape_4_3",
1218
1236
  "landscape_16_9",
1219
1237
  "auto_1K",
1238
+ "auto_1.5K",
1220
1239
  "auto_2K",
1221
1240
  ]),
1222
1241
  z.object({ width: z.number(), height: z.number() }),
@@ -1541,6 +1560,7 @@ export const FalAlibabaQwenImage3EditRequestSchema = z.object({
1541
1560
  // defines one schema that both endpoint ids reuse, the same way
1542
1561
  // `fal-ai/wan/v2.7/pro/*` reuses its non-pro schemas.
1543
1562
  // Docs: https://fal.ai/models/alibaba/wan-3.0/text-to-video/api
1563
+ const FalWan3p0PromptSchema = z.string().max(20_000);
1544
1564
  const FalWan3p0ResolutionSchema = z.enum(["480p", "720p", "1080p"]);
1545
1565
  const FalWan3p0AspectRatioSchema = z.enum([
1546
1566
  "adaptive",
@@ -1586,7 +1606,7 @@ const falWan3p0CommonFields = {
1586
1606
  // Alibaba Wan 3.0 text-to-video
1587
1607
  // ---------------------------------------------------------------------------
1588
1608
  export const FalWan3p0TextToVideoRequestSchema = z.object({
1589
- prompt: z.string().min(1).max(5000),
1609
+ prompt: FalWan3p0PromptSchema.min(1),
1590
1610
  ...falWan3p0CommonFields,
1591
1611
  });
1592
1612
  // ---------------------------------------------------------------------------
@@ -1594,7 +1614,7 @@ export const FalWan3p0TextToVideoRequestSchema = z.object({
1594
1614
  // ---------------------------------------------------------------------------
1595
1615
  export const FalWan3p0ImageToVideoRequestSchema = z.object({
1596
1616
  // Optional here — the start frame alone is a complete request.
1597
- prompt: z.string().max(5000).nullable().optional(),
1617
+ prompt: FalWan3p0PromptSchema.nullable().optional(),
1598
1618
  start_image_url: z.string().url(),
1599
1619
  end_image_url: z.string().url().nullable().optional(),
1600
1620
  ...falWan3p0CommonFields,
@@ -1607,7 +1627,7 @@ export const FalWan3p0ImageToVideoRequestSchema = z.object({
1607
1627
  // one grounding input mirrors the `wan/v2.7/reference-to-video` refinement.
1608
1628
  export const FalWan3p0ReferenceToVideoRequestSchema = z
1609
1629
  .object({
1610
- prompt: z.string().max(5000).nullable().optional(),
1630
+ prompt: FalWan3p0PromptSchema.nullable().optional(),
1611
1631
  reference_image_urls: z.array(z.string().url()).max(10).optional(),
1612
1632
  // Up to 5 clips totaling at most 15 seconds, each at least 16 fps.
1613
1633
  reference_video_urls: z.array(z.string().url()).max(5).optional(),
@@ -2344,7 +2364,9 @@ const FalWanV2p7AspectRatioSchema = z.enum([
2344
2364
  const FalWanV2p7ResolutionSchema = z.enum(["720p", "1080p"]);
2345
2365
  const FalWanV2p7AudioSettingSchema = z.enum(["auto", "origin"]);
2346
2366
  export const FalWanV2p7TextToImageRequestSchema = z.object({
2347
- prompt: z.string().min(1).max(500),
2367
+ // The queue OpenAPI caps the prompt at 2000 characters on the base and pro
2368
+ // ids, both served by this schema (re-read 2026-11-27).
2369
+ prompt: z.string().min(1).max(2000),
2348
2370
  negative_prompt: z.string().max(500).optional(),
2349
2371
  image_size: FalWanV2p7ImageSizeSchema.optional(),
2350
2372
  max_images: z.number().int().min(1).max(5).optional(),
@@ -2355,7 +2377,9 @@ export const FalWanV2p7TextToImageRequestSchema = z.object({
2355
2377
  // Wan v2.7 edit (image-to-image)
2356
2378
  // ---------------------------------------------------------------------------
2357
2379
  export const FalWanV2p7EditRequestSchema = z.object({
2358
- prompt: z.string().min(1).max(500),
2380
+ // The queue OpenAPI caps the prompt at 2000 characters on the base and pro
2381
+ // ids, both served by this schema (re-read 2026-11-27).
2382
+ prompt: z.string().min(1).max(2000),
2359
2383
  image_urls: z.array(z.string().url()).min(1).max(4),
2360
2384
  negative_prompt: z.string().max(500).optional(),
2361
2385
  image_size: FalWanV2p7ImageSizeSchema.optional(),
@@ -2465,8 +2489,11 @@ export const FalWanV2p7EditVideoRequestSchema = z.object({
2465
2489
  export const FalXaiGrokImagineImageRequestSchema = z.object({
2466
2490
  prompt: z.string(),
2467
2491
  num_images: z.number().int().min(1).max(4).optional(),
2492
+ // Upstream default "1:1"; `auto` lets the provider choose (queue OpenAPI
2493
+ // re-read 2026-11-27).
2468
2494
  aspect_ratio: z
2469
2495
  .enum([
2496
+ "auto",
2470
2497
  "2:1",
2471
2498
  "20:9",
2472
2499
  "19.5:9",
@@ -2489,6 +2516,8 @@ export const FalXaiGrokImagineImageRequestSchema = z.object({
2489
2516
  // ---------------------------------------------------------------------------
2490
2517
  // xAI Grok Imagine Image v2.0 text-to-image
2491
2518
  // ---------------------------------------------------------------------------
2519
+ // Shared by v2.0 text-to-image and edit; both queue OpenAPI documents list
2520
+ // 21:9 and 5:2 as well as `auto` (re-read 2026-11-27).
2492
2521
  const FAL_XAI_GROK_IMAGINE_IMAGE_V2P0_ASPECT_RATIOS = [
2493
2522
  "2:1",
2494
2523
  "20:9",
@@ -2503,19 +2532,22 @@ const FAL_XAI_GROK_IMAGINE_IMAGE_V2P0_ASPECT_RATIOS = [
2503
2532
  "9:19.5",
2504
2533
  "9:20",
2505
2534
  "1:2",
2535
+ "21:9",
2536
+ "5:2",
2506
2537
  ];
2507
2538
  export const FalXaiGrokImagineImageV2p0TextToImageRequestSchema = z.object({
2508
2539
  prompt: z.string().min(1),
2509
- // Upstream default 1. The page publishes no ceiling, so mirror v1's 1-4.
2510
- num_images: z.number().int().min(1).max(4).optional(),
2511
- // Upstream default "1:1".
2540
+ // Upstream default 1; the queue OpenAPI caps it at 10 (re-read 2026-11-27).
2541
+ num_images: z.number().int().min(1).max(10).optional(),
2542
+ // Upstream default "1:1"; `auto` lets the provider choose.
2512
2543
  aspect_ratio: z
2513
- .enum(FAL_XAI_GROK_IMAGINE_IMAGE_V2P0_ASPECT_RATIOS)
2544
+ .enum(["auto", ...FAL_XAI_GROK_IMAGINE_IMAGE_V2P0_ASPECT_RATIOS])
2514
2545
  .optional(),
2515
2546
  // Upstream default "1k".
2516
2547
  resolution: z.enum(["1k", "2k"]).optional(),
2517
- // Upstream default "medium".
2518
- quality: z.enum(["low", "medium"]).optional(),
2548
+ // Upstream default "medium". `auto` lets xAI choose; upstream says it
2549
+ // currently uses `low` for generation.
2550
+ quality: z.enum(["low", "medium", "auto"]).optional(),
2519
2551
  // Upstream default "jpeg".
2520
2552
  output_format: z.enum(["jpeg", "png", "webp"]).optional(),
2521
2553
  sync_mode: z.boolean().optional(),
@@ -2525,16 +2557,17 @@ export const FalXaiGrokImagineImageV2p0TextToImageRequestSchema = z.object({
2525
2557
  // ---------------------------------------------------------------------------
2526
2558
  export const FalXaiGrokImagineImageV2p0EditRequestSchema = z.object({
2527
2559
  prompt: z.string().min(1),
2528
- // Upstream default 1. The page publishes no ceiling, so mirror v1's 1-4.
2529
- num_images: z.number().int().min(1).max(4).optional(),
2560
+ // Upstream default 1; the queue OpenAPI caps it at 10 (re-read 2026-11-27).
2561
+ num_images: z.number().int().min(1).max(10).optional(),
2530
2562
  // Upstream default "auto".
2531
2563
  aspect_ratio: z
2532
2564
  .enum(["auto", ...FAL_XAI_GROK_IMAGINE_IMAGE_V2P0_ASPECT_RATIOS])
2533
2565
  .optional(),
2534
2566
  // Upstream default "1k".
2535
2567
  resolution: z.enum(["1k", "2k"]).optional(),
2536
- // Upstream default "medium".
2537
- quality: z.enum(["low", "medium"]).optional(),
2568
+ // Upstream default "medium". `auto` lets xAI choose; upstream says it
2569
+ // currently uses `medium` for editing.
2570
+ quality: z.enum(["low", "medium", "auto"]).optional(),
2538
2571
  // Upstream default "jpeg".
2539
2572
  output_format: z.enum(["jpeg", "png", "webp"]).optional(),
2540
2573
  sync_mode: z.boolean().optional(),
@@ -2566,7 +2599,9 @@ export const FalKlingVideoV3ProImageToVideoRequestSchema = z.object({
2566
2599
  end_image_url: z.string().optional(),
2567
2600
  duration: z.string().optional(),
2568
2601
  generate_audio: z.boolean().optional(),
2569
- shot_type: z.enum(["customize"]).optional(),
2602
+ // `intelligent` lets the model determine the shot structure (queue OpenAPI
2603
+ // re-read 2026-11-27).
2604
+ shot_type: z.enum(["customize", "intelligent"]).optional(),
2570
2605
  negative_prompt: z.string().max(2500).optional(),
2571
2606
  cfg_scale: z.number().min(0).max(1).optional(),
2572
2607
  elements: z
@@ -2744,7 +2779,7 @@ export const FalXaiGrokImagineVideoV1p5ReferenceToVideoRequestSchema = z.object(
2744
2779
  duration: z.number().int().min(1).max(15).optional(),
2745
2780
  resolution: z.enum(["480p", "720p"]).optional(),
2746
2781
  aspect_ratio: z
2747
- .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16"])
2782
+ .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9", "5:2"])
2748
2783
  .optional(),
2749
2784
  });
2750
2785
  // ---------------------------------------------------------------------------
@@ -3113,7 +3148,7 @@ export const FalXaiGrokImagineVideoV1p5LiteTextToVideoRequestSchema = z.object({
3113
3148
  duration: z.number().int().min(1).max(15).default(6),
3114
3149
  resolution: z.enum(["480p", "720p", "1080p"]).default("720p"),
3115
3150
  aspect_ratio: z
3116
- .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16"])
3151
+ .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9", "5:2"])
3117
3152
  .default("16:9"),
3118
3153
  });
3119
3154
  // Docs: https://fal.ai/models/minimax/h3-max/recast/api
@@ -3159,7 +3194,9 @@ export const FalFlux3EditImageRequestSchema = z.object({
3159
3194
  "1:2",
3160
3195
  ])
3161
3196
  .default("auto"),
3162
- resolution: z.enum(["512sq", "768sq", "1k", "2k", "4k"]).default("1k"),
3197
+ resolution: z
3198
+ .enum(["512sq", "768sq", "1k", "1.5k", "2k", "4k"])
3199
+ .default("1k"),
3163
3200
  enable_prompt_expansion: z.boolean().default(false),
3164
3201
  safety_tolerance: z.number().int().min(0).max(4).default(2),
3165
3202
  output_format: z.enum(["jpeg", "png"]).default("jpeg"),
@@ -3303,6 +3340,7 @@ export const FalIdeogramV4p5EditRequestSchema = z
3303
3340
  "landscape_4_3",
3304
3341
  "portrait_16_9",
3305
3342
  "landscape_16_9",
3343
+ "provider_auto",
3306
3344
  ]),
3307
3345
  z
3308
3346
  .object({
@@ -3329,7 +3367,7 @@ export const FalIdeogramV4p5EditRequestSchema = z
3329
3367
  }),
3330
3368
  ])
3331
3369
  .default("auto")
3332
- .describe("Only unmasked regular edits accept non-auto sizes. Custom dimensions must be multiples of 32, at least 256, with area <=4194304 and aspect ratio <=6:1."),
3370
+ .describe("auto preserves source geometry, downscaled by the provider if needed. provider_auto lets Ideogram pick a supported size of about 2K from the sources and prompt. Only unmasked regular edits accept non-auto sizes. Custom dimensions must be multiples of 32, at least 256, with area <=4194304 and aspect ratio <=6:1."),
3333
3371
  num_images: z.number().int().min(1).max(8).default(1),
3334
3372
  seed: z.number().int().nullable().optional(),
3335
3373
  sync_mode: z.boolean().default(false),
@@ -3367,6 +3405,7 @@ export const FalIdeogramV4p5RequestSchema = z
3367
3405
  height: z.number().int().gt(0).max(14142).default(512),
3368
3406
  }),
3369
3407
  z.enum([
3408
+ "auto",
3370
3409
  "square_hd",
3371
3410
  "square",
3372
3411
  "portrait_4_3",
@@ -3420,7 +3459,7 @@ export const FalIdeogramV4p5RequestSchema = z
3420
3459
  "896x1120",
3421
3460
  ]).has(`${size.width}x${size.height}`), { message: "Explicit dimensions must be one of the documented sizes" })
3422
3461
  .default("square_hd")
3423
- .describe("Output size. square is promoted to square_hd (1024x1024). 4:3 presets use 1152x864 or 864x1152; 16:9 presets use 1280x720 or 720x1280. Explicit dimensions must match a supported size: 1024x1024, 1024x3072, 1120x896, 1152x2944, 1152x864, 1248x3328, 1248x832, 1280x3072, 1280x720, 1280x800, 1296x3168, 1440x2560, 1440x2880, 1440x720, 1600x2560, 1664x2496, 1728x2304, 1792x2240, 2048x2048, 2240x1792, 2304x1728, 2496x1664, 2560x1440, 2560x1600, 2880x1440, 2944x1152, 3072x1024, 3072x1280, 3168x1296, 3328x1248, 720x1280, 720x1440, 800x1280, 832x1248, 864x1152, 896x1120"),
3462
+ .describe("Output size. auto lets the model pick a size of about 2K from the prompt. square is promoted to square_hd (1024x1024). 4:3 presets use 1152x864 or 864x1152; 16:9 presets use 1280x720 or 720x1280. Explicit dimensions must match a supported size: 1024x1024, 1024x3072, 1120x896, 1152x2944, 1152x864, 1248x3328, 1248x832, 1280x3072, 1280x720, 1280x800, 1296x3168, 1440x2560, 1440x2880, 1440x720, 1600x2560, 1664x2496, 1728x2304, 1792x2240, 2048x2048, 2240x1792, 2304x1728, 2496x1664, 2560x1440, 2560x1600, 2880x1440, 2944x1152, 3072x1024, 3072x1280, 3168x1296, 3328x1248, 720x1280, 720x1440, 800x1280, 832x1248, 864x1152, 896x1120"),
3424
3463
  quality: z
3425
3464
  .enum(["low", "medium", "high"])
3426
3465
  .default("medium")
@@ -3851,6 +3890,7 @@ export const FalBytedanceSeedreamV5FlashEditRequestSchema = z.object({
3851
3890
  "landscape_4_3",
3852
3891
  "landscape_16_9",
3853
3892
  "auto_1K",
3893
+ "auto_1.5K",
3854
3894
  "auto_2K",
3855
3895
  ]),
3856
3896
  ])
@@ -3896,6 +3936,7 @@ export const FalBytedanceSeedreamV5FlashTextToImageRequestSchema = z.object({
3896
3936
  "landscape_4_3",
3897
3937
  "landscape_16_9",
3898
3938
  "auto_1K",
3939
+ "auto_1.5K",
3899
3940
  "auto_2K",
3900
3941
  ]),
3901
3942
  ])
@@ -4162,10 +4203,10 @@ export const FalMeshyV7p1TextTo3dRequestSchema = z
4162
4203
  .describe("Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning."),
4163
4204
  texture_prompt: z
4164
4205
  .string()
4165
- .max(600)
4206
+ .max(800)
4166
4207
  .nullable()
4167
4208
  .optional()
4168
- .describe("Additional text prompt to guide the texturing process (only used in 'full' mode)"),
4209
+ .describe("Additional text prompt to guide the texturing process (only used in 'full' mode). Maximum 800 characters."),
4169
4210
  texture_image_url: z
4170
4211
  .string()
4171
4212
  .nullable()
@@ -4251,10 +4292,10 @@ export const FalMeshyV7p1ImageTo3dRequestSchema = z
4251
4292
  .describe("Pose mode for the generated model. 'a-pose' generates an A-pose, 't-pose' generates a T-pose, empty string for no specific pose."),
4252
4293
  texture_prompt: z
4253
4294
  .string()
4254
- .max(600)
4295
+ .max(800)
4255
4296
  .nullable()
4256
4297
  .optional()
4257
- .describe("Text prompt to guide the texturing process"),
4298
+ .describe("Text prompt to guide the texturing process. Maximum 800 characters."),
4258
4299
  texture_image_url: z
4259
4300
  .string()
4260
4301
  .nullable()
@@ -4336,10 +4377,10 @@ export const FalMeshyV7p1MultiImageTo3dRequestSchema = z
4336
4377
  .describe("Pose mode for the generated model. 'a-pose' generates an A-pose, 't-pose' generates a T-pose, empty string for no specific pose."),
4337
4378
  texture_prompt: z
4338
4379
  .string()
4339
- .max(600)
4380
+ .max(800)
4340
4381
  .nullable()
4341
4382
  .optional()
4342
- .describe("Text prompt to guide the texturing process. Requires should_texture to be true."),
4383
+ .describe("Text prompt to guide the texturing process. Maximum 800 characters. Requires should_texture to be true."),
4343
4384
  texture_image_url: z
4344
4385
  .string()
4345
4386
  .nullable()
@@ -5108,7 +5149,7 @@ export const FalXaiGrokImagineVideoV1p5TextToVideoRequestSchema = z.object({
5108
5149
  .default("720p")
5109
5150
  .describe("Resolution of the output video."),
5110
5151
  aspect_ratio: z
5111
- .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16"])
5152
+ .enum(["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "21:9", "5:2"])
5112
5153
  .default("16:9")
5113
5154
  .describe("Aspect ratio of the generated video."),
5114
5155
  });
@@ -11134,14 +11175,11 @@ export const FalBytedanceSeedance2p0UsReferenceToVideoRequestSchema = z
11134
11175
  // Bytedance Seedance 2.5 US text-to-video
11135
11176
  export const FalBytedanceSeedance2p5UsTextToVideoRequestSchema = z.object({
11136
11177
  prompt: z.string().describe("The text prompt used to generate the video"),
11137
- resolution: z
11138
- .enum(["480p", "720p", "1080p"])
11139
- .default("720p")
11140
- .describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
11178
+ resolution: Seedance2p5ResolutionSchema.default("720p").describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality, 4k for highest quality."),
11141
11179
  draft: z
11142
11180
  .boolean()
11143
11181
  .default(false)
11144
- .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
11182
+ .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p or 4k within 14 days."),
11145
11183
  duration: z
11146
11184
  .enum([
11147
11185
  "auto",
@@ -11212,14 +11250,11 @@ export const FalBytedanceSeedance2p5UsImageToVideoRequestSchema = z.object({
11212
11250
  .nullable()
11213
11251
  .optional()
11214
11252
  .describe("The URL of the image to use as the last frame of the video. When provided, the generated video will transition from the starting image to this ending image. Supported formats: JPEG, PNG, WebP. Max 30 MB."),
11215
- resolution: z
11216
- .enum(["480p", "720p", "1080p"])
11217
- .default("720p")
11218
- .describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
11253
+ resolution: Seedance2p5ResolutionSchema.default("720p").describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality, 4k for highest quality."),
11219
11254
  draft: z
11220
11255
  .boolean()
11221
11256
  .default(false)
11222
- .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
11257
+ .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p or 4k within 14 days."),
11223
11258
  duration: z
11224
11259
  .enum([
11225
11260
  "auto",
@@ -11417,9 +11452,9 @@ export const FalBytedanceSeedance2p5UsReferenceToVideoRequestSchema = z.object({
11417
11452
  .optional()
11418
11453
  .describe("The text prompt used to generate the video."),
11419
11454
  task: z
11420
- .enum(["reference", "editing", "extension"])
11455
+ .enum(["auto", "reference", "editing", "extension"])
11421
11456
  .default("reference")
11422
- .describe("The type of video generation task. Reference uses the supplied media as guidance. Editing modifies a reference video and automatically coerces aspect_ratio and duration to auto. Extension continues a reference video and automatically coerces aspect_ratio to auto."),
11457
+ .describe("The type of video generation task. Reference uses the supplied media as guidance. Editing modifies a reference video and automatically coerces aspect_ratio and duration to auto. Extension continues a reference video and automatically coerces aspect_ratio to auto. Auto leaves the task type unset so the model decides it from the prompt and references."),
11423
11458
  image_urls: z
11424
11459
  .array(z.string())
11425
11460
  .max(30)
@@ -11435,14 +11470,11 @@ export const FalBytedanceSeedance2p5UsReferenceToVideoRequestSchema = z.object({
11435
11470
  .max(10)
11436
11471
  .optional()
11437
11472
  .describe("Reference audio to guide video generation. Refer to them in the prompt as @Audio1, @Audio2, etc. Supported formats: MP3, WAV. Up to 10 files. Each file must be 1.8 to 30.2 seconds and no larger than 15 MB; combined duration must not exceed 30.2 seconds."),
11438
- resolution: z
11439
- .enum(["480p", "720p", "1080p"])
11440
- .default("720p")
11441
- .describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
11473
+ resolution: Seedance2p5ResolutionSchema.default("720p").describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality, 4k for highest quality."),
11442
11474
  draft: z
11443
11475
  .boolean()
11444
11476
  .default(false)
11445
- .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
11477
+ .describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p or 4k within 14 days."),
11446
11478
  duration: z
11447
11479
  .enum([
11448
11480
  "auto",
@@ -11512,9 +11544,9 @@ export const FalBytedanceSeedance2p5DraftCompleteRequestSchema = z.object({
11512
11544
  .max(8192)
11513
11545
  .describe("The draft_id returned with draft enabled. Valid for seven days and only for the original caller."),
11514
11546
  resolution: z
11515
- .literal("1080p")
11547
+ .enum(["1080p", "4k"])
11516
11548
  .default("1080p")
11517
- .describe("Completed drafts only support 1080p output."),
11549
+ .describe("Resolution of the completed video: 1080p or 4k."),
11518
11550
  codec: z
11519
11551
  .enum(["auto", "H264", "H265"])
11520
11552
  .default("auto")
@@ -11528,9 +11560,9 @@ export const FalBytedanceSeedance2p5UsDraftCompleteRequestSchema = z.object({
11528
11560
  .max(8192)
11529
11561
  .describe("The draft_id returned with draft enabled. Valid for 14 days and only for the original caller."),
11530
11562
  resolution: z
11531
- .literal("1080p")
11563
+ .enum(["1080p", "4k"])
11532
11564
  .default("1080p")
11533
- .describe("Completed drafts only support 1080p output."),
11565
+ .describe("Resolution of the completed video: 1080p or 4k."),
11534
11566
  codec: z
11535
11567
  .enum(["auto", "H264", "H265"])
11536
11568
  .default("auto")
@@ -11544,10 +11576,10 @@ export const FalMeshyV6LiteRetextureRequestSchema = z
11544
11576
  .describe("URL or base64 data URI of a 3D model to texture. Supports .glb, .gltf, .obj, .fbx, .stl formats. Can be a publicly accessible URL or data URI with MIME type application/octet-stream."),
11545
11577
  text_style_prompt: z
11546
11578
  .string()
11547
- .max(600)
11579
+ .max(800)
11548
11580
  .nullable()
11549
11581
  .optional()
11550
- .describe("Describe your desired texture style using text. Maximum 600 characters. Required if image_style_url is not provided."),
11582
+ .describe("Describe your desired texture style using text. Maximum 800 characters. Required if image_style_url is not provided."),
11551
11583
  image_style_url: z
11552
11584
  .string()
11553
11585
  .nullable()
@@ -12107,11 +12139,15 @@ export const FalIdeogramVectorTextToVectorRequestSchema = z
12107
12139
  // (sha256 32f6a4ab26aebcb0d97234366f2ac872045fa5eff5ecd430b6cf3a5285e4629d).
12108
12140
  // Field order follows x-fal-order-properties; additionalProperties is false.
12109
12141
  // The OpenAPI describes only enable_safety_checker.
12142
+ // The queue OpenAPI re-read on 2026-11-25
12143
+ // (sha256 cba0da0a7241a60402346f87c687f681c238e97af6cf46016cf4ec48fda572c7)
12144
+ // raised duration's maximum from 15 to 30 seconds; every other field rule is
12145
+ // unchanged.
12110
12146
  // Docs: https://fal.ai/models/heygen/heygen-video/text-to-video/api
12111
12147
  export const FalHeygenHeygenVideoTextToVideoRequestSchema = z
12112
12148
  .object({
12113
12149
  prompt: z.string().min(1).max(32000),
12114
- duration: z.number().int().min(5).max(15).default(5),
12150
+ duration: z.number().int().min(5).max(30).default(5),
12115
12151
  resolution: z.enum(["480p", "768p", "1080p", "2k"]).default("768p"),
12116
12152
  prompt_enhancement: z
12117
12153
  .enum(["turbo", "quality", "ultraquality", "disabled"])
@@ -12130,11 +12166,15 @@ export const FalHeygenHeygenVideoTextToVideoRequestSchema = z
12130
12166
  // (sha256 2b872b7c7eb6bae233b43ad3ccaeb18f372ff6465154e563aca1896ac9068c21).
12131
12167
  // Field order follows x-fal-order-properties; additionalProperties is false.
12132
12168
  // The OpenAPI describes only image_url and enable_safety_checker.
12169
+ // The queue OpenAPI re-read on 2026-11-25
12170
+ // (sha256 55aeeab43497bc6467b7c18276853832d35a7bd609c1568551f737fcfe335d61)
12171
+ // raised duration's maximum from 15 to 30 seconds; every other field rule is
12172
+ // unchanged.
12133
12173
  // Docs: https://fal.ai/models/heygen/heygen-video/image-to-video/api
12134
12174
  export const FalHeygenHeygenVideoImageToVideoRequestSchema = z
12135
12175
  .object({
12136
12176
  prompt: z.string().min(1).max(32000),
12137
- duration: z.number().int().min(5).max(15).default(5),
12177
+ duration: z.number().int().min(5).max(30).default(5),
12138
12178
  resolution: z.enum(["480p", "768p", "1080p", "2k"]).default("768p"),
12139
12179
  prompt_enhancement: z
12140
12180
  .enum(["turbo", "quality", "ultraquality", "disabled"])
@@ -14185,12 +14225,16 @@ export const FalKlingV4TextToVideoRequestSchema = z.object({
14185
14225
  .max(30)
14186
14226
  .default(5)
14187
14227
  .describe("Video duration in seconds (3-30)."),
14228
+ hdr: z
14229
+ .boolean()
14230
+ .optional()
14231
+ .describe("10-bit HDR at 1080p or 4k, billed per output second."),
14188
14232
  resolution: z
14189
- .enum(["720p", "1080p"])
14233
+ .enum(["720p", "1080p", "4k"])
14190
14234
  .default("1080p")
14191
14235
  .describe("Output resolution."),
14192
14236
  aspect_ratio: z
14193
- .enum(["16:9", "9:16", "1:1", "21:9"])
14237
+ .enum(["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"])
14194
14238
  .default("16:9")
14195
14239
  .describe("Aspect ratio of the generated video."),
14196
14240
  });
@@ -14233,8 +14277,12 @@ export const FalKlingV4ImageToVideoRequestSchema = z.object({
14233
14277
  .max(30)
14234
14278
  .default(5)
14235
14279
  .describe("Video duration in seconds (3-30)."),
14280
+ hdr: z
14281
+ .boolean()
14282
+ .optional()
14283
+ .describe("10-bit HDR at 1080p or 4k, billed per output second."),
14236
14284
  resolution: z
14237
- .enum(["720p", "1080p"])
14285
+ .enum(["720p", "1080p", "4k"])
14238
14286
  .default("1080p")
14239
14287
  .describe("Output resolution."),
14240
14288
  });
@@ -14315,12 +14363,16 @@ export const FalKlingV4ReferenceToVideoRequestSchema = z.object({
14315
14363
  .nullable()
14316
14364
  .optional()
14317
14365
  .describe("Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements."),
14366
+ hdr: z
14367
+ .boolean()
14368
+ .optional()
14369
+ .describe("10-bit HDR at 1080p or 4k, billed per output second."),
14318
14370
  resolution: z
14319
- .enum(["720p", "1080p"])
14371
+ .enum(["720p", "1080p", "4k"])
14320
14372
  .default("1080p")
14321
14373
  .describe("Output resolution."),
14322
14374
  aspect_ratio: z
14323
- .enum(["auto", "16:9", "9:16", "1:1", "21:9"])
14375
+ .enum(["auto", "16:9", "9:16", "1:1", "4:3", "3:4", "21:9"])
14324
14376
  .default("16:9")
14325
14377
  .describe("Aspect ratio of the generated video. 'auto' adapts it to the references."),
14326
14378
  });
@@ -14366,8 +14418,12 @@ export const FalKlingV4VideoToVideoEditRequestSchema = z.object({
14366
14418
  .nullable()
14367
14419
  .optional()
14368
14420
  .describe("Output duration in seconds (3-30). Defaults to the source video's length."),
14421
+ hdr: z
14422
+ .boolean()
14423
+ .optional()
14424
+ .describe("10-bit HDR at 1080p or 4k, billed per output second."),
14369
14425
  resolution: z
14370
- .enum(["720p", "1080p"])
14426
+ .enum(["720p", "1080p", "4k"])
14371
14427
  .default("1080p")
14372
14428
  .describe("Output resolution."),
14373
14429
  });