@apicity/fal 0.22.0 → 0.23.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/README.md +106 -4
- package/dist/src/example.d.ts.map +1 -1
- package/dist/src/example.js +59 -0
- package/dist/src/example.js.map +1 -1
- package/dist/src/fal.d.ts.map +1 -1
- package/dist/src/fal.js +43 -4
- package/dist/src/fal.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +119 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/zod.d.ts +246 -6
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js +314 -0
- package/dist/src/zod.js.map +1 -1
- package/package.json +1 -1
package/dist/src/zod.js
CHANGED
|
@@ -4606,6 +4606,98 @@ export const FalMinimaxH3MaxReferenceToVideoRequestSchema = z
|
|
|
4606
4606
|
message: "middle_frame_time requires middle_image_url",
|
|
4607
4607
|
path: ["middle_frame_time"],
|
|
4608
4608
|
});
|
|
4609
|
+
// H3 Max Turbo reference-to-video takes H3 Max reference-to-video's fields
|
|
4610
|
+
// without the first, middle and last frames, plus an ordered
|
|
4611
|
+
// `reference_conditions` list (queue OpenAPI read 2026-10-31). Unbilled 422
|
|
4612
|
+
// probes the same day showed the same validator as H3 Max: only `prompt` is
|
|
4613
|
+
// required, a whitespace-only prompt is refused, `prompt_expansion_mode`
|
|
4614
|
+
// takes four modes, and each condition needs an image, video or audio type
|
|
4615
|
+
// and a non-empty URL. A non-null `image_url` is refused, so the frame fields
|
|
4616
|
+
// are left out. The two refinements restate published rules: at most 12
|
|
4617
|
+
// reference files, and the ordered list in place of the per-type lists.
|
|
4618
|
+
// Docs: https://fal.ai/models/minimax/h3-max-turbo/reference-to-video/api
|
|
4619
|
+
const FalMinimaxH3MaxTurboReferenceConditionSchema = z.object({
|
|
4620
|
+
type: z
|
|
4621
|
+
.enum(["image", "video", "audio"])
|
|
4622
|
+
.describe("Reference modality. Cross-modality list order is semantic."),
|
|
4623
|
+
url: z.string().min(1).describe("URL of the reference media."),
|
|
4624
|
+
});
|
|
4625
|
+
export const FalMinimaxH3MaxTurboReferenceToVideoRequestSchema = z
|
|
4626
|
+
.object({
|
|
4627
|
+
prompt: z
|
|
4628
|
+
.string()
|
|
4629
|
+
.min(1)
|
|
4630
|
+
.max(50000)
|
|
4631
|
+
.regex(/\S/, "Prompt cannot be empty or contain only whitespace")
|
|
4632
|
+
.describe("Text prompt for video generation. Refer to reference assets by their modality and order in the reference lists: Image 1, Image 2, Video 1, Audio 1, and so on."),
|
|
4633
|
+
reference_image_urls: z
|
|
4634
|
+
.array(z.string())
|
|
4635
|
+
.max(9)
|
|
4636
|
+
.optional()
|
|
4637
|
+
.describe("URLs of subject/style reference images, referenced in the prompt as Image 1, Image 2, and so on. Reference images, videos, and audio clips must add up to at most 12 files."),
|
|
4638
|
+
reference_video_urls: z
|
|
4639
|
+
.array(z.string())
|
|
4640
|
+
.max(3)
|
|
4641
|
+
.optional()
|
|
4642
|
+
.describe("URLs of motion/reference video clips (2-15 seconds each, combined duration at most 15 seconds), referenced in the prompt as Video 1, Video 2, and so on. Reference images, videos, and audio clips must add up to at most 12 files."),
|
|
4643
|
+
reference_audio_urls: z
|
|
4644
|
+
.array(z.string())
|
|
4645
|
+
.max(3)
|
|
4646
|
+
.optional()
|
|
4647
|
+
.describe("URLs of reference audio clips (2-15 seconds each, combined duration at most 15 seconds), referenced in the prompt as Audio 1, Audio 2, and so on. Images, videos, and audio can be provided individually or together. Reference images, videos, and audio clips must add up to at most 12 files."),
|
|
4648
|
+
duration: z
|
|
4649
|
+
.number()
|
|
4650
|
+
.min(0.92)
|
|
4651
|
+
.max(15)
|
|
4652
|
+
.default(5)
|
|
4653
|
+
.describe("Video length in seconds. The output can run up to about 0.7 s longer than requested."),
|
|
4654
|
+
resolution: z
|
|
4655
|
+
.enum(["480P", "768P", "1080P"])
|
|
4656
|
+
.default("768P")
|
|
4657
|
+
.describe("The native generation resolution, or 1080P latent refinement from a native 768P source."),
|
|
4658
|
+
seed: z
|
|
4659
|
+
.number()
|
|
4660
|
+
.int()
|
|
4661
|
+
.nullable()
|
|
4662
|
+
.optional()
|
|
4663
|
+
.describe("Random seed. A random seed is selected when omitted."),
|
|
4664
|
+
enable_safety_checker: z
|
|
4665
|
+
.boolean()
|
|
4666
|
+
.default(true)
|
|
4667
|
+
.describe("If set to true, the safety checker will be enabled."),
|
|
4668
|
+
sync_mode: z
|
|
4669
|
+
.boolean()
|
|
4670
|
+
.default(false)
|
|
4671
|
+
.describe("Return the generated video as base64 instead of a CDN URL."),
|
|
4672
|
+
prompt_expansion_mode: z
|
|
4673
|
+
.enum(["disabled", "fast", "balanced", "quality"])
|
|
4674
|
+
.default("balanced")
|
|
4675
|
+
.describe("How much effort to spend rewriting the prompt before generation. 'disabled' skips prompt expansion. 'balanced' returns in about a second. 'quality' spends up to ~30s on a richer prompt."),
|
|
4676
|
+
aspect_ratio: z
|
|
4677
|
+
.enum(["adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"])
|
|
4678
|
+
.default("adaptive")
|
|
4679
|
+
.describe("The aspect ratio of the generated video."),
|
|
4680
|
+
reference_conditions: z
|
|
4681
|
+
.array(FalMinimaxH3MaxTurboReferenceConditionSchema)
|
|
4682
|
+
.max(12)
|
|
4683
|
+
.optional()
|
|
4684
|
+
.describe("Ordered reference list; cross-modality order is semantic and is preserved end-to-end. Do not combine with reference_*_urls."),
|
|
4685
|
+
})
|
|
4686
|
+
.refine((v) => (v.reference_image_urls?.length ?? 0) +
|
|
4687
|
+
(v.reference_video_urls?.length ?? 0) +
|
|
4688
|
+
(v.reference_audio_urls?.length ?? 0) <=
|
|
4689
|
+
12, {
|
|
4690
|
+
message: "minimax/h3-max-turbo/reference-to-video accepts at most 12 reference files across reference_image_urls, reference_video_urls, and reference_audio_urls",
|
|
4691
|
+
path: ["reference_image_urls"],
|
|
4692
|
+
})
|
|
4693
|
+
.refine((v) => (v.reference_conditions?.length ?? 0) === 0 ||
|
|
4694
|
+
(v.reference_image_urls?.length ?? 0) +
|
|
4695
|
+
(v.reference_video_urls?.length ?? 0) +
|
|
4696
|
+
(v.reference_audio_urls?.length ?? 0) ===
|
|
4697
|
+
0, {
|
|
4698
|
+
message: "reference_conditions replaces reference_image_urls, reference_video_urls, and reference_audio_urls; do not combine them",
|
|
4699
|
+
path: ["reference_conditions"],
|
|
4700
|
+
});
|
|
4609
4701
|
// Upstream refuses every media URL here, `video_url` and each
|
|
4610
4702
|
// `reference_image_urls` entry, unless it is "an HTTPS URL without
|
|
4611
4703
|
// credentials or fragments" (unbilled 422 probes, 2026-10-07): an `http:`
|
|
@@ -5661,6 +5753,194 @@ export const FalAlibabaHappyHorseV1p1TextToVideoRequestSchema = z.object({
|
|
|
5661
5753
|
.default(true)
|
|
5662
5754
|
.describe("Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked."),
|
|
5663
5755
|
});
|
|
5756
|
+
// A HappyHorse 1.0 media URL. Unbilled 422 probes on 2026-10-31 refused ""
|
|
5757
|
+
// and ftp:// and an upper-case HTTPS:// scheme, and accepted http://,
|
|
5758
|
+
// https:// and a data URI, with the message restated here.
|
|
5759
|
+
const happyHorseMediaUrl = z
|
|
5760
|
+
.string()
|
|
5761
|
+
.regex(/^(https?:\/\/|data:)/, "Input must be a valid HTTPS URL or a Data URI");
|
|
5762
|
+
// Pinned to the live queue OpenAPI read on 2026-10-31
|
|
5763
|
+
// (sha256 09b7bf1c49675e4031b99e43fd365628d7deab19aa0bc8432e6374b1d5d91b12). Field order follows x-fal-order-properties.
|
|
5764
|
+
// The same day's unbilled 422 probes also showed the URL rule above and a
|
|
5765
|
+
// cap of 5 reference images. A prompt over 2,500 characters and a seed
|
|
5766
|
+
// outside 0-2147483647 drew no field error, so those stay in the
|
|
5767
|
+
// descriptions.
|
|
5768
|
+
// Docs: https://fal.ai/models/alibaba/happy-horse/video-edit/api
|
|
5769
|
+
export const FalAlibabaHappyHorseVideoEditRequestSchema = z.object({
|
|
5770
|
+
video_url: happyHorseMediaUrl.describe("URL of the source video to edit. Formats: MP4, MOV (H.264 recommended). Duration: 3-60 s. Longer side ≤ 2160 px, shorter side ≥ 320 px. Aspect ratio between 1:2.5 and 2.5:1. Frame rate > 8 fps. Max 100 MB. The output video preserves the source aspect ratio. Output duration matches the input video, capped at 15 s (longer inputs are truncated to the first 15 s)."),
|
|
5771
|
+
prompt: z
|
|
5772
|
+
.string()
|
|
5773
|
+
.min(1)
|
|
5774
|
+
.describe("Text prompt describing the desired edit. Reference any supplied reference images using @Image1, @Image2, ... up to @Image5. Max 2500 characters."),
|
|
5775
|
+
reference_image_urls: z
|
|
5776
|
+
.array(happyHorseMediaUrl)
|
|
5777
|
+
.max(5, "Maximum 5 reference images allowed")
|
|
5778
|
+
.nullable()
|
|
5779
|
+
.optional()
|
|
5780
|
+
.describe("Optional reference images used to guide the edit (up to 5). Formats: JPEG, JPG, PNG, WEBP. Dimensions must be at least 300px. Aspect ratio between 1:2.5 and 2.5:1. Max 10 MB each."),
|
|
5781
|
+
resolution: z
|
|
5782
|
+
.enum(["720p", "1080p"])
|
|
5783
|
+
.default("1080p")
|
|
5784
|
+
.describe("Output video resolution tier."),
|
|
5785
|
+
audio_setting: z
|
|
5786
|
+
.enum(["auto", "origin"])
|
|
5787
|
+
.default("auto")
|
|
5788
|
+
.describe("Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve the original audio from the input video."),
|
|
5789
|
+
seed: z
|
|
5790
|
+
.number()
|
|
5791
|
+
.int()
|
|
5792
|
+
.nullable()
|
|
5793
|
+
.optional()
|
|
5794
|
+
.describe("Random seed for reproducibility (0-2147483647)."),
|
|
5795
|
+
enable_safety_checker: z
|
|
5796
|
+
.boolean()
|
|
5797
|
+
.default(true)
|
|
5798
|
+
.describe("Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked."),
|
|
5799
|
+
});
|
|
5800
|
+
// Pinned to the live queue OpenAPI read on 2026-10-31
|
|
5801
|
+
// (sha256 3434de690251ddc092f4458c56b1f094d166399bdb4d1a75e8a187ecdcbb7f35). Field order follows x-fal-order-properties.
|
|
5802
|
+
// It matches v1.1 text-to-video except for the five aspect ratios.
|
|
5803
|
+
// Docs: https://fal.ai/models/alibaba/happy-horse/text-to-video/api
|
|
5804
|
+
export const FalAlibabaHappyHorseTextToVideoRequestSchema = z.object({
|
|
5805
|
+
prompt: z
|
|
5806
|
+
.string()
|
|
5807
|
+
.min(1)
|
|
5808
|
+
.describe("Text prompt describing the desired video. Max 2500 characters."),
|
|
5809
|
+
aspect_ratio: z
|
|
5810
|
+
.enum(["16:9", "9:16", "1:1", "4:3", "3:4"])
|
|
5811
|
+
.default("16:9")
|
|
5812
|
+
.describe("Aspect ratio of the generated video."),
|
|
5813
|
+
resolution: z
|
|
5814
|
+
.enum(["720p", "1080p"])
|
|
5815
|
+
.default("1080p")
|
|
5816
|
+
.describe("Output video resolution tier."),
|
|
5817
|
+
duration: z
|
|
5818
|
+
.union([
|
|
5819
|
+
z.literal(3),
|
|
5820
|
+
z.literal(4),
|
|
5821
|
+
z.literal(5),
|
|
5822
|
+
z.literal(6),
|
|
5823
|
+
z.literal(7),
|
|
5824
|
+
z.literal(8),
|
|
5825
|
+
z.literal(9),
|
|
5826
|
+
z.literal(10),
|
|
5827
|
+
z.literal(11),
|
|
5828
|
+
z.literal(12),
|
|
5829
|
+
z.literal(13),
|
|
5830
|
+
z.literal(14),
|
|
5831
|
+
z.literal(15),
|
|
5832
|
+
])
|
|
5833
|
+
.default(5)
|
|
5834
|
+
.describe("Output video duration in seconds (3-15)."),
|
|
5835
|
+
seed: z
|
|
5836
|
+
.number()
|
|
5837
|
+
.int()
|
|
5838
|
+
.nullable()
|
|
5839
|
+
.optional()
|
|
5840
|
+
.describe("Random seed for reproducibility (0-2147483647)."),
|
|
5841
|
+
enable_safety_checker: z
|
|
5842
|
+
.boolean()
|
|
5843
|
+
.default(true)
|
|
5844
|
+
.describe("Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked."),
|
|
5845
|
+
});
|
|
5846
|
+
// Pinned to the live queue OpenAPI read on 2026-10-31
|
|
5847
|
+
// (sha256 93960e9d97e21a4681e2671bca46adb9f6c79a1fa10296f0762b44264e2f8d7a). Field order follows x-fal-order-properties.
|
|
5848
|
+
// It matches v1.1 image-to-video except for a 10 MB image cap. Unbilled 422
|
|
5849
|
+
// probes the same day showed the HappyHorse 1.0 URL rule on image_url.
|
|
5850
|
+
// Docs: https://fal.ai/models/alibaba/happy-horse/image-to-video/api
|
|
5851
|
+
export const FalAlibabaHappyHorseImageToVideoRequestSchema = z.object({
|
|
5852
|
+
image_url: happyHorseMediaUrl.describe("URL of the first frame image. Formats: JPEG, JPG, PNG, BMP, WEBP. Dimensions must be at least 300px. Aspect ratio must be between 1:2.5 and 2.5:1. Max 10 MB."),
|
|
5853
|
+
prompt: z
|
|
5854
|
+
.string()
|
|
5855
|
+
.nullable()
|
|
5856
|
+
.optional()
|
|
5857
|
+
.describe("Optional text prompt guiding the animation. Max 2500 characters."),
|
|
5858
|
+
resolution: z
|
|
5859
|
+
.enum(["720p", "1080p"])
|
|
5860
|
+
.default("1080p")
|
|
5861
|
+
.describe("Output video resolution tier."),
|
|
5862
|
+
duration: z
|
|
5863
|
+
.union([
|
|
5864
|
+
z.literal(3),
|
|
5865
|
+
z.literal(4),
|
|
5866
|
+
z.literal(5),
|
|
5867
|
+
z.literal(6),
|
|
5868
|
+
z.literal(7),
|
|
5869
|
+
z.literal(8),
|
|
5870
|
+
z.literal(9),
|
|
5871
|
+
z.literal(10),
|
|
5872
|
+
z.literal(11),
|
|
5873
|
+
z.literal(12),
|
|
5874
|
+
z.literal(13),
|
|
5875
|
+
z.literal(14),
|
|
5876
|
+
z.literal(15),
|
|
5877
|
+
])
|
|
5878
|
+
.default(5)
|
|
5879
|
+
.describe("Output video duration in seconds (3-15)."),
|
|
5880
|
+
seed: z
|
|
5881
|
+
.number()
|
|
5882
|
+
.int()
|
|
5883
|
+
.nullable()
|
|
5884
|
+
.optional()
|
|
5885
|
+
.describe("Random seed for reproducibility (0-2147483647)."),
|
|
5886
|
+
enable_safety_checker: z
|
|
5887
|
+
.boolean()
|
|
5888
|
+
.default(true)
|
|
5889
|
+
.describe("Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked."),
|
|
5890
|
+
});
|
|
5891
|
+
// Pinned to the live queue OpenAPI read on 2026-10-31
|
|
5892
|
+
// (sha256 273b084e9ee70e333a94d35a0abf6e212eb2fc7a96ccb9200ff64f5793b3610a). Field order follows x-fal-order-properties.
|
|
5893
|
+
// It matches v1.1 reference-to-video except for the five aspect ratios and a
|
|
5894
|
+
// 10 MB image cap. Unbilled 422 probes the same day showed the HappyHorse
|
|
5895
|
+
// 1.0 URL rule on each image and the 1-9 image count, restated here.
|
|
5896
|
+
// Docs: https://fal.ai/models/alibaba/happy-horse/reference-to-video/api
|
|
5897
|
+
export const FalAlibabaHappyHorseReferenceToVideoRequestSchema = z.object({
|
|
5898
|
+
prompt: z
|
|
5899
|
+
.string()
|
|
5900
|
+
.min(1)
|
|
5901
|
+
.describe("Text prompt describing the desired video. Reference subjects from your images using ``character1``, ``character2``, ... up to ``character9`` (the order matches the order of ``image_urls``). Max 2500 characters."),
|
|
5902
|
+
image_urls: z
|
|
5903
|
+
.array(happyHorseMediaUrl)
|
|
5904
|
+
.min(1, "At least 1 reference image is required")
|
|
5905
|
+
.max(9, "Maximum 9 reference images allowed")
|
|
5906
|
+
.describe("Reference images for subject consistency (1-9 images). Formats: JPEG, JPG, PNG, WEBP. Shortest side must be at least 400 px (720P or higher recommended). Max 10 MB each."),
|
|
5907
|
+
aspect_ratio: z
|
|
5908
|
+
.enum(["16:9", "9:16", "1:1", "4:3", "3:4"])
|
|
5909
|
+
.default("16:9")
|
|
5910
|
+
.describe("Aspect ratio of the generated video."),
|
|
5911
|
+
resolution: z
|
|
5912
|
+
.enum(["720p", "1080p"])
|
|
5913
|
+
.default("1080p")
|
|
5914
|
+
.describe("Output video resolution tier."),
|
|
5915
|
+
duration: z
|
|
5916
|
+
.union([
|
|
5917
|
+
z.literal(3),
|
|
5918
|
+
z.literal(4),
|
|
5919
|
+
z.literal(5),
|
|
5920
|
+
z.literal(6),
|
|
5921
|
+
z.literal(7),
|
|
5922
|
+
z.literal(8),
|
|
5923
|
+
z.literal(9),
|
|
5924
|
+
z.literal(10),
|
|
5925
|
+
z.literal(11),
|
|
5926
|
+
z.literal(12),
|
|
5927
|
+
z.literal(13),
|
|
5928
|
+
z.literal(14),
|
|
5929
|
+
z.literal(15),
|
|
5930
|
+
])
|
|
5931
|
+
.default(5)
|
|
5932
|
+
.describe("Output video duration in seconds (3-15)."),
|
|
5933
|
+
seed: z
|
|
5934
|
+
.number()
|
|
5935
|
+
.int()
|
|
5936
|
+
.nullable()
|
|
5937
|
+
.optional()
|
|
5938
|
+
.describe("Random seed for reproducibility (0-2147483647)."),
|
|
5939
|
+
enable_safety_checker: z
|
|
5940
|
+
.boolean()
|
|
5941
|
+
.default(true)
|
|
5942
|
+
.describe("Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked."),
|
|
5943
|
+
});
|
|
5664
5944
|
// Pinned to the live queue OpenAPI read on 2026-10-08
|
|
5665
5945
|
// (sha256 15115befba2212917f30e6792e1216e68c97023871654b7ac26f337d6fbe2752). Field order follows x-fal-order-properties.
|
|
5666
5946
|
// Docs: https://fal.ai/models/blackforestlabs/flux-3/edit-video/api
|
|
@@ -9960,6 +10240,10 @@ export const FalBytedanceSeedance2p5UsTextToVideoRequestSchema = z.object({
|
|
|
9960
10240
|
.enum(["480p", "720p", "1080p"])
|
|
9961
10241
|
.default("720p")
|
|
9962
10242
|
.describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
|
|
10243
|
+
draft: z
|
|
10244
|
+
.boolean()
|
|
10245
|
+
.default(false)
|
|
10246
|
+
.describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
|
|
9963
10247
|
duration: z
|
|
9964
10248
|
.enum([
|
|
9965
10249
|
"auto",
|
|
@@ -10034,6 +10318,10 @@ export const FalBytedanceSeedance2p5UsImageToVideoRequestSchema = z.object({
|
|
|
10034
10318
|
.enum(["480p", "720p", "1080p"])
|
|
10035
10319
|
.default("720p")
|
|
10036
10320
|
.describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
|
|
10321
|
+
draft: z
|
|
10322
|
+
.boolean()
|
|
10323
|
+
.default(false)
|
|
10324
|
+
.describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
|
|
10037
10325
|
duration: z
|
|
10038
10326
|
.enum([
|
|
10039
10327
|
"auto",
|
|
@@ -10122,6 +10410,10 @@ export const FalBytedanceSeedance2p5UsReferenceToVideoRequestSchema = z.object({
|
|
|
10122
10410
|
.enum(["480p", "720p", "1080p"])
|
|
10123
10411
|
.default("720p")
|
|
10124
10412
|
.describe("Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality."),
|
|
10413
|
+
draft: z
|
|
10414
|
+
.boolean()
|
|
10415
|
+
.default(false)
|
|
10416
|
+
.describe("Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p within 14 days."),
|
|
10125
10417
|
duration: z
|
|
10126
10418
|
.enum([
|
|
10127
10419
|
"auto",
|
|
@@ -10199,6 +10491,22 @@ export const FalBytedanceSeedance2p5DraftCompleteRequestSchema = z.object({
|
|
|
10199
10491
|
.default("auto")
|
|
10200
10492
|
.describe("'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265."),
|
|
10201
10493
|
});
|
|
10494
|
+
// Bytedance Seedance 2.5 US draft completion, queue OpenAPI read 2026-10-31.
|
|
10495
|
+
export const FalBytedanceSeedance2p5UsDraftCompleteRequestSchema = z.object({
|
|
10496
|
+
draft_id: z
|
|
10497
|
+
.string()
|
|
10498
|
+
.min(1)
|
|
10499
|
+
.max(8192)
|
|
10500
|
+
.describe("The draft_id returned with draft enabled. Valid for 14 days and only for the original caller."),
|
|
10501
|
+
resolution: z
|
|
10502
|
+
.literal("1080p")
|
|
10503
|
+
.default("1080p")
|
|
10504
|
+
.describe("Completed drafts only support 1080p output."),
|
|
10505
|
+
codec: z
|
|
10506
|
+
.enum(["auto", "H264", "H265"])
|
|
10507
|
+
.default("auto")
|
|
10508
|
+
.describe("'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265."),
|
|
10509
|
+
});
|
|
10202
10510
|
// Meshy 6 Lite retexture
|
|
10203
10511
|
export const FalMeshyV6LiteRetextureRequestSchema = z
|
|
10204
10512
|
.object({
|
|
@@ -13136,6 +13444,7 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
|
|
|
13136
13444
|
"heygen/heygen-voice": FalHeygenHeygenVoiceRequestSchema,
|
|
13137
13445
|
"meshy/v6-lite/retexture": FalMeshyV6LiteRetextureRequestSchema,
|
|
13138
13446
|
"bytedance/seedance-2.5/draft/complete": FalBytedanceSeedance2p5DraftCompleteRequestSchema,
|
|
13447
|
+
"bytedance/seedance-2.5/us/draft/complete": FalBytedanceSeedance2p5UsDraftCompleteRequestSchema,
|
|
13139
13448
|
"bytedance/seedance-2.5/us/reference-to-video": FalBytedanceSeedance2p5UsReferenceToVideoRequestSchema,
|
|
13140
13449
|
"bytedance/seedance-2.5/us/image-to-video": FalBytedanceSeedance2p5UsImageToVideoRequestSchema,
|
|
13141
13450
|
"bytedance/seedance-2.5/us/text-to-video": FalBytedanceSeedance2p5UsTextToVideoRequestSchema,
|
|
@@ -13208,6 +13517,10 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
|
|
|
13208
13517
|
"alibaba/happy-horse/v1.1/text-to-video": FalAlibabaHappyHorseV1p1TextToVideoRequestSchema,
|
|
13209
13518
|
"alibaba/happy-horse/v1.1/image-to-video": FalAlibabaHappyHorseV1p1ImageToVideoRequestSchema,
|
|
13210
13519
|
"alibaba/happy-horse/v1.1/reference-to-video": FalAlibabaHappyHorseV1p1ReferenceToVideoRequestSchema,
|
|
13520
|
+
"alibaba/happy-horse/video-edit": FalAlibabaHappyHorseVideoEditRequestSchema,
|
|
13521
|
+
"alibaba/happy-horse/text-to-video": FalAlibabaHappyHorseTextToVideoRequestSchema,
|
|
13522
|
+
"alibaba/happy-horse/image-to-video": FalAlibabaHappyHorseImageToVideoRequestSchema,
|
|
13523
|
+
"alibaba/happy-horse/reference-to-video": FalAlibabaHappyHorseReferenceToVideoRequestSchema,
|
|
13211
13524
|
"alibaba/qwen-audio-3-tts": FalAlibabaQwenAudio3TtsRequestSchema,
|
|
13212
13525
|
"fal-ai/kling-video/v3/turbo/pro/image-to-video": FalKlingVideoV3TurboProImageToVideoRequestSchema,
|
|
13213
13526
|
"fal-ai/kling-video/v3/turbo/pro/text-to-video": FalKlingVideoV3TurboProTextToVideoRequestSchema,
|
|
@@ -13225,6 +13538,7 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
|
|
|
13225
13538
|
"xai/grok-imagine-video/v1.5/text-to-video": FalXaiGrokImagineVideoV1p5TextToVideoRequestSchema,
|
|
13226
13539
|
"minimax/h3-max-turbo/text-to-video": FalMinimaxH3MaxTurboTextToVideoRequestSchema,
|
|
13227
13540
|
"minimax/h3-max-turbo/image-to-video": FalMinimaxH3MaxTurboImageToVideoRequestSchema,
|
|
13541
|
+
"minimax/h3-max-turbo/reference-to-video": FalMinimaxH3MaxTurboReferenceToVideoRequestSchema,
|
|
13228
13542
|
"minimax/h3-max/lip-sync/image-to-video": FalMinimaxH3MaxLipSyncImageToVideoRequestSchema,
|
|
13229
13543
|
"minimax/h3-max/3d-to-video": FalMinimaxH3MaxThreeDToVideoRequestSchema,
|
|
13230
13544
|
"minimax/h3-max/reference-to-video": FalMinimaxH3MaxReferenceToVideoRequestSchema,
|