@apicity/fal 0.27.1 → 0.27.3

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
@@ -199,6 +199,114 @@ export const FalSeedance2p0FastTextToVideoRequestSchema = z.object({
199
199
  end_user_id: z.string().nullable().optional(),
200
200
  });
201
201
  // ---------------------------------------------------------------------------
202
+ // Bytedance Seedance 2.0 Mini image-to-video
203
+ // ---------------------------------------------------------------------------
204
+ // Pinned to the live queue OpenAPI read on 2026-11-11
205
+ // (sha256 53f5a77a6aa221f36913231b20e96d01fa1358bea2e9101bb6bf7b0993d189e7). Field order follows x-fal-order-properties.
206
+ // The request is 2.0 Fast image-to-video's without bitrate_mode.
207
+ // Docs: https://fal.ai/models/bytedance/seedance-2.0/mini/image-to-video/api
208
+ export const FalSeedance2p0MiniImageToVideoRequestSchema = z.object({
209
+ prompt: z
210
+ .string()
211
+ .describe("The text prompt describing the desired motion and action for the video."),
212
+ image_url: z
213
+ .string()
214
+ .describe("The URL of the starting frame image to animate. Supported formats: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF. Max 30 MB."),
215
+ end_image_url: z
216
+ .string()
217
+ .nullable()
218
+ .optional()
219
+ .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, BMP, TIFF, GIF, HEIC, HEIF. Max 30 MB."),
220
+ resolution: z
221
+ .enum(["480p", "720p"])
222
+ .default("720p")
223
+ .describe("Video resolution - 480p for faster generation, 720p for balance."),
224
+ duration: z
225
+ .enum([
226
+ "auto",
227
+ "4",
228
+ "5",
229
+ "6",
230
+ "7",
231
+ "8",
232
+ "9",
233
+ "10",
234
+ "11",
235
+ "12",
236
+ "13",
237
+ "14",
238
+ "15",
239
+ ])
240
+ .default("auto")
241
+ .describe("Duration of the video in seconds. Supports 4 to 15 seconds, or auto to let the model decide based on the prompt."),
242
+ aspect_ratio: z
243
+ .enum(["auto", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"])
244
+ .default("auto")
245
+ .describe("The aspect ratio of the generated video. Use 16:9 for landscape, 9:16 for portrait/vertical, 1:1 for square, 21:9 for ultrawide cinematic, or auto to infer from the input image."),
246
+ generate_audio: z
247
+ .boolean()
248
+ .default(true)
249
+ .describe("Whether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. The cost of video generation is the same regardless of whether audio is generated or not."),
250
+ codec: z
251
+ .enum(["auto", "H264", "H265"])
252
+ .default("auto")
253
+ .describe("'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265."),
254
+ end_user_id: z
255
+ .string()
256
+ .nullable()
257
+ .optional()
258
+ .describe("The unique user ID of the end user."),
259
+ });
260
+ // ---------------------------------------------------------------------------
261
+ // Bytedance Seedance 2.0 Mini text-to-video
262
+ // ---------------------------------------------------------------------------
263
+ // Pinned to the live queue OpenAPI read on 2026-11-11
264
+ // (sha256 a88349ae5b6c167f4aa46028dbd0b01f10158aebcefda6c7d67aab31198a1358). Field order follows x-fal-order-properties.
265
+ // The request is 2.0 Fast text-to-video's without bitrate_mode.
266
+ // Docs: https://fal.ai/models/bytedance/seedance-2.0/mini/text-to-video/api
267
+ export const FalSeedance2p0MiniTextToVideoRequestSchema = z.object({
268
+ prompt: z.string().describe("The text prompt used to generate the video"),
269
+ resolution: z
270
+ .enum(["480p", "720p"])
271
+ .default("720p")
272
+ .describe("Video resolution - 480p for faster generation, 720p for balance."),
273
+ duration: z
274
+ .enum([
275
+ "auto",
276
+ "4",
277
+ "5",
278
+ "6",
279
+ "7",
280
+ "8",
281
+ "9",
282
+ "10",
283
+ "11",
284
+ "12",
285
+ "13",
286
+ "14",
287
+ "15",
288
+ ])
289
+ .default("auto")
290
+ .describe("Duration of the video in seconds. Supports 4 to 15 seconds, or auto to let the model decide based on the prompt."),
291
+ aspect_ratio: z
292
+ .enum(["auto", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"])
293
+ .default("auto")
294
+ .describe("The aspect ratio of the generated video. Use 16:9 for landscape, 9:16 for portrait/vertical, 1:1 for square, 21:9 for ultrawide cinematic, or auto to let the model decide."),
295
+ generate_audio: z
296
+ .boolean()
297
+ .default(true)
298
+ .describe("Whether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. The cost of video generation is the same regardless of whether audio is generated or not."),
299
+ codec: z
300
+ .enum(["auto", "H264", "H265"])
301
+ .default("auto")
302
+ .describe("'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265."),
303
+ end_user_id: z
304
+ .string()
305
+ .nullable()
306
+ .optional()
307
+ .describe("The unique user ID of the end user."),
308
+ });
309
+ // ---------------------------------------------------------------------------
202
310
  // Bytedance Seedance 2.0 reference-to-video
203
311
  // ---------------------------------------------------------------------------
204
312
  const Seedance2p0ReferenceDurationSchema = z.enum([
@@ -276,6 +384,59 @@ export const FalSeedance2p0FastReferenceToVideoRequestSchema = z
276
384
  path: ["audio_urls"],
277
385
  });
278
386
  // ---------------------------------------------------------------------------
387
+ // Bytedance Seedance 2.0 Mini reference-to-video
388
+ // ---------------------------------------------------------------------------
389
+ // Pinned to the live queue OpenAPI read on 2026-11-11
390
+ // (sha256 d74c296efb90bd55ae0f1936bdd22be6097d4e91d70b1da66df81a0533da6965). Field order follows x-fal-order-properties.
391
+ // The request is 2.0 Fast reference-to-video's without bitrate_mode, with the
392
+ // same two cross-field rules its descriptions document.
393
+ // Docs: https://fal.ai/models/bytedance/seedance-2.0/mini/reference-to-video/api
394
+ export const FalSeedance2p0MiniReferenceToVideoRequestSchema = z
395
+ .object({
396
+ prompt: z.string().describe("The text prompt used to generate the video."),
397
+ image_urls: z
398
+ .array(z.string())
399
+ .max(9)
400
+ .optional()
401
+ .describe("Reference images to guide video generation. Refer to them in the prompt as @Image1, @Image2, etc. Supported formats: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF. Max 30 MB per image. Up to 9 images. Total files across all modalities must not exceed 12."),
402
+ video_urls: z
403
+ .array(z.string())
404
+ .max(3)
405
+ .optional()
406
+ .describe("Reference videos to guide video generation. Refer to them in the prompt as @Video1, @Video2, etc. Supported formats: MP4, MOV. Up to 3 videos, combined duration must be between 2 and 15 seconds, total size under 50 MB. Each video must be between ~480p (640x640) and ~720p (834x1112) in resolution."),
407
+ audio_urls: z
408
+ .array(z.string())
409
+ .max(3)
410
+ .optional()
411
+ .describe("Reference audio to guide video generation. Refer to them in the prompt as @Audio1, @Audio2, etc. Supported formats: MP3, WAV. Up to 3 files, combined duration must not exceed 15 seconds. Max 15 MB per file. At least one reference image or video is required."),
412
+ resolution: z
413
+ .enum(["480p", "720p"])
414
+ .default("720p")
415
+ .describe("Video resolution - 480p for faster generation, 720p for balance."),
416
+ duration: Seedance2p0ReferenceDurationSchema.default("auto").describe("Duration of the video in seconds. Supports 4 to 15 seconds, or auto to let the model decide based on the prompt."),
417
+ aspect_ratio: Seedance2p0ReferenceAspectRatioSchema.default("auto").describe("The aspect ratio of the generated video. Use 16:9 for landscape, 9:16 for portrait/vertical, 1:1 for square, 21:9 for ultrawide cinematic, or auto to let the model decide."),
418
+ generate_audio: z
419
+ .boolean()
420
+ .default(true)
421
+ .describe("Whether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. The cost of video generation is the same regardless of whether audio is generated or not."),
422
+ codec: z
423
+ .enum(["auto", "H264", "H265"])
424
+ .default("auto")
425
+ .describe("'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265."),
426
+ end_user_id: z
427
+ .string()
428
+ .nullable()
429
+ .optional()
430
+ .describe("The unique user ID of the end user."),
431
+ })
432
+ .refine((v) => seedanceReferenceFileCount(v) <= 12, {
433
+ message: "Total files across all modalities must not exceed 12",
434
+ })
435
+ .refine(seedanceAudioHasVisual, {
436
+ message: "Audio references require at least one image or video",
437
+ path: ["audio_urls"],
438
+ });
439
+ // ---------------------------------------------------------------------------
279
440
  // Bytedance Seedance 2.5 shared vocabularies
280
441
  // ---------------------------------------------------------------------------
281
442
  const Seedance2p5ResolutionSchema = z.enum(["480p", "720p", "1080p"]);
@@ -4924,6 +5085,163 @@ export const FalGeminiOmniFlashV1p1EditRequestSchema = z.object({
4924
5085
  .default("720p")
4925
5086
  .describe("The resolution of the edited video."),
4926
5087
  });
5088
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5089
+ // (sha256 c9219206492f5ab5117bddbf35355c4fde4649978b382a876569f72b50be8bda). Field order follows x-fal-order-properties.
5090
+ // It requires `prompt` and `video_url`, as v1.1 edit does; `prompt` has no
5091
+ // minimum, and the source video may run at most 15 seconds.
5092
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/edit/api
5093
+ export const FalGeminiOmniFlashV1p2EditRequestSchema = z.object({
5094
+ prompt: z
5095
+ .string()
5096
+ .max(20_000)
5097
+ .describe("A simple instruction describing the edit."),
5098
+ video_url: z
5099
+ .string()
5100
+ .describe("URL of the video to edit. Must be at most 15 seconds long."),
5101
+ resolution: z
5102
+ .enum(["360p", "720p", "1080p", "4k"])
5103
+ .default("720p")
5104
+ .describe("The resolution of the edited video."),
5105
+ });
5106
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5107
+ // (sha256 804f837794efcde3514911f4b6089a42c04003b194f2077262b28da6d1175570). Field order follows x-fal-order-properties.
5108
+ // Only `prompt` is required. Against v1.1 the output runs up to 15 seconds,
5109
+ // and each reference video may run 15 seconds too.
5110
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/reference-to-video/api
5111
+ export const FalGeminiOmniFlashV1p2ReferenceToVideoRequestSchema = z.object({
5112
+ prompt: z
5113
+ .string()
5114
+ .max(20_000)
5115
+ .describe("The text prompt describing the video. Reference media is sent in list order before the prompt."),
5116
+ image_urls: z
5117
+ .array(z.string())
5118
+ .max(10)
5119
+ .optional()
5120
+ .describe("URLs of up to ten reference images to incorporate."),
5121
+ reference_video_urls: z
5122
+ .array(z.string())
5123
+ .max(3)
5124
+ .optional()
5125
+ .describe("URLs of up to three reference videos. Each video must be at most 15 seconds long."),
5126
+ aspect_ratio: z
5127
+ .enum(["16:9", "9:16"])
5128
+ .default("16:9")
5129
+ .describe("The aspect ratio of the generated video."),
5130
+ resolution: z
5131
+ .enum(["360p", "720p", "1080p", "4k"])
5132
+ .default("720p")
5133
+ .describe("The resolution of the generated video."),
5134
+ duration: z
5135
+ .number()
5136
+ .int()
5137
+ .min(3)
5138
+ .max(15)
5139
+ .default(8)
5140
+ .describe("The duration of the generated video, in seconds."),
5141
+ });
5142
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5143
+ // (sha256 70ab26589e1d0941277201af135bf4e80b1e63548444258e4997ebcf465d7505). Field order follows x-fal-order-properties.
5144
+ // Only `prompt` is required. Against v1.1 the output runs up to 15 seconds.
5145
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/text-to-video/api
5146
+ export const FalGeminiOmniFlashV1p2TextToVideoRequestSchema = z.object({
5147
+ prompt: z
5148
+ .string()
5149
+ .max(20_000)
5150
+ .describe("The text prompt describing the video you want to generate."),
5151
+ aspect_ratio: z
5152
+ .enum(["16:9", "9:16"])
5153
+ .default("16:9")
5154
+ .describe("The aspect ratio of the generated video."),
5155
+ resolution: z
5156
+ .enum(["360p", "720p", "1080p", "4k"])
5157
+ .default("720p")
5158
+ .describe("The resolution of the generated video."),
5159
+ duration: z
5160
+ .number()
5161
+ .int()
5162
+ .min(3)
5163
+ .max(15)
5164
+ .default(8)
5165
+ .describe("The duration of the generated video, in seconds."),
5166
+ });
5167
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5168
+ // (sha256 333c44ce2e20f0122928184dba7d73deb14b318b2d8e016fe1b8ef04341e0827). Field order follows x-fal-order-properties.
5169
+ // `prompt` and `image_url` are required. Against v1.1 the output runs up to
5170
+ // 15 seconds, and the descriptions add a 10-second cap when an end image is
5171
+ // provided. Five unbilled 422 pairing probes (2026-11-11) drew a `duration`
5172
+ // error for 16 seconds but none for 15 or 11 seconds with `end_image_url`
5173
+ // set, so upstream does not check that cap at field level. It stays in the
5174
+ // descriptions only; no refinement restates it.
5175
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/image-to-video/api
5176
+ export const FalGeminiOmniFlashV1p2ImageToVideoRequestSchema = z.object({
5177
+ prompt: z
5178
+ .string()
5179
+ .max(20_000)
5180
+ .describe("The text prompt describing how the first image should be animated or interpolated into the optional end image."),
5181
+ image_url: z.string().describe("URL of the first frame to animate."),
5182
+ end_image_url: z
5183
+ .string()
5184
+ .nullable()
5185
+ .optional()
5186
+ .describe("Optional URL of the end frame. When provided, the model interpolates between the two images in their listed order and the duration is capped at 10 seconds."),
5187
+ aspect_ratio: z
5188
+ .enum(["16:9", "9:16"])
5189
+ .default("16:9")
5190
+ .describe("The aspect ratio of the generated video."),
5191
+ resolution: z
5192
+ .enum(["360p", "720p", "1080p", "4k"])
5193
+ .default("720p")
5194
+ .describe("The resolution of the generated video."),
5195
+ duration: z
5196
+ .number()
5197
+ .int()
5198
+ .min(3)
5199
+ .max(15)
5200
+ .default(8)
5201
+ .describe("The duration of the generated video, in seconds. At most 10 seconds when an end image is provided."),
5202
+ });
5203
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5204
+ // (sha256 af1581b1a8499a3245d80ae7cfb050e4821ee4e9cfae0dc2bc540f0a5cc4b054). Field order follows x-fal-order-properties.
5205
+ // `prompt` and `video_url` are required. `duration` counts only the new
5206
+ // continuation, from 3 to 10 seconds; there is no aspect ratio field.
5207
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/extend/api
5208
+ export const FalGeminiOmniFlashV1p2ExtendRequestSchema = z.object({
5209
+ prompt: z
5210
+ .string()
5211
+ .max(20_000)
5212
+ .describe("The text prompt describing how the video should continue."),
5213
+ video_url: z
5214
+ .string()
5215
+ .describe("URL of the video to extend. Any length is accepted; the model conditions on the last 10 seconds and appends the continuation."),
5216
+ resolution: z
5217
+ .enum(["360p", "720p", "1080p", "4k"])
5218
+ .default("720p")
5219
+ .describe("The resolution of the extended video."),
5220
+ duration: z
5221
+ .number()
5222
+ .int()
5223
+ .min(3)
5224
+ .max(10)
5225
+ .default(8)
5226
+ .describe("The duration of the continuation, in seconds."),
5227
+ });
5228
+ // Pinned to the live queue OpenAPI read on 2026-11-11
5229
+ // (sha256 51d3827b0f3ae4c125616ce0044add99adf771b6cfa129c8d585e5cb2d00131e). Field order follows x-fal-order-properties.
5230
+ // Only `video_url` is required. The card's overview mentions an optional text
5231
+ // instruction, but the OpenAPI publishes no prompt field, so none is declared.
5232
+ // The target must exceed the source's resolution and the source may run at
5233
+ // most 15 seconds; the request carries the source only as a URL, so both
5234
+ // rules stay in the descriptions.
5235
+ // Docs: https://fal.ai/models/google/gemini-omni-flash/v1.2/upscale/api
5236
+ export const FalGeminiOmniFlashV1p2UpscaleRequestSchema = z.object({
5237
+ video_url: z
5238
+ .string()
5239
+ .describe("URL of the video to upscale. Must be at most 15 seconds long."),
5240
+ resolution: z
5241
+ .enum(["720p", "1080p", "4k"])
5242
+ .default("1080p")
5243
+ .describe("The target resolution of the upscaled video. Must be higher than the source video's resolution."),
5244
+ });
4927
5245
  // The live OpenAPI requires only `prompt`, and ten unbilled 422 probes
4928
5246
  // (2026-10-08) found upstream's validator to match it: `image_urls` holds at
4929
5247
  // most ten strings and `reference_video_urls` at most three, with no minimum
@@ -6963,6 +7281,439 @@ export const FalOpenaiGptImage2p5SunburstTextToImageRequestSchema = z.object({
6963
7281
  .default(false)
6964
7282
  .describe("If `True`, the media will be returned as a data URI and the output data won't be available in the request history."),
6965
7283
  });
7284
+ const FalOpenaiGptImage2p6SunburstTextToImageImageSizeSchema = z.object({
7285
+ width: z
7286
+ .number()
7287
+ .int()
7288
+ .gt(0)
7289
+ .max(14142)
7290
+ .default(512)
7291
+ .describe("The width of the generated image."),
7292
+ height: z
7293
+ .number()
7294
+ .int()
7295
+ .gt(0)
7296
+ .max(14142)
7297
+ .default(512)
7298
+ .describe("The height of the generated image."),
7299
+ });
7300
+ // GPT Image 2.6 converts its reference image to SVG with an OpenAI GPT model;
7301
+ // unlisted ids keep the gpt-<version>[-<name>] grammar.
7302
+ const FalOpenaiGptImage2p6SvgModelAliasSchema = z
7303
+ .string()
7304
+ .regex(/^gpt-\d+(?:\.\d+)*(?:-[a-z]+)*$/);
7305
+ // Pinned to the live queue OpenAPI read on 2026-11-11
7306
+ // (sha256 49e4f40b7df72c0cd75778ece7574516b7735106fec5b4070035de719af0e5a8). Field order follows x-fal-order-properties.
7307
+ // Docs: https://fal.ai/models/openai/gpt-image-2.6/sunburst/text-to-image/api
7308
+ export const FalOpenaiGptImage2p6SunburstTextToImageRequestSchema = z.object({
7309
+ prompt: z
7310
+ .string()
7311
+ .min(1)
7312
+ .max(32000)
7313
+ .describe("The prompt for image generation"),
7314
+ image_size: z
7315
+ .union([
7316
+ FalOpenaiGptImage2p6SunburstTextToImageImageSizeSchema,
7317
+ z.enum([
7318
+ "square_hd",
7319
+ "square",
7320
+ "portrait_4_3",
7321
+ "portrait_16_9",
7322
+ "landscape_4_3",
7323
+ "landscape_16_9",
7324
+ "auto",
7325
+ ]),
7326
+ ])
7327
+ .default("landscape_4_3")
7328
+ .describe("The size of the generated image. Supports preset names, explicit {width, height}, or 'auto' to let the model pick the best size. Concrete sizes must have both dimensions as multiples of 16, max edge 3840px, aspect ratio <= 3:1, total pixels between 655,360 and 8,294,400."),
7329
+ background: z
7330
+ .enum(["auto", "transparent", "opaque"])
7331
+ .default("auto")
7332
+ .describe("Background for the generated image"),
7333
+ quality: z
7334
+ .enum(["auto", "low", "medium", "high", "xhigh", "max"])
7335
+ .default("high")
7336
+ .describe("Rendering quality for the generated image. For SVG output it controls the reference image used to create the vector."),
7337
+ reasoning_effort: z
7338
+ .enum(["low", "medium", "high"])
7339
+ .default("high")
7340
+ .describe("How much the model plans before rendering, independently of quality (OpenAI `complexity`). Higher levels can help with dense text and complex layouts but add latency."),
7341
+ num_images: z
7342
+ .number()
7343
+ .int()
7344
+ .min(1)
7345
+ .max(10)
7346
+ .default(1)
7347
+ .describe("Number of images to generate. Must be 1 for SVG output. For GIF output, all frames of all outputs share the request's pixel budget."),
7348
+ output_format: z
7349
+ .enum(["jpeg", "png", "webp", "gif", "svg"])
7350
+ .default("png")
7351
+ .describe("Output format for the images. 'gif' returns an animation and 'svg' a vector image."),
7352
+ output_compression: z
7353
+ .number()
7354
+ .int()
7355
+ .min(0)
7356
+ .max(100)
7357
+ .nullable()
7358
+ .optional()
7359
+ .describe("Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'."),
7360
+ frame_count: z
7361
+ .number()
7362
+ .int()
7363
+ .min(2)
7364
+ .max(16)
7365
+ .default(9)
7366
+ .describe("GIF only: number of frames. image_size applies to each frame; reduce size or count if the request exceeds the pixel budget."),
7367
+ frame_duration_ms: z
7368
+ .number()
7369
+ .int()
7370
+ .min(20)
7371
+ .max(2000)
7372
+ .default(200)
7373
+ .describe("GIF only: milliseconds per frame, rounded to 10 ms."),
7374
+ svg_model: z
7375
+ .enum([
7376
+ "gpt-6-astra",
7377
+ "gpt-5.5",
7378
+ "gpt-5.4",
7379
+ "gpt-5.6-terra",
7380
+ "gpt-6-luna",
7381
+ "gpt-6-sol",
7382
+ ])
7383
+ .or(FalOpenaiGptImage2p6SvgModelAliasSchema)
7384
+ .default("gpt-6-astra")
7385
+ .describe("SVG only: the model that converts the generated reference image into vector paths. Larger models produce more accurate shapes."),
7386
+ sync_mode: z
7387
+ .boolean()
7388
+ .default(false)
7389
+ .describe("If `True`, the media will be returned as a data URI and the output data won't be available in the request history."),
7390
+ enable_safety_checker: z
7391
+ .boolean()
7392
+ .default(true)
7393
+ .describe("Authorized callers may set false to request relaxed screening."),
7394
+ });
7395
+ const FalOpenaiGptImage2p6SunburstEditImageSizeSchema = z.object({
7396
+ width: z
7397
+ .number()
7398
+ .int()
7399
+ .gt(0)
7400
+ .max(14142)
7401
+ .default(512)
7402
+ .describe("The width of the generated image."),
7403
+ height: z
7404
+ .number()
7405
+ .int()
7406
+ .gt(0)
7407
+ .max(14142)
7408
+ .default(512)
7409
+ .describe("The height of the generated image."),
7410
+ });
7411
+ // Pinned to the live queue OpenAPI read on 2026-11-11
7412
+ // (sha256 ccc9a7eda628e6472b96bf68e444e31741395974914b0ddc5e8b6190f6cbd0dc). Field order follows x-fal-order-properties.
7413
+ // Docs: https://fal.ai/models/openai/gpt-image-2.6/sunburst/edit/api
7414
+ export const FalOpenaiGptImage2p6SunburstEditRequestSchema = z.object({
7415
+ prompt: z
7416
+ .string()
7417
+ .min(1)
7418
+ .max(32000)
7419
+ .describe("The prompt for image generation"),
7420
+ image_urls: z
7421
+ .array(z.string())
7422
+ .max(16)
7423
+ .describe("The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed."),
7424
+ mask_url: z
7425
+ .string()
7426
+ .nullable()
7427
+ .optional()
7428
+ .describe("Mask image URL. White marks regions to edit and black marks regions to keep."),
7429
+ markup_image_url: z
7430
+ .string()
7431
+ .nullable()
7432
+ .optional()
7433
+ .describe("Transparent PNG containing only annotations (circles, arrows, notes) that guide the edit of the first image. Must match the first image's dimensions. Cannot be combined with mask_url. Reference images are sent unmodified when set."),
7434
+ image_size: z
7435
+ .union([
7436
+ FalOpenaiGptImage2p6SunburstEditImageSizeSchema,
7437
+ z.enum([
7438
+ "square_hd",
7439
+ "square",
7440
+ "portrait_4_3",
7441
+ "portrait_16_9",
7442
+ "landscape_4_3",
7443
+ "landscape_16_9",
7444
+ "auto",
7445
+ ]),
7446
+ ])
7447
+ .default("auto")
7448
+ .describe("The size of the generated image. Use 'auto' to infer from input images."),
7449
+ background: z
7450
+ .enum(["auto", "transparent", "opaque"])
7451
+ .default("auto")
7452
+ .describe("Background for the generated image"),
7453
+ quality: z
7454
+ .enum(["auto", "low", "medium", "high", "xhigh", "max"])
7455
+ .default("high")
7456
+ .describe("Rendering quality for the generated image. For SVG output it controls the reference image used to create the vector."),
7457
+ reasoning_effort: z
7458
+ .enum(["low", "medium", "high"])
7459
+ .default("high")
7460
+ .describe("How much the model plans before rendering, independently of quality (OpenAI `complexity`). Higher levels can help with dense text and complex layouts but add latency."),
7461
+ num_images: z
7462
+ .number()
7463
+ .int()
7464
+ .min(1)
7465
+ .max(10)
7466
+ .default(1)
7467
+ .describe("Number of images to generate. Must be 1 for SVG output. For GIF output, all frames of all outputs share the request's pixel budget."),
7468
+ output_format: z
7469
+ .enum(["jpeg", "png", "webp", "gif"])
7470
+ .default("png")
7471
+ .describe("Output format for the images. 'gif' returns an animation."),
7472
+ output_compression: z
7473
+ .number()
7474
+ .int()
7475
+ .min(0)
7476
+ .max(100)
7477
+ .nullable()
7478
+ .optional()
7479
+ .describe("Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'."),
7480
+ frame_count: z
7481
+ .number()
7482
+ .int()
7483
+ .min(2)
7484
+ .max(16)
7485
+ .default(9)
7486
+ .describe("GIF only: number of frames. image_size applies to each frame; reduce size or count if the request exceeds the pixel budget."),
7487
+ frame_duration_ms: z
7488
+ .number()
7489
+ .int()
7490
+ .min(20)
7491
+ .max(2000)
7492
+ .default(200)
7493
+ .describe("GIF only: milliseconds per frame, rounded to 10 ms."),
7494
+ sync_mode: z
7495
+ .boolean()
7496
+ .default(false)
7497
+ .describe("If `True`, the media will be returned as a data URI and the output data won't be available in the request history."),
7498
+ enable_safety_checker: z
7499
+ .boolean()
7500
+ .default(true)
7501
+ .describe("Authorized callers may set false to request relaxed screening."),
7502
+ });
7503
+ const FalOpenaiGptImage2p6FlareEditImageSizeSchema = z.object({
7504
+ width: z
7505
+ .number()
7506
+ .int()
7507
+ .gt(0)
7508
+ .max(14142)
7509
+ .default(512)
7510
+ .describe("The width of the generated image."),
7511
+ height: z
7512
+ .number()
7513
+ .int()
7514
+ .gt(0)
7515
+ .max(14142)
7516
+ .default(512)
7517
+ .describe("The height of the generated image."),
7518
+ });
7519
+ // Pinned to the live queue OpenAPI read on 2026-11-11
7520
+ // (sha256 1620a82cfa986ed100e7ab80467fae9a56f370a7872a5311abd620a5b263dba2). Field order follows x-fal-order-properties.
7521
+ // Docs: https://fal.ai/models/openai/gpt-image-2.6/flare/edit/api
7522
+ export const FalOpenaiGptImage2p6FlareEditRequestSchema = z.object({
7523
+ prompt: z
7524
+ .string()
7525
+ .min(1)
7526
+ .max(32000)
7527
+ .describe("The prompt for image generation"),
7528
+ image_urls: z
7529
+ .array(z.string())
7530
+ .max(16)
7531
+ .describe("The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed."),
7532
+ mask_url: z
7533
+ .string()
7534
+ .nullable()
7535
+ .optional()
7536
+ .describe("Mask image URL. White marks regions to edit and black marks regions to keep."),
7537
+ markup_image_url: z
7538
+ .string()
7539
+ .nullable()
7540
+ .optional()
7541
+ .describe("Transparent PNG containing only annotations (circles, arrows, notes) that guide the edit of the first image. Must match the first image's dimensions. Cannot be combined with mask_url. Reference images are sent unmodified when set."),
7542
+ image_size: z
7543
+ .union([
7544
+ FalOpenaiGptImage2p6FlareEditImageSizeSchema,
7545
+ z.enum([
7546
+ "square_hd",
7547
+ "square",
7548
+ "portrait_4_3",
7549
+ "portrait_16_9",
7550
+ "landscape_4_3",
7551
+ "landscape_16_9",
7552
+ "auto",
7553
+ ]),
7554
+ ])
7555
+ .default("auto")
7556
+ .describe("The size of the generated image. Use 'auto' to infer from input images."),
7557
+ background: z
7558
+ .enum(["auto", "transparent", "opaque"])
7559
+ .default("auto")
7560
+ .describe("Background for the generated image"),
7561
+ quality: z
7562
+ .enum(["auto", "low", "medium", "high", "xhigh", "max"])
7563
+ .default("high")
7564
+ .describe("Rendering quality for the generated image. For SVG output it controls the reference image used to create the vector."),
7565
+ reasoning_effort: z
7566
+ .enum(["low", "medium", "high"])
7567
+ .default("high")
7568
+ .describe("How much the model plans before rendering, independently of quality (OpenAI `complexity`). Higher levels can help with dense text and complex layouts but add latency."),
7569
+ num_images: z
7570
+ .number()
7571
+ .int()
7572
+ .min(1)
7573
+ .max(10)
7574
+ .default(1)
7575
+ .describe("Number of images to generate. Must be 1 for SVG output. For GIF output, all frames of all outputs share the request's pixel budget."),
7576
+ output_format: z
7577
+ .enum(["jpeg", "png", "webp", "gif"])
7578
+ .default("png")
7579
+ .describe("Output format for the images. 'gif' returns an animation."),
7580
+ output_compression: z
7581
+ .number()
7582
+ .int()
7583
+ .min(0)
7584
+ .max(100)
7585
+ .nullable()
7586
+ .optional()
7587
+ .describe("Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'."),
7588
+ frame_count: z
7589
+ .number()
7590
+ .int()
7591
+ .min(2)
7592
+ .max(16)
7593
+ .default(9)
7594
+ .describe("GIF only: number of frames. image_size applies to each frame; reduce size or count if the request exceeds the pixel budget."),
7595
+ frame_duration_ms: z
7596
+ .number()
7597
+ .int()
7598
+ .min(20)
7599
+ .max(2000)
7600
+ .default(200)
7601
+ .describe("GIF only: milliseconds per frame, rounded to 10 ms."),
7602
+ sync_mode: z
7603
+ .boolean()
7604
+ .default(false)
7605
+ .describe("If `True`, the media will be returned as a data URI and the output data won't be available in the request history."),
7606
+ enable_safety_checker: z
7607
+ .boolean()
7608
+ .default(true)
7609
+ .describe("Authorized callers may set false to request relaxed screening."),
7610
+ });
7611
+ const FalOpenaiGptImage2p6FlareTextToImageImageSizeSchema = z.object({
7612
+ width: z
7613
+ .number()
7614
+ .int()
7615
+ .gt(0)
7616
+ .max(14142)
7617
+ .default(512)
7618
+ .describe("The width of the generated image."),
7619
+ height: z
7620
+ .number()
7621
+ .int()
7622
+ .gt(0)
7623
+ .max(14142)
7624
+ .default(512)
7625
+ .describe("The height of the generated image."),
7626
+ });
7627
+ // Pinned to the live queue OpenAPI read on 2026-11-11
7628
+ // (sha256 7ac322e36a1a1436dd6505924977f3c9369c913b8a18bc292d95bc0cc04e2c49). Field order follows x-fal-order-properties.
7629
+ // Docs: https://fal.ai/models/openai/gpt-image-2.6/flare/text-to-image/api
7630
+ export const FalOpenaiGptImage2p6FlareTextToImageRequestSchema = z.object({
7631
+ prompt: z
7632
+ .string()
7633
+ .min(1)
7634
+ .max(32000)
7635
+ .describe("The prompt for image generation"),
7636
+ image_size: z
7637
+ .union([
7638
+ FalOpenaiGptImage2p6FlareTextToImageImageSizeSchema,
7639
+ z.enum([
7640
+ "square_hd",
7641
+ "square",
7642
+ "portrait_4_3",
7643
+ "portrait_16_9",
7644
+ "landscape_4_3",
7645
+ "landscape_16_9",
7646
+ "auto",
7647
+ ]),
7648
+ ])
7649
+ .default("landscape_4_3")
7650
+ .describe("The size of the generated image. Supports preset names, explicit {width, height}, or 'auto' to let the model pick the best size. Concrete sizes must have both dimensions as multiples of 16, max edge 3840px, aspect ratio <= 3:1, total pixels between 655,360 and 8,294,400."),
7651
+ background: z
7652
+ .enum(["auto", "transparent", "opaque"])
7653
+ .default("auto")
7654
+ .describe("Background for the generated image"),
7655
+ quality: z
7656
+ .enum(["auto", "low", "medium", "high", "xhigh", "max"])
7657
+ .default("high")
7658
+ .describe("Rendering quality for the generated image. For SVG output it controls the reference image used to create the vector."),
7659
+ reasoning_effort: z
7660
+ .enum(["low", "medium", "high"])
7661
+ .default("high")
7662
+ .describe("How much the model plans before rendering, independently of quality (OpenAI `complexity`). Higher levels can help with dense text and complex layouts but add latency."),
7663
+ num_images: z
7664
+ .number()
7665
+ .int()
7666
+ .min(1)
7667
+ .max(10)
7668
+ .default(1)
7669
+ .describe("Number of images to generate. Must be 1 for SVG output. For GIF output, all frames of all outputs share the request's pixel budget."),
7670
+ output_format: z
7671
+ .enum(["jpeg", "png", "webp", "gif", "svg"])
7672
+ .default("png")
7673
+ .describe("Output format for the images. 'gif' returns an animation and 'svg' a vector image."),
7674
+ output_compression: z
7675
+ .number()
7676
+ .int()
7677
+ .min(0)
7678
+ .max(100)
7679
+ .nullable()
7680
+ .optional()
7681
+ .describe("Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'."),
7682
+ frame_count: z
7683
+ .number()
7684
+ .int()
7685
+ .min(2)
7686
+ .max(16)
7687
+ .default(9)
7688
+ .describe("GIF only: number of frames. image_size applies to each frame; reduce size or count if the request exceeds the pixel budget."),
7689
+ frame_duration_ms: z
7690
+ .number()
7691
+ .int()
7692
+ .min(20)
7693
+ .max(2000)
7694
+ .default(200)
7695
+ .describe("GIF only: milliseconds per frame, rounded to 10 ms."),
7696
+ svg_model: z
7697
+ .enum([
7698
+ "gpt-6-astra",
7699
+ "gpt-5.5",
7700
+ "gpt-5.4",
7701
+ "gpt-5.6-terra",
7702
+ "gpt-6-luna",
7703
+ "gpt-6-sol",
7704
+ ])
7705
+ .or(FalOpenaiGptImage2p6SvgModelAliasSchema)
7706
+ .default("gpt-6-astra")
7707
+ .describe("SVG only: the model that converts the generated reference image into vector paths. Larger models produce more accurate shapes."),
7708
+ sync_mode: z
7709
+ .boolean()
7710
+ .default(false)
7711
+ .describe("If `True`, the media will be returned as a data URI and the output data won't be available in the request history."),
7712
+ enable_safety_checker: z
7713
+ .boolean()
7714
+ .default(true)
7715
+ .describe("Authorized callers may set false to request relaxed screening."),
7716
+ });
6966
7717
  const FalOpenaiGptImage2p5FlareEditImageSizeSchema = z.object({
6967
7718
  width: z
6968
7719
  .number()
@@ -13457,6 +14208,10 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
13457
14208
  "openai/gpt-image-2.5/flare/edit": FalOpenaiGptImage2p5FlareEditRequestSchema,
13458
14209
  "openai/gpt-image-2.5/sunburst/text-to-image": FalOpenaiGptImage2p5SunburstTextToImageRequestSchema,
13459
14210
  "openai/gpt-image-2.5/sunburst/edit": FalOpenaiGptImage2p5SunburstEditRequestSchema,
14211
+ "openai/gpt-image-2.6/sunburst/text-to-image": FalOpenaiGptImage2p6SunburstTextToImageRequestSchema,
14212
+ "openai/gpt-image-2.6/sunburst/edit": FalOpenaiGptImage2p6SunburstEditRequestSchema,
14213
+ "openai/gpt-image-2.6/flare/edit": FalOpenaiGptImage2p6FlareEditRequestSchema,
14214
+ "openai/gpt-image-2.6/flare/text-to-image": FalOpenaiGptImage2p6FlareTextToImageRequestSchema,
13460
14215
  "meta/muse-image/edit": FalMetaMuseImageEditRequestSchema,
13461
14216
  "krea/v3/edit": FalKreaV3EditRequestSchema,
13462
14217
  "krea/v3/text-to-image": FalKreaV3TextToImageRequestSchema,
@@ -13487,6 +14242,12 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
13487
14242
  "google/gemini-omni-flash/v1.1/image-to-video": FalGeminiOmniFlashV1p1ImageToVideoRequestSchema,
13488
14243
  "google/gemini-omni-flash/v1.1/reference-to-video": FalGeminiOmniFlashV1p1ReferenceToVideoRequestSchema,
13489
14244
  "google/gemini-omni-flash/v1.1/edit": FalGeminiOmniFlashV1p1EditRequestSchema,
14245
+ "google/gemini-omni-flash/v1.2/edit": FalGeminiOmniFlashV1p2EditRequestSchema,
14246
+ "google/gemini-omni-flash/v1.2/reference-to-video": FalGeminiOmniFlashV1p2ReferenceToVideoRequestSchema,
14247
+ "google/gemini-omni-flash/v1.2/text-to-video": FalGeminiOmniFlashV1p2TextToVideoRequestSchema,
14248
+ "google/gemini-omni-flash/v1.2/image-to-video": FalGeminiOmniFlashV1p2ImageToVideoRequestSchema,
14249
+ "google/gemini-omni-flash/v1.2/extend": FalGeminiOmniFlashV1p2ExtendRequestSchema,
14250
+ "google/gemini-omni-flash/v1.2/upscale": FalGeminiOmniFlashV1p2UpscaleRequestSchema,
13490
14251
  "xai/grok-imagine-video/v1.5/image-to-video": FalXaiGrokImagineVideoV1p5ImageToVideoRequestSchema,
13491
14252
  "xai/grok-imagine-video/v1.5/text-to-video": FalXaiGrokImagineVideoV1p5TextToVideoRequestSchema,
13492
14253
  "minimax/h3-max-turbo/text-to-video": FalMinimaxH3MaxTurboTextToVideoRequestSchema,
@@ -13552,6 +14313,9 @@ export const FAL_ENDPOINT_REQUEST_SCHEMAS = {
13552
14313
  "bytedance/seedance-2.0/text-to-video": FalSeedance2p0TextToVideoRequestSchema,
13553
14314
  "bytedance/seedance-2.0/fast/image-to-video": FalSeedance2p0FastImageToVideoRequestSchema,
13554
14315
  "bytedance/seedance-2.0/fast/text-to-video": FalSeedance2p0FastTextToVideoRequestSchema,
14316
+ "bytedance/seedance-2.0/mini/image-to-video": FalSeedance2p0MiniImageToVideoRequestSchema,
14317
+ "bytedance/seedance-2.0/mini/reference-to-video": FalSeedance2p0MiniReferenceToVideoRequestSchema,
14318
+ "bytedance/seedance-2.0/mini/text-to-video": FalSeedance2p0MiniTextToVideoRequestSchema,
13555
14319
  "bytedance/seedance-2.0/reference-to-video": FalSeedance2p0ReferenceToVideoRequestSchema,
13556
14320
  "bytedance/seedance-2.0/fast/reference-to-video": FalSeedance2p0FastReferenceToVideoRequestSchema,
13557
14321
  "bytedance/seedance-2.5/text-to-video": FalSeedance2p5TextToVideoRequestSchema,