@shop-os/modelkit 0.14.0 → 0.15.1

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.
@@ -598,6 +598,11 @@ type SupportedOption = "seed" | "quality" | "negativePrompt" | "cfgScale" | "gen
598
598
  | "insertWindow"
599
599
  /** Mask rows: `ImageRequest.points` and `ImageRequest.boxes`. */
600
600
  | "points" | "boxes";
601
+ /** Smallest frame a provider takes for an input video, in pixels (fal: "Min width: 700px"). */
602
+ interface VideoPixelLimits {
603
+ minWidth?: number;
604
+ minHeight?: number;
605
+ }
601
606
  interface VideoSecondsLimits {
602
607
  /** Minimum length of each reference video, in seconds. */
603
608
  min?: number;
@@ -619,6 +624,8 @@ interface ReferenceLimits {
619
624
  audioOnly?: boolean;
620
625
  /** Per-video length caps (min/max each) and combined total for reference videos. */
621
626
  videoSeconds?: VideoSecondsLimits;
627
+ /** Smallest frame each reference video may have (Kling 4.0: 700 px). Kits before 0.15.0 ignore it. */
628
+ videoPixels?: VideoPixelLimits;
622
629
  /** Per-clip length caps (min/max each) and combined total for reference audio, in seconds. */
623
630
  audioSeconds?: {
624
631
  min?: number;
@@ -748,6 +755,8 @@ interface ModelConstraints {
748
755
  languages?: LanguageOption[];
749
756
  /** Audio-output rows whose provider lets the caller pick a file format; `defaults.outputFormat` is one. */
750
757
  outputFormats?: string[];
758
+ /** Smallest frame the source video may have (Kling 4.0 Edit: 700 px). Kits before 0.15.0 ignore it. */
759
+ sourceVideoPixels?: VideoPixelLimits;
751
760
  /** Length limits for the source video the row edits or extends. */
752
761
  sourceVideoSeconds?: Omit<VideoSecondsLimits, "total"> & {
753
762
  /** The provider sends the source as a reference video, so it counts toward `references.videoSeconds.total` (Seedance). */
@@ -1224,6 +1233,10 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1224
1233
  total: z.ZodOptional<z.ZodNumber>;
1225
1234
  editMin: z.ZodOptional<z.ZodNumber>;
1226
1235
  }, z.core.$loose>>;
1236
+ videoPixels: z.ZodOptional<z.ZodObject<{
1237
+ minWidth: z.ZodOptional<z.ZodNumber>;
1238
+ minHeight: z.ZodOptional<z.ZodNumber>;
1239
+ }, z.core.$loose>>;
1227
1240
  audioSeconds: z.ZodOptional<z.ZodObject<{
1228
1241
  min: z.ZodOptional<z.ZodNumber>;
1229
1242
  max: z.ZodOptional<z.ZodNumber>;
@@ -1301,6 +1314,10 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1301
1314
  name: z.ZodString;
1302
1315
  }, z.core.$loose>>>;
1303
1316
  outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1317
+ sourceVideoPixels: z.ZodOptional<z.ZodObject<{
1318
+ minWidth: z.ZodOptional<z.ZodNumber>;
1319
+ minHeight: z.ZodOptional<z.ZodNumber>;
1320
+ }, z.core.$loose>>;
1304
1321
  sourceVideoSeconds: z.ZodOptional<z.ZodObject<{
1305
1322
  max: z.ZodOptional<z.ZodNumber>;
1306
1323
  min: z.ZodOptional<z.ZodNumber>;
@@ -1773,6 +1790,19 @@ declare function videoLengthViolation(model: CatalogModel, input: {
1773
1790
  sourceVideo?: number;
1774
1791
  taskType?: VideoRequest["taskType"];
1775
1792
  }): string | undefined;
1793
+ type MeasuredFrame = {
1794
+ width?: number;
1795
+ height?: number;
1796
+ } | undefined;
1797
+ /**
1798
+ * First frame-size violation for the videos a request sends, as a user-facing message, from
1799
+ * their measured pixel sizes (`references.videoPixels`, `sourceVideoPixels`). An unmeasured
1800
+ * video passes: the provider still has the last word.
1801
+ */
1802
+ declare function videoSizeViolation(model: CatalogModel, input: {
1803
+ referenceVideos?: MeasuredFrame[];
1804
+ sourceVideo?: MeasuredFrame;
1805
+ }): string | undefined;
1776
1806
  declare function resolveImageOptions(model: CatalogModel, request: ImageRequest, onUnsupported?: OnUnsupported): ResolveResult<ImageRequest>;
1777
1807
  declare function resolveVideoOptions(model: CatalogModel, request: VideoRequest, onUnsupported?: OnUnsupported): ResolveResult<VideoRequest>;
1778
1808
  declare function resolveAudioOptions(model: CatalogModel, request: AudioRequest, onUnsupported?: OnUnsupported): ResolveResult<AudioRequest>;
@@ -1938,4 +1968,4 @@ declare function promptConventions(row: {
1938
1968
  constraints: unknown;
1939
1969
  }): PromptConventions;
1940
1970
 
1941
- export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceCandidate, type VoiceChangeRequest, type VoiceCloneRequest, type VoiceCloneResult, type VoiceCloneState, type VoiceDeleteRequest, type VoiceDesignRequest, type VoiceDesignResult, type VoiceGender, type VoiceOption, type VoiceSample, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, lumaReframeTooTall, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, resolveVoiceCloneOptions, resolveVoiceDesignOptions, sortCatalogRows, takesTargetAspectRatio, videoLengthViolation, videoToolConstraints };
1971
+ export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoPixelLimits, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceCandidate, type VoiceChangeRequest, type VoiceCloneRequest, type VoiceCloneResult, type VoiceCloneState, type VoiceDeleteRequest, type VoiceDesignRequest, type VoiceDesignResult, type VoiceGender, type VoiceOption, type VoiceSample, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, lumaReframeTooTall, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, resolveVoiceCloneOptions, resolveVoiceDesignOptions, sortCatalogRows, takesTargetAspectRatio, videoLengthViolation, videoSizeViolation, videoToolConstraints };
package/dist/catalog.d.ts CHANGED
@@ -598,6 +598,11 @@ type SupportedOption = "seed" | "quality" | "negativePrompt" | "cfgScale" | "gen
598
598
  | "insertWindow"
599
599
  /** Mask rows: `ImageRequest.points` and `ImageRequest.boxes`. */
600
600
  | "points" | "boxes";
601
+ /** Smallest frame a provider takes for an input video, in pixels (fal: "Min width: 700px"). */
602
+ interface VideoPixelLimits {
603
+ minWidth?: number;
604
+ minHeight?: number;
605
+ }
601
606
  interface VideoSecondsLimits {
602
607
  /** Minimum length of each reference video, in seconds. */
603
608
  min?: number;
@@ -619,6 +624,8 @@ interface ReferenceLimits {
619
624
  audioOnly?: boolean;
620
625
  /** Per-video length caps (min/max each) and combined total for reference videos. */
621
626
  videoSeconds?: VideoSecondsLimits;
627
+ /** Smallest frame each reference video may have (Kling 4.0: 700 px). Kits before 0.15.0 ignore it. */
628
+ videoPixels?: VideoPixelLimits;
622
629
  /** Per-clip length caps (min/max each) and combined total for reference audio, in seconds. */
623
630
  audioSeconds?: {
624
631
  min?: number;
@@ -748,6 +755,8 @@ interface ModelConstraints {
748
755
  languages?: LanguageOption[];
749
756
  /** Audio-output rows whose provider lets the caller pick a file format; `defaults.outputFormat` is one. */
750
757
  outputFormats?: string[];
758
+ /** Smallest frame the source video may have (Kling 4.0 Edit: 700 px). Kits before 0.15.0 ignore it. */
759
+ sourceVideoPixels?: VideoPixelLimits;
751
760
  /** Length limits for the source video the row edits or extends. */
752
761
  sourceVideoSeconds?: Omit<VideoSecondsLimits, "total"> & {
753
762
  /** The provider sends the source as a reference video, so it counts toward `references.videoSeconds.total` (Seedance). */
@@ -1224,6 +1233,10 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1224
1233
  total: z.ZodOptional<z.ZodNumber>;
1225
1234
  editMin: z.ZodOptional<z.ZodNumber>;
1226
1235
  }, z.core.$loose>>;
1236
+ videoPixels: z.ZodOptional<z.ZodObject<{
1237
+ minWidth: z.ZodOptional<z.ZodNumber>;
1238
+ minHeight: z.ZodOptional<z.ZodNumber>;
1239
+ }, z.core.$loose>>;
1227
1240
  audioSeconds: z.ZodOptional<z.ZodObject<{
1228
1241
  min: z.ZodOptional<z.ZodNumber>;
1229
1242
  max: z.ZodOptional<z.ZodNumber>;
@@ -1301,6 +1314,10 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1301
1314
  name: z.ZodString;
1302
1315
  }, z.core.$loose>>>;
1303
1316
  outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1317
+ sourceVideoPixels: z.ZodOptional<z.ZodObject<{
1318
+ minWidth: z.ZodOptional<z.ZodNumber>;
1319
+ minHeight: z.ZodOptional<z.ZodNumber>;
1320
+ }, z.core.$loose>>;
1304
1321
  sourceVideoSeconds: z.ZodOptional<z.ZodObject<{
1305
1322
  max: z.ZodOptional<z.ZodNumber>;
1306
1323
  min: z.ZodOptional<z.ZodNumber>;
@@ -1773,6 +1790,19 @@ declare function videoLengthViolation(model: CatalogModel, input: {
1773
1790
  sourceVideo?: number;
1774
1791
  taskType?: VideoRequest["taskType"];
1775
1792
  }): string | undefined;
1793
+ type MeasuredFrame = {
1794
+ width?: number;
1795
+ height?: number;
1796
+ } | undefined;
1797
+ /**
1798
+ * First frame-size violation for the videos a request sends, as a user-facing message, from
1799
+ * their measured pixel sizes (`references.videoPixels`, `sourceVideoPixels`). An unmeasured
1800
+ * video passes: the provider still has the last word.
1801
+ */
1802
+ declare function videoSizeViolation(model: CatalogModel, input: {
1803
+ referenceVideos?: MeasuredFrame[];
1804
+ sourceVideo?: MeasuredFrame;
1805
+ }): string | undefined;
1776
1806
  declare function resolveImageOptions(model: CatalogModel, request: ImageRequest, onUnsupported?: OnUnsupported): ResolveResult<ImageRequest>;
1777
1807
  declare function resolveVideoOptions(model: CatalogModel, request: VideoRequest, onUnsupported?: OnUnsupported): ResolveResult<VideoRequest>;
1778
1808
  declare function resolveAudioOptions(model: CatalogModel, request: AudioRequest, onUnsupported?: OnUnsupported): ResolveResult<AudioRequest>;
@@ -1938,4 +1968,4 @@ declare function promptConventions(row: {
1938
1968
  constraints: unknown;
1939
1969
  }): PromptConventions;
1940
1970
 
1941
- export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceCandidate, type VoiceChangeRequest, type VoiceCloneRequest, type VoiceCloneResult, type VoiceCloneState, type VoiceDeleteRequest, type VoiceDesignRequest, type VoiceDesignResult, type VoiceGender, type VoiceOption, type VoiceSample, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, lumaReframeTooTall, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, resolveVoiceCloneOptions, resolveVoiceDesignOptions, sortCatalogRows, takesTargetAspectRatio, videoLengthViolation, videoToolConstraints };
1971
+ export { ADAPTER_IDS, AUDIO_OUTPUTS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type KeyTier, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MEDIA_METHODS, MEDIA_NODE_MODELS, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaMethod, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, REFERENCE_SYNTAXES, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveCall, type ResolveResult, type ResolvedCall, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoPixelLimits, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceCandidate, type VoiceChangeRequest, type VoiceCloneRequest, type VoiceCloneResult, type VoiceCloneState, type VoiceDeleteRequest, type VoiceDesignRequest, type VoiceDesignResult, type VoiceGender, type VoiceOption, type VoiceSample, type Warning, billedAudio, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, lumaReframeTooTall, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, outputAudio, planVideoTool, primeCatalog, promptConventions, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveLipsyncOptions, resolveOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, resolveVoiceCloneOptions, resolveVoiceDesignOptions, sortCatalogRows, takesTargetAspectRatio, videoLengthViolation, videoSizeViolation, videoToolConstraints };
package/dist/catalog.js CHANGED
@@ -550,7 +550,7 @@ var IMAGE_MODELS = [
550
550
  // Cowork "auto" lets OpenAI pick the size; the canonical equivalent is adaptive.
551
551
  id: "gpt-image-2",
552
552
  aliases: [],
553
- label: "GPT-image-2",
553
+ label: "GPT Image 2",
554
554
  type: "image",
555
555
  adapter: "openai-image",
556
556
  providerModelId: "gpt-image-2",
@@ -737,7 +737,7 @@ var IMAGE_MODELS = [
737
737
  display: {
738
738
  provider: "bytedance",
739
739
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
740
- description: "ByteDance Seedream 5.0 Pro text-to-image and multi-reference image-to-image (up to 10 inputs) with region editing; outputs 1K, 1.5K, or 2K."
740
+ description: "ByteDance Seedream 5.0 Pro text-to-image and multi-reference image-to-image (up to 10 inputs) with region editing; outputs 1K or 2K."
741
741
  }
742
742
  },
743
743
  {
@@ -780,7 +780,7 @@ var IMAGE_MODELS = [
780
780
  {
781
781
  id: "flux-2-pro",
782
782
  aliases: [],
783
- label: "Flux 2 Pro",
783
+ label: "FLUX 2 Pro",
784
784
  type: "image",
785
785
  adapter: "prodia",
786
786
  providerModelId: "flux-2-pro",
@@ -801,7 +801,7 @@ var IMAGE_MODELS = [
801
801
  display: {
802
802
  provider: "black-forest-labs",
803
803
  logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/flux.png",
804
- description: "Black Forest Labs FLUX.2 [pro] text-to-image and multi-reference editing model served via Prodia; takes a prompt and up to 8 input images and outputs up to 4096x4096."
804
+ description: "Black Forest Labs FLUX.2 [pro] text-to-image and multi-reference editing model; takes a prompt and up to 8 input images and outputs 1K images."
805
805
  }
806
806
  },
807
807
  {
@@ -861,7 +861,7 @@ var IMAGE_MODELS = [
861
861
  // https://replicate.com/wan-video/wan-2.7-image-pro (input schema)
862
862
  id: "wan-2.7-image-pro",
863
863
  aliases: [],
864
- label: "WAN 2.7 Image Pro",
864
+ label: "Wan 2.7 Image Pro",
865
865
  type: "image",
866
866
  adapter: "replicate",
867
867
  providerModelId: "wan-video/wan-2.7-image-pro",
@@ -1185,7 +1185,7 @@ var SAM_3_IMAGE = {
1185
1185
  display: {
1186
1186
  provider: "meta",
1187
1187
  logo: META_LOGO,
1188
- description: "Meta SAM 3 on fal; finds every object a prompt names in one image and returns a black-and-white mask for each."
1188
+ description: "Meta SAM 3; finds every object a prompt names in one image and returns a black-and-white mask for each."
1189
1189
  }
1190
1190
  };
1191
1191
  var VEED_SUBTITLES = {
@@ -2027,7 +2027,7 @@ var FISH_MODELS = [
2027
2027
  "fish-s2.1-pro-free",
2028
2028
  "Fish Audio S2.1 Pro Free",
2029
2029
  "s2.1-pro-free",
2030
- "Fish Audio S2.1 Pro on the free developer tier: the same voices at no cost, without latency or data-processing guarantees."
2030
+ "Fish Audio S2.1 Pro text to speech, with the same voices as S2.1 Pro."
2031
2031
  ),
2032
2032
  fishTts(
2033
2033
  "fish-drama-3",
@@ -3765,7 +3765,7 @@ var MEDIA_NODE_MODELS = [
3765
3765
  formats: false,
3766
3766
  // fal's schema states no limit; ElevenLabs documents 10,000 characters per request.
3767
3767
  maxChars: 1e4,
3768
- description: "ElevenLabs Multilingual v2 text to speech in 29 languages; the voice the canvas TTS node has always used."
3768
+ description: "ElevenLabs Multilingual v2 text to speech in 29 languages."
3769
3769
  }),
3770
3770
  geminiTts(
3771
3771
  "gemini-3.8-flash-tts",
@@ -3861,7 +3861,7 @@ var MEDIA_NODE_MODELS = [
3861
3861
  "Sync Lipsync 2",
3862
3862
  "fal-ai/sync-lipsync/v2",
3863
3863
  "lipsync-2",
3864
- "Sync Lipsync 2 re-times the mouth in a video to new speech; the canvas Lipsync node's original model."
3864
+ "Sync Lipsync 2 re-times the mouth in a video to new speech."
3865
3865
  ),
3866
3866
  syncLipsync(
3867
3867
  "lipsync-2-pro",
@@ -3899,7 +3899,7 @@ var MEDIA_NODE_MODELS = [
3899
3899
  display: {
3900
3900
  provider: "veed",
3901
3901
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/d540d2bb-0022-4371-8889-48aefaf46bbe.png",
3902
- description: "VEED Lipsync v2 re-times the mouth in a video to a new audio track; billed per second of output."
3902
+ description: "VEED Lipsync v2 re-times the mouth in a video to a new audio track."
3903
3903
  },
3904
3904
  capabilities: { acceptsSourceVideo: true }
3905
3905
  },
@@ -4244,7 +4244,7 @@ var OTHER_MODELS = [
4244
4244
  pricingKind: "flat",
4245
4245
  display: {
4246
4246
  provider: "mmaudio",
4247
- description: "MMAudio V2 video-to-audio model on Replicate; takes a source video and prompt and synthesizes synchronized environmental, action, and speech-like audio."
4247
+ description: "MMAudio V2 video-to-audio model; takes a source video and a prompt and synthesizes synchronized environmental, action, and speech-like audio."
4248
4248
  },
4249
4249
  capabilities: {}
4250
4250
  },
@@ -4454,7 +4454,7 @@ var OTHER_MODELS = [
4454
4454
  display: {
4455
4455
  provider: "topaz",
4456
4456
  logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/topazlabs.png",
4457
- description: "Topaz Labs AI image upscaling on Replicate; takes one input image and upscales up to 6x with selectable enhancement models and optional face enhancement."
4457
+ description: "Topaz Labs AI image upscaling; takes one input image and upscales up to 6x with selectable enhancement models and optional face enhancement."
4458
4458
  }
4459
4459
  },
4460
4460
  {
@@ -4480,7 +4480,7 @@ var OTHER_MODELS = [
4480
4480
  display: {
4481
4481
  provider: "bytedance",
4482
4482
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
4483
- description: "ByteDance SeedVR2 one-step image upscaling and restoration on fal; takes one input image and upscales it 2x or 4x with sharp, faithful detail."
4483
+ description: "ByteDance SeedVR2 one-step image upscaling and restoration; takes one input image and upscales it 2x or 4x with sharp, faithful detail."
4484
4484
  }
4485
4485
  },
4486
4486
  {
@@ -4504,7 +4504,7 @@ var OTHER_MODELS = [
4504
4504
  pricingKind: "flat",
4505
4505
  display: {
4506
4506
  provider: "prodia",
4507
- description: "Prodia background removal; takes one input image and returns a PNG cut-out of the subject plus an optional black-and-white mask."
4507
+ description: "Background removal; takes one input image and returns a PNG cut-out of the subject plus an optional black-and-white mask."
4508
4508
  }
4509
4509
  }
4510
4510
  ];
@@ -5082,6 +5082,7 @@ function klingMotionControl(tier) {
5082
5082
  videos: 1,
5083
5083
  audios: 0,
5084
5084
  videoSeconds: { min: 3, max: 30.05 },
5085
+ videoPixels: { minWidth: 340, minHeight: 340 },
5085
5086
  min: { images: 1, videos: 1 }
5086
5087
  },
5087
5088
  requires: ["references"],
@@ -5148,6 +5149,7 @@ var VIDEO_FAMILY_MODELS = [
5148
5149
  references: { ...NO_REFERENCES, images: 4 },
5149
5150
  requires: ["sourceVideo"],
5150
5151
  sourceVideoSeconds: { min: 3, max: 15.05 },
5152
+ sourceVideoPixels: { minWidth: 720, minHeight: 720 },
5151
5153
  // generateAudio keeps (true) or drops (false) the source soundtrack.
5152
5154
  supports: ["generateAudio"],
5153
5155
  prompt: KLING_PROMPT,
@@ -5188,7 +5190,8 @@ var VIDEO_FAMILY_MODELS = [
5188
5190
  ...NO_REFERENCES,
5189
5191
  images: 10,
5190
5192
  videos: 5,
5191
- videoSeconds: { min: 3, max: 30.05, total: 30 }
5193
+ videoSeconds: { min: 3, max: 30.05, total: 30 },
5194
+ videoPixels: { minWidth: 700, minHeight: 700 }
5192
5195
  },
5193
5196
  supports: ["lastFrame"],
5194
5197
  prompt: KLING_V4_PROMPT,
@@ -5200,7 +5203,7 @@ var VIDEO_FAMILY_MODELS = [
5200
5203
  display: {
5201
5204
  provider: "kuaishou",
5202
5205
  logo: KLING_LOGO,
5203
- description: "Kuaishou Kling 4.0: text-to-video, start/end frames, or reference-to-video from up to 10 images and 5 videos (30 seconds combined), 3-30 seconds at 720p or 1080p. Prompts name references @Image1, @Video1."
5206
+ description: "Kuaishou Kling 4.0: text-to-video, start/end frames, or reference-to-video from up to 10 images and 5 videos (30 seconds combined), up to 30 seconds at 720p or 1080p. Prompts name references @Image1, @Video1."
5204
5207
  },
5205
5208
  capabilities: { lastFrameRequiresFirstFrame: true }
5206
5209
  },
@@ -5222,6 +5225,7 @@ var VIDEO_FAMILY_MODELS = [
5222
5225
  references: { ...NO_REFERENCES, images: 10 },
5223
5226
  requires: ["sourceVideo"],
5224
5227
  sourceVideoSeconds: { min: 3, max: 30.05 },
5228
+ sourceVideoPixels: { minWidth: 700, minHeight: 700 },
5225
5229
  supports: [],
5226
5230
  prompt: KLING_V4_PROMPT,
5227
5231
  audio: KLING_V4_AUDIO
@@ -5544,7 +5548,7 @@ var VIDEO_FAMILY_MODELS = [
5544
5548
  display: {
5545
5549
  provider: "xai",
5546
5550
  logo: XAI_LOGO,
5547
- description: "xAI Grok Imagine 1.5: text- and image-to-video at native 1080p with lip-synced audio, or up to 14 reference images and pinned first and last frames at 720p, 1-15 seconds."
5551
+ description: "xAI Grok Imagine 1.5: text- and image-to-video at native 1080p with lip-synced audio, or up to 14 reference images and pinned first and last frames at 720p, up to 15 seconds."
5548
5552
  },
5549
5553
  capabilities: {}
5550
5554
  }
@@ -5901,7 +5905,7 @@ var VIDEO_MODELS = [
5901
5905
  pricingKind: "video_per_second",
5902
5906
  display: {
5903
5907
  provider: "bytedance",
5904
- description: "High-quality AI video generation with reference image conditioning. Supports 4-15 second clips with human preprocessing.",
5908
+ description: "High-quality ByteDance video generation guided by reference images, for clips up to 15 seconds.",
5905
5909
  logo: BYTEDANCE_LOGO2
5906
5910
  },
5907
5911
  capabilities: { acceptsSourceVideo: true, videoEdit: false, ...FRAMES_EXCLUDE_REFERENCES }
@@ -6025,7 +6029,7 @@ var VIDEO_MODELS = [
6025
6029
  pricingKind: "video_per_second",
6026
6030
  display: {
6027
6031
  provider: "xai",
6028
- description: "xAI's reference-to-video model. Generates short clips conditioned on up to 5 reference images with flexible aspect ratios.",
6032
+ description: "xAI's reference-to-video model. Generates short clips conditioned on up to 7 reference images with flexible aspect ratios.",
6029
6033
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png"
6030
6034
  },
6031
6035
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
@@ -6109,7 +6113,7 @@ var VIDEO_MODELS = [
6109
6113
  exposure: ["cowork", "space_builder"],
6110
6114
  constraints: {
6111
6115
  aspectRatios: [...KLING_OMNI_RATIOS],
6112
- resolutions: ["720p", "1080p", "4k"],
6116
+ resolutions: ["720p", "1080p"],
6113
6117
  durations: { min: 3, max: 15 },
6114
6118
  references: { images: 7, videos: 0, audios: 0 },
6115
6119
  supports: ["generateAudio", "lastFrame"],
@@ -6122,7 +6126,7 @@ var VIDEO_MODELS = [
6122
6126
  display: {
6123
6127
  provider: "kuaishou",
6124
6128
  logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/kling-color.png",
6125
- description: "Kuaishou Kling Video 3.0 Omni generation from text, start/end images and up to 7 reference images, with optional native audio; up to 15 seconds at up to 4K."
6129
+ description: "Kuaishou Kling Video 3.0 Omni generation from text, start/end images and up to 7 reference images, with optional native audio; up to 15 seconds at up to 1080p."
6126
6130
  }
6127
6131
  // No lastFrameRequiresFirstFrame: fal image-to-video needs a start frame, so the adapter
6128
6132
  // sends a lone end frame as the start frame, as the Replicate model took it.
@@ -6157,7 +6161,7 @@ var VIDEO_MODELS = [
6157
6161
  display: {
6158
6162
  provider: "minimax",
6159
6163
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
6160
- description: "MiniMax H3 multimodal video model for text-to-video, image-to-video (first/last frame), and reference-to-video with native audio, up to 2K."
6164
+ description: "MiniMax H3 multimodal video model for text-to-video, image-to-video (first/last frame), and reference-to-video with native audio, up to 4K."
6161
6165
  },
6162
6166
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
6163
6167
  },
@@ -6277,7 +6281,7 @@ var VIDEO_MODELS = [
6277
6281
  display: {
6278
6282
  provider: "minimax",
6279
6283
  logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
6280
- description: "MiniMax H3 Max reference-to-video on fal; conditions on reference images, videos, and audio. MiniMax's own docs do not list a reference mode for H3 Max."
6284
+ description: "MiniMax H3 Max reference-to-video; conditions on reference images, videos, and audio."
6281
6285
  },
6282
6286
  // fal's reference-to-video endpoint never reads a frame; the resolver must drop the
6283
6287
  // references instead of the adapter silently dropping the frame.
@@ -6321,7 +6325,7 @@ var VIDEO_MODELS = [
6321
6325
  pricingKind: "video_per_second",
6322
6326
  display: {
6323
6327
  provider: "alibaba",
6324
- description: "Alibaba Wan 3 video model for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 2-30 seconds at up to 1080p."
6328
+ description: "Alibaba Wan 3 video model for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; up to 30 seconds at up to 1080p."
6325
6329
  },
6326
6330
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6327
6331
  },
@@ -6363,7 +6367,7 @@ var VIDEO_MODELS = [
6363
6367
  pricingKind: "video_per_second",
6364
6368
  display: {
6365
6369
  provider: "alibaba",
6366
- description: "Alibaba Wan 3 Prime, the faster-generating tier of Wan 3, for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 2-30 seconds at up to 1080p."
6370
+ description: "Alibaba Wan 3 Prime, the faster-generating tier of Wan 3, for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; up to 30 seconds at up to 1080p."
6367
6371
  },
6368
6372
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6369
6373
  },
@@ -7772,6 +7776,10 @@ var VideoSecondsLimitsSchema = z3.looseObject({
7772
7776
  total: z3.number().optional(),
7773
7777
  editMin: z3.number().optional()
7774
7778
  });
7779
+ var VideoPixelLimitsSchema = z3.looseObject({
7780
+ minWidth: z3.number().int().positive().optional(),
7781
+ minHeight: z3.number().int().positive().optional()
7782
+ });
7775
7783
  var ReferenceLimitsSchema = z3.looseObject({
7776
7784
  images: z3.number().optional(),
7777
7785
  imagesWithVideo: z3.number().optional(),
@@ -7780,6 +7788,7 @@ var ReferenceLimitsSchema = z3.looseObject({
7780
7788
  total: z3.number().optional(),
7781
7789
  audioOnly: z3.boolean().optional(),
7782
7790
  videoSeconds: VideoSecondsLimitsSchema.optional(),
7791
+ videoPixels: VideoPixelLimitsSchema.optional(),
7783
7792
  audioSeconds: z3.looseObject({
7784
7793
  min: z3.number().optional(),
7785
7794
  max: z3.number().optional(),
@@ -7869,6 +7878,7 @@ var ModelConstraintsSchema = z3.looseObject({
7869
7878
  }).optional(),
7870
7879
  languages: z3.array(LanguageOptionSchema).optional(),
7871
7880
  outputFormats: z3.array(z3.string().min(1)).min(1).optional(),
7881
+ sourceVideoPixels: VideoPixelLimitsSchema.optional(),
7872
7882
  sourceVideoSeconds: VideoSecondsLimitsSchema.omit({ total: true }).extend({ inReferenceTotal: z3.boolean().optional() }).optional(),
7873
7883
  // segmentSeconds/maxTotalSeconds stay required: a kit before 0.3.0 drops a row whose
7874
7884
  // extension lacks them, so every extension block keeps them.
@@ -9393,6 +9403,28 @@ function videoLengthViolation(model, input) {
9393
9403
  return `${model.label} takes a source video of at least ${String(sourceMin)} s; this one is ${seconds2(source, sourceMin)} s.`;
9394
9404
  return void 0;
9395
9405
  }
9406
+ function undersizedSide(frame, limits) {
9407
+ if (!frame || !limits) return void 0;
9408
+ const { width, height } = frame;
9409
+ if (limits.minWidth !== void 0 && width !== void 0 && width > 0 && width < limits.minWidth)
9410
+ return { side: "wide", min: limits.minWidth, actual: width };
9411
+ if (limits.minHeight !== void 0 && height !== void 0 && height > 0 && height < limits.minHeight)
9412
+ return { side: "tall", min: limits.minHeight, actual: height };
9413
+ return void 0;
9414
+ }
9415
+ function videoSizeViolation(model, input) {
9416
+ const refLimits = model.constraints.references?.videoPixels;
9417
+ const refs = input.referenceVideos ?? [];
9418
+ for (let i = 0; i < refs.length; i++) {
9419
+ const under2 = undersizedSide(refs[i], refLimits);
9420
+ if (under2)
9421
+ return `${model.label} takes reference videos at least ${String(under2.min)} px ${under2.side}; video ${i + 1} is ${String(under2.actual)} px.`;
9422
+ }
9423
+ const under = undersizedSide(input.sourceVideo, model.constraints.sourceVideoPixels);
9424
+ if (under)
9425
+ return `${model.label} takes a source video at least ${String(under.min)} px ${under.side}; this one is ${String(under.actual)} px.`;
9426
+ return void 0;
9427
+ }
9396
9428
  function resolveImageOptions(model, request, onUnsupported = "error") {
9397
9429
  const warnings = [];
9398
9430
  const c = model.constraints;
@@ -10296,6 +10328,7 @@ export {
10296
10328
  sortCatalogRows,
10297
10329
  takesTargetAspectRatio,
10298
10330
  videoLengthViolation,
10331
+ videoSizeViolation,
10299
10332
  videoToolConstraints
10300
10333
  };
10301
10334
  //# sourceMappingURL=catalog.js.map