@shop-os/modelkit 0.15.0 → 0.16.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/CHANGELOG.md +30 -0
- package/README.md +29 -2
- package/dist/catalog.cjs +24 -24
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +30 -2
- package/dist/catalog.d.ts +30 -2
- package/dist/catalog.js +24 -24
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +319 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +92 -2
- package/dist/index.d.ts +92 -2
- package/dist/index.js +314 -110
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -984,6 +984,12 @@ interface UsageEvent {
|
|
|
984
984
|
* submission carries no `submittedAt`).
|
|
985
985
|
*/
|
|
986
986
|
latencyMs?: number;
|
|
987
|
+
/**
|
|
988
|
+
* Whose provider account paid: "byok" when any required key came from the call's
|
|
989
|
+
* `keyOverride`, else the tier that served (an enterprise call that fell back to pro is
|
|
990
|
+
* "pro"). Unset on pass-through provider instances, whose keys the kit never sees.
|
|
991
|
+
*/
|
|
992
|
+
keySource?: KeySource;
|
|
987
993
|
raw?: unknown;
|
|
988
994
|
}
|
|
989
995
|
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
@@ -1009,6 +1015,8 @@ type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
|
1009
1015
|
};
|
|
1010
1016
|
/** Which key set a call uses. Enterprise falls back to pro; sloosh never falls back. */
|
|
1011
1017
|
type KeyTier = "pro" | "enterprise" | "sloosh";
|
|
1018
|
+
/** Which key set paid for a call; "byok" is the customer's own key (`CallContext.keyOverride`). */
|
|
1019
|
+
type KeySource = KeyTier | "byok";
|
|
1012
1020
|
/** Key names a call can require, including the Bedrock credentials object. */
|
|
1013
1021
|
type RequiredKeyName = ProviderKeyName | "aws";
|
|
1014
1022
|
/** True when region is set AND (apiKey OR credentialProvider OR both static keys). */
|
|
@@ -1061,6 +1069,21 @@ interface ModelKitConfig {
|
|
|
1061
1069
|
interface CallContext {
|
|
1062
1070
|
/** "enterprise" picks keys.enterprise when every key for the provider is set, else falls back to pro. "sloosh" uses keys.sloosh only and never falls back. */
|
|
1063
1071
|
tier?: KeyTier;
|
|
1072
|
+
/**
|
|
1073
|
+
* Customer keys for this one call (BYOK). A required name held here is used instead of
|
|
1074
|
+
* the tier's key and never falls back to it; names it does not hold resolve through
|
|
1075
|
+
* `tier` as usual. A blank value counts as absent. Higgsfield needs key and secret
|
|
1076
|
+
* together. `aws` is ignored: BYOK never covers Bedrock. A call served from these keys
|
|
1077
|
+
* goes direct to the provider, never through the Cloudflare gateway.
|
|
1078
|
+
*/
|
|
1079
|
+
keyOverride?: Partial<ProviderKeys>;
|
|
1080
|
+
/**
|
|
1081
|
+
* The call was billed at the customer-key price, so it must not run on our key. When no
|
|
1082
|
+
* required key name comes from `keyOverride`, the call throws `byok_key_missing` before any
|
|
1083
|
+
* provider request. A call on a model outside the catalog always throws: the kit resolves no
|
|
1084
|
+
* key for it.
|
|
1085
|
+
*/
|
|
1086
|
+
requireOverride?: boolean;
|
|
1064
1087
|
signal?: AbortSignal;
|
|
1065
1088
|
/** Media retries after the initial request. Set 0 when a durable host owns recovery.
|
|
1066
1089
|
* Unset preserves adapter defaults. Successful pending-job polls are not retries.
|
|
@@ -1811,7 +1834,12 @@ declare function resolveAudioOptions(model: CatalogModel, request: AudioRequest,
|
|
|
1811
1834
|
type ProviderErrorBody = string | JsonValue;
|
|
1812
1835
|
type ModelKitErrorCode = "unknown_model" | "unsupported_option" | "missing_input" | "content_blocked" | "provider_rejected"
|
|
1813
1836
|
/** The provider account is out of credit or quota (HTTP 402 and its body spellings). Never retried. */
|
|
1814
|
-
| "provider_billing" | "timeout" | "auth"
|
|
1837
|
+
| "provider_billing" | "timeout" | "auth"
|
|
1838
|
+
/**
|
|
1839
|
+
* A call with `requireOverride` had no required key in `keyOverride`. Never retried, and not a
|
|
1840
|
+
* provider auth failure: the customer's key was never sent, so it says nothing about that key.
|
|
1841
|
+
*/
|
|
1842
|
+
| "byok_key_missing" | "network" | "rate_limited";
|
|
1815
1843
|
interface ModelKitErrorInit {
|
|
1816
1844
|
code: ModelKitErrorCode;
|
|
1817
1845
|
message: string;
|
|
@@ -1968,4 +1996,4 @@ declare function promptConventions(row: {
|
|
|
1968
1996
|
constraints: unknown;
|
|
1969
1997
|
}): PromptConventions;
|
|
1970
1998
|
|
|
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 };
|
|
1999
|
+
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 KeySource, 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
|
@@ -984,6 +984,12 @@ interface UsageEvent {
|
|
|
984
984
|
* submission carries no `submittedAt`).
|
|
985
985
|
*/
|
|
986
986
|
latencyMs?: number;
|
|
987
|
+
/**
|
|
988
|
+
* Whose provider account paid: "byok" when any required key came from the call's
|
|
989
|
+
* `keyOverride`, else the tier that served (an enterprise call that fell back to pro is
|
|
990
|
+
* "pro"). Unset on pass-through provider instances, whose keys the kit never sees.
|
|
991
|
+
*/
|
|
992
|
+
keySource?: KeySource;
|
|
987
993
|
raw?: unknown;
|
|
988
994
|
}
|
|
989
995
|
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
@@ -1009,6 +1015,8 @@ type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
|
1009
1015
|
};
|
|
1010
1016
|
/** Which key set a call uses. Enterprise falls back to pro; sloosh never falls back. */
|
|
1011
1017
|
type KeyTier = "pro" | "enterprise" | "sloosh";
|
|
1018
|
+
/** Which key set paid for a call; "byok" is the customer's own key (`CallContext.keyOverride`). */
|
|
1019
|
+
type KeySource = KeyTier | "byok";
|
|
1012
1020
|
/** Key names a call can require, including the Bedrock credentials object. */
|
|
1013
1021
|
type RequiredKeyName = ProviderKeyName | "aws";
|
|
1014
1022
|
/** True when region is set AND (apiKey OR credentialProvider OR both static keys). */
|
|
@@ -1061,6 +1069,21 @@ interface ModelKitConfig {
|
|
|
1061
1069
|
interface CallContext {
|
|
1062
1070
|
/** "enterprise" picks keys.enterprise when every key for the provider is set, else falls back to pro. "sloosh" uses keys.sloosh only and never falls back. */
|
|
1063
1071
|
tier?: KeyTier;
|
|
1072
|
+
/**
|
|
1073
|
+
* Customer keys for this one call (BYOK). A required name held here is used instead of
|
|
1074
|
+
* the tier's key and never falls back to it; names it does not hold resolve through
|
|
1075
|
+
* `tier` as usual. A blank value counts as absent. Higgsfield needs key and secret
|
|
1076
|
+
* together. `aws` is ignored: BYOK never covers Bedrock. A call served from these keys
|
|
1077
|
+
* goes direct to the provider, never through the Cloudflare gateway.
|
|
1078
|
+
*/
|
|
1079
|
+
keyOverride?: Partial<ProviderKeys>;
|
|
1080
|
+
/**
|
|
1081
|
+
* The call was billed at the customer-key price, so it must not run on our key. When no
|
|
1082
|
+
* required key name comes from `keyOverride`, the call throws `byok_key_missing` before any
|
|
1083
|
+
* provider request. A call on a model outside the catalog always throws: the kit resolves no
|
|
1084
|
+
* key for it.
|
|
1085
|
+
*/
|
|
1086
|
+
requireOverride?: boolean;
|
|
1064
1087
|
signal?: AbortSignal;
|
|
1065
1088
|
/** Media retries after the initial request. Set 0 when a durable host owns recovery.
|
|
1066
1089
|
* Unset preserves adapter defaults. Successful pending-job polls are not retries.
|
|
@@ -1811,7 +1834,12 @@ declare function resolveAudioOptions(model: CatalogModel, request: AudioRequest,
|
|
|
1811
1834
|
type ProviderErrorBody = string | JsonValue;
|
|
1812
1835
|
type ModelKitErrorCode = "unknown_model" | "unsupported_option" | "missing_input" | "content_blocked" | "provider_rejected"
|
|
1813
1836
|
/** The provider account is out of credit or quota (HTTP 402 and its body spellings). Never retried. */
|
|
1814
|
-
| "provider_billing" | "timeout" | "auth"
|
|
1837
|
+
| "provider_billing" | "timeout" | "auth"
|
|
1838
|
+
/**
|
|
1839
|
+
* A call with `requireOverride` had no required key in `keyOverride`. Never retried, and not a
|
|
1840
|
+
* provider auth failure: the customer's key was never sent, so it says nothing about that key.
|
|
1841
|
+
*/
|
|
1842
|
+
| "byok_key_missing" | "network" | "rate_limited";
|
|
1815
1843
|
interface ModelKitErrorInit {
|
|
1816
1844
|
code: ModelKitErrorCode;
|
|
1817
1845
|
message: string;
|
|
@@ -1968,4 +1996,4 @@ declare function promptConventions(row: {
|
|
|
1968
1996
|
constraints: unknown;
|
|
1969
1997
|
}): PromptConventions;
|
|
1970
1998
|
|
|
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 };
|
|
1999
|
+
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 KeySource, 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
|
|
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
|
|
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: "
|
|
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
|
|
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: "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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
|
];
|
|
@@ -5203,7 +5203,7 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
5203
5203
|
display: {
|
|
5204
5204
|
provider: "kuaishou",
|
|
5205
5205
|
logo: KLING_LOGO,
|
|
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),
|
|
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."
|
|
5207
5207
|
},
|
|
5208
5208
|
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
5209
5209
|
},
|
|
@@ -5548,7 +5548,7 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
5548
5548
|
display: {
|
|
5549
5549
|
provider: "xai",
|
|
5550
5550
|
logo: XAI_LOGO,
|
|
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,
|
|
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."
|
|
5552
5552
|
},
|
|
5553
5553
|
capabilities: {}
|
|
5554
5554
|
}
|
|
@@ -5905,7 +5905,7 @@ var VIDEO_MODELS = [
|
|
|
5905
5905
|
pricingKind: "video_per_second",
|
|
5906
5906
|
display: {
|
|
5907
5907
|
provider: "bytedance",
|
|
5908
|
-
description: "High-quality
|
|
5908
|
+
description: "High-quality ByteDance video generation guided by reference images, for clips up to 15 seconds.",
|
|
5909
5909
|
logo: BYTEDANCE_LOGO2
|
|
5910
5910
|
},
|
|
5911
5911
|
capabilities: { acceptsSourceVideo: true, videoEdit: false, ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -6029,7 +6029,7 @@ var VIDEO_MODELS = [
|
|
|
6029
6029
|
pricingKind: "video_per_second",
|
|
6030
6030
|
display: {
|
|
6031
6031
|
provider: "xai",
|
|
6032
|
-
description: "xAI's reference-to-video model. Generates short clips conditioned on up to
|
|
6032
|
+
description: "xAI's reference-to-video model. Generates short clips conditioned on up to 7 reference images with flexible aspect ratios.",
|
|
6033
6033
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png"
|
|
6034
6034
|
},
|
|
6035
6035
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -6113,7 +6113,7 @@ var VIDEO_MODELS = [
|
|
|
6113
6113
|
exposure: ["cowork", "space_builder"],
|
|
6114
6114
|
constraints: {
|
|
6115
6115
|
aspectRatios: [...KLING_OMNI_RATIOS],
|
|
6116
|
-
resolutions: ["720p", "1080p"
|
|
6116
|
+
resolutions: ["720p", "1080p"],
|
|
6117
6117
|
durations: { min: 3, max: 15 },
|
|
6118
6118
|
references: { images: 7, videos: 0, audios: 0 },
|
|
6119
6119
|
supports: ["generateAudio", "lastFrame"],
|
|
@@ -6126,7 +6126,7 @@ var VIDEO_MODELS = [
|
|
|
6126
6126
|
display: {
|
|
6127
6127
|
provider: "kuaishou",
|
|
6128
6128
|
logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/kling-color.png",
|
|
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
|
|
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."
|
|
6130
6130
|
}
|
|
6131
6131
|
// No lastFrameRequiresFirstFrame: fal image-to-video needs a start frame, so the adapter
|
|
6132
6132
|
// sends a lone end frame as the start frame, as the Replicate model took it.
|
|
@@ -6161,7 +6161,7 @@ var VIDEO_MODELS = [
|
|
|
6161
6161
|
display: {
|
|
6162
6162
|
provider: "minimax",
|
|
6163
6163
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
|
|
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
|
|
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."
|
|
6165
6165
|
},
|
|
6166
6166
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
6167
6167
|
},
|
|
@@ -6281,7 +6281,7 @@ var VIDEO_MODELS = [
|
|
|
6281
6281
|
display: {
|
|
6282
6282
|
provider: "minimax",
|
|
6283
6283
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
|
|
6284
|
-
description: "MiniMax H3 Max reference-to-video
|
|
6284
|
+
description: "MiniMax H3 Max reference-to-video; conditions on reference images, videos, and audio."
|
|
6285
6285
|
},
|
|
6286
6286
|
// fal's reference-to-video endpoint never reads a frame; the resolver must drop the
|
|
6287
6287
|
// references instead of the adapter silently dropping the frame.
|
|
@@ -6325,7 +6325,7 @@ var VIDEO_MODELS = [
|
|
|
6325
6325
|
pricingKind: "video_per_second",
|
|
6326
6326
|
display: {
|
|
6327
6327
|
provider: "alibaba",
|
|
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;
|
|
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."
|
|
6329
6329
|
},
|
|
6330
6330
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
6331
6331
|
},
|
|
@@ -6367,7 +6367,7 @@ var VIDEO_MODELS = [
|
|
|
6367
6367
|
pricingKind: "video_per_second",
|
|
6368
6368
|
display: {
|
|
6369
6369
|
provider: "alibaba",
|
|
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;
|
|
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."
|
|
6371
6371
|
},
|
|
6372
6372
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
6373
6373
|
},
|