@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/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,36 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.16.0] - Unreleased
|
|
13
|
+
|
|
14
|
+
Customer provider keys per call (BYOK, ENG-3403).
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- `CallContext.keyOverride`: a workspace's own provider keys for one call. A required name it holds is used instead of the tier's key and never falls back to it; the other names resolve through `tier` as before (a `sloosh` call still fails with `auth` for a name neither holds). Blank values count as absent, Higgsfield counts only as the key + secret pair, and `aws` is ignored (no BYOK for Bedrock). Such a call goes direct to the provider, never through the Cloudflare gateway, and a customer `anthropic` key always uses the Anthropic API. `resumeVideo`, video-tool and 3D jobs use it too.
|
|
18
|
+
- `CallContext.requireOverride`: set it on a call billed at the customer-key price. When no required key name of the call comes from `keyOverride` (missing, blank, or for another provider), the call throws a `ModelKitError` code `byok_key_missing` (`retryable: false`, with `provider` and `model`) before any provider request, so it never runs on our key. Image, video, resume, audio, video-tool, 3D, text and language-model handles all check it; a model outside the catalog always throws, since the kit resolves no key for it.
|
|
19
|
+
- `ModelKitErrorCode` `"byok_key_missing"`. It is never retried and is not a provider auth failure: the customer's key was never sent, so a caller must not record a key status for it.
|
|
20
|
+
- `UsageEvent.keySource` (`"pro" | "enterprise" | "sloosh" | "byok"`) on every usage event of a catalog call: `"byok"` when any required key came from the override, else the tier that served (an enterprise fallback is `"pro"`).
|
|
21
|
+
- `byok.ts`: `BYOK_PROVIDERS` (ark, fal, replicate, openai, google), `byokProviderForModel`, `modelsPoweredBy`, `keyOverrideFor`, and `testProviderKey`, which checks a key with one free, read-only request.
|
|
22
|
+
- `testProviderKey` returns `{ ok: true, credit }`; `credit` is `"unknown"` from every current probe (they prove the key, not a balance), so a caller must not treat a passing test as proof of credit. It takes `endpoints` and probes Ark at `endpoints.ark` (the adapter's default when unset). OpenAI and Google 403 on the models list is `unverifiable`, not `denied` (a restricted key can still generate); 401 stays `invalid`.
|
|
23
|
+
- `keyOverrideFor` and `testProviderKey` accept a stored secret with no `apiKey`: the first leaves the provider out, the second answers `invalid` without a request.
|
|
24
|
+
- `LanguageModelHandle.keySource`, the same value `generateText` and `streamText` stamp on usage.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- Ark errors read BytePlus `error.code`, also on a failed task: 403 `AccountOverdueError` / `OperationDenied.ServiceOverdue` and 429 `QuotaExceeded` are `provider_billing` (not retried; a quota 429 while polling fails at once instead of polling into the timeout); 404 `ModelNotOpen` / `InvalidEndpointOrModel.NotFound` are `provider_rejected` with the code in the message. A plain 403 stays `auth`, other 429s `rate_limited`.
|
|
28
|
+
|
|
29
|
+
## [0.15.1] - Unreleased
|
|
30
|
+
|
|
31
|
+
Model names and descriptions now match what each row offers (ENG-3364). The stored `model_catalog` rows are seeded once and never updated, so each environment needs the same edits in pro-admin; the PR lists them.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
- Labels use one style, short names with consistent casing: `gpt-image-2` "GPT-image-2" is now "GPT Image 2", `flux-2-pro` "Flux 2 Pro" is now "FLUX 2 Pro" (like the FLUX 3 rows), `wan-2.7-image-pro` "WAN 2.7 Image Pro" is now "Wan 2.7 Image Pro" (like Wan 3).
|
|
35
|
+
- `kling-v3-omni-video` no longer offers `4k` (`resolutions` is `720p`, `1080p`), matching the stored rows; its description says up to 1080p. The fal adapter still maps the 4k tier.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- Descriptions that contradicted their row's limits: `flux-2-pro` said up to 4096x4096 (it offers 1K), `grok-imagine` said 5 reference images (it takes 7, the cap xAI documents for `grok-imagine-video`), `minimax-h3` said up to 2K (it offers 4K), `seedream-5-0-pro` listed a 1.5K size it does not offer.
|
|
39
|
+
- Descriptions of rows with duration presets give the longest clip instead of a range, since Creative Studio offers the presets and the canvas offers the range: `wan-3.0`, `wan-3.0-prime`, `kling-4.0`, `grok-imagine-1.5`, `seedance-2.0`.
|
|
40
|
+
- Descriptions no longer name the serving provider or carry internal notes, matching the public text already in the stored rows: `bg-remove`, `elevenlabs-multilingual-v2`, `fish-s2.1-pro-free`, `minimax-h3-max-reference`, `mmaudio`, `sam-3-image`, `seedvr2-upscale`, `lipsync-2`, `topaz`, `veed-lipsync-v2`.
|
|
41
|
+
|
|
12
42
|
## [0.15.0] - Unreleased
|
|
13
43
|
|
|
14
44
|
Reference and source videos have a minimum frame size, checked before the provider call (ENG-3453).
|
package/README.md
CHANGED
|
@@ -117,6 +117,33 @@ row for each. All three are in the browser-safe catalog entry.
|
|
|
117
117
|
|
|
118
118
|
Keys come from `process.env` by default: bare names for pro (`OPENAI_API_KEY`, `FAL_KEY`, `BYTEDANCE_API_KEY`, `LUMA_API_KEY` ...), the `ENTERPRISE_` prefix for enterprise and the `SLOOSH_` prefix for sloosh (sloosh reads `SLOOSH_LUMA_API_KEY` for Luma). Pass `keys: { pro, enterprise, sloosh }` to override. `tier: "sloosh"` uses the sloosh keys only: a missing key is a `ModelKitError` with code `auth`, never a fallback to pro.
|
|
119
119
|
|
|
120
|
+
## Customer keys (BYOK)
|
|
121
|
+
|
|
122
|
+
`CallContext.keyOverride` (0.16.0) carries a workspace's own provider keys for one call:
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
const override = keyOverrideFor(storedSecrets); // { ark?: string, fal?: string, ... }
|
|
126
|
+
await kit.generateVideo({ model: "seedance-2.0", prompt }, { tier, keyOverride: override });
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
- A required key name the override holds is taken from it and **never** falls back to a tier key. Names it does not hold resolve through `tier` as before, so a `sloosh` call still fails with `auth` for a name neither holds. A blank value counts as absent.
|
|
130
|
+
- Higgsfield counts only as the key + secret pair. `aws` is ignored: BYOK never covers Bedrock, and a customer `anthropic` key always means the Anthropic API.
|
|
131
|
+
- A call served from the override goes direct to the provider, never through the Cloudflare gateway (whose stored secrets are the pro keys), like a sloosh call.
|
|
132
|
+
- `requireOverride: true` marks a call billed at the customer-key price. When no required key name comes from the override (missing, blank, or for another provider), the call throws `ModelKitError` code `byok_key_missing` (`retryable: false`, with `provider` and `model`) before any provider request, instead of running on our key. Every catalog method checks it, including `resumeVideo`, video-tool and 3D status/result/cancel, text and `languageModel`; a pass-through provider instance always throws. `byok_key_missing` says nothing about the customer's key, so never record a key status for it.
|
|
133
|
+
- Every usage event of a catalog call carries `keySource`: `"byok"` when any required key came from the override, else the tier that served (`"pro"`, `"enterprise"`, `"sloosh"`; an enterprise call that fell back to pro reports `"pro"`). Pass-through provider instances carry none. No key material goes into events, errors or logs.
|
|
134
|
+
|
|
135
|
+
The registry (`byok.ts`) serves a Settings page:
|
|
136
|
+
|
|
137
|
+
| Export | Use |
|
|
138
|
+
| --- | --- |
|
|
139
|
+
| `BYOK_PROVIDERS` | `ark` (BytePlus ModelArk), `fal`, `replicate`, `openai`, `google`: label, the kit key name, and the fields to store. Ark also takes optional `accessKeyId`, `secretAccessKey`, `assetGroupId` for the BytePlus asset API (verified assets), which the consumer calls itself; the kit uses only `apiKey`. |
|
|
140
|
+
| `byokProviderForModel(row)` | The provider whose key runs a row, from its adapter (`ADAPTER_KEYS`) or, for text rows, the vendor. Claude, Bedrock and every other provider give `null`. |
|
|
141
|
+
| `modelsPoweredBy(provider, rows)` | The rows that key runs ("Powers N models"). |
|
|
142
|
+
| `keyOverrideFor(secrets)` | Stored secrets to a `keyOverride`; blank or missing keys are left out (an Ark row with only the asset fields gives no `ark`). |
|
|
143
|
+
| `testProviderKey(provider, secret, { fetch, signal, endpoints })` | One free, read-only GET: `{ ok: true, credit }` or `{ ok: false, reason }`. 400/401 or no `apiKey` `invalid`, 402/403 `denied`, 429/5xx/network `unreachable`; a caller abort rethrows. Pass the kit's `config.endpoints` so the Ark probe uses the same base url as the adapter. `credit` is `"unknown"` from every current probe: they prove the key, not a balance, so never read `ok` as "the account has credit". |
|
|
144
|
+
|
|
145
|
+
Probes: Ark `GET /api/v3/contents/generations/tasks?page_num=1&page_size=1`, OpenAI `GET /v1/models`, Google `GET /v1beta/models` (key in the `x-goog-api-key` header, never in the URL), Replicate `GET /v1/account`, fal `GET https://api.fal.ai/v1/assets/collections?limit=1`. fal's `/v1/models` answers 200 for any key, so it proves nothing; the assets list needs `assets:read`, which the `API` preset holds. A fal key with a narrower custom policy gets 403 there, reported as `unverifiable`. OpenAI and Google 403 on the models list is `unverifiable` too: a restricted OpenAI key (Images write only) gets 403 there yet runs gpt-image. 401 stays `invalid`.
|
|
146
|
+
|
|
120
147
|
## Browser-safe catalog
|
|
121
148
|
|
|
122
149
|
```ts
|
|
@@ -220,7 +247,7 @@ Opt into thinking per call, for example
|
|
|
220
247
|
`providerOptions: { anthropic: { thinking: { type: "enabled", budgetTokens: 4000 } } }`.
|
|
221
248
|
|
|
222
249
|
The kit keeps its `Warning` type for coercions; the SDK's warning type is `AiWarning`.
|
|
223
|
-
`languageModel()` remains the low-level handle for Mastra and custom middleware; its `providerOptions` carry no kit-internal keys.
|
|
250
|
+
`languageModel()` remains the low-level handle for Mastra and custom middleware; its `providerOptions` carry no kit-internal keys. A caller that emits its own usage events takes `provider` from `handle.usageProvider` and `keySource` from `handle.keySource` (`"byok"` when the model runs on the call's `keyOverride`).
|
|
224
251
|
|
|
225
252
|
## Anthropic on Bedrock
|
|
226
253
|
|
|
@@ -314,7 +341,7 @@ const defaultKit = createDefaultModelKit({ keys: { pro: keysFromEnv(process.env)
|
|
|
314
341
|
| Keys | Enterprise keys win only when every key the adapter (and its route, e.g. the cloudflare token for a vendor that really goes through the gateway) needs is set on the enterprise tier; a fallback to pro keys is logged once per call. |
|
|
315
342
|
| Routing | Cloudflare AI Gateway for text only. Never for Gemini images or Omni. fal passthrough for geo-blocked regions; the fal direct route submits to the queue and polls, so `job.result({ timeoutMs, signal })` is live. |
|
|
316
343
|
| Retry | One classifier, one policy. Never on content blocks, aborts, or 4xx except 429; SDKs with their own retry (Replicate) run under a single kit attempt; a 429 on a status poll keeps polling unless `CallContext.maxRetries` is `0`. See durable media execution above. |
|
|
317
|
-
| Errors | `ModelKitError` with `code`, `provider`, `status`, `body`. Gemini `blockReason` and fal `body.detail` are lifted into `body`. A throw with no HTTP status (fetch failed, reset, DNS) is a retryable `network` error on every adapter. An out-of-credit provider account is `provider_billing` and is never retried: HTTP 402, a 4xx whose structured error code is a billing code (`insufficient_quota`, ...), or a 403/429 whose text names the exhausted account ("Exhausted balance", "Insufficient credit"). Text calls go through `ai` and surface the SDK's own error instead. |
|
|
344
|
+
| Errors | `ModelKitError` with `code`, `provider`, `status`, `body`. Gemini `blockReason` and fal `body.detail` are lifted into `body`. A throw with no HTTP status (fetch failed, reset, DNS) is a retryable `network` error on every adapter. An out-of-credit provider account is `provider_billing` and is never retried: HTTP 402, a 4xx whose structured error code is a billing code (`insufficient_quota`, ...), or a 403/429 whose text names the exhausted account ("Exhausted balance", "Insufficient credit"). BytePlus Ark codes win over the status (body `{"error":{"code","message","type"}}`, and a failed task's `error.code`): 403 `AccountOverdueError` / `OperationDenied.ServiceOverdue` and 429 `QuotaExceeded` are `provider_billing`; 404 `ModelNotOpen` / `InvalidEndpointOrModel.NotFound` are `provider_rejected` with the code in the message; a plain 403 stays `auth` and another 429 `rate_limited`. Text calls go through `ai` and surface the SDK's own error instead. |
|
|
318
345
|
| Usage | One event per call with the canonical model id and the row's `usage.unit` (adapters supply the quantity in that unit). Gemini image events carry the token counts too (`inputTokens`/`outputTokens`); Google's raw `usageMetadata` rides on `raw.providerMetadata.google`. Video usage is emitted on completion and carries the resolution the provider renders (the default it falls back to when the request has none), because pricing is keyed by it; Seedance keeps `usage`, `duration`, `framespersecond` and `resolution` from the poll on `raw`. Audio: Lyria 3 returns no duration, so it emits `unit: "images", quantity: 1` (token counts ride along as `inputTokens`/`outputTokens`); Replicate audio (Lyria 2, MMAudio) emits `unit: "compute_seconds"` with the prediction time. |
|
|
319
346
|
| Media parts | `prepareMediaPart` turns a `MediaRef` into an AI SDK file part. Google inlines bytes up to 10 MiB (base64 makes them ~4/3 larger inside Gemini's 20 MB request cap) and uploads larger payloads through the Files API; call the returned `cleanup` after the request. Other providers get the reference inline. |
|
|
320
347
|
|
package/dist/catalog.cjs
CHANGED
|
@@ -636,7 +636,7 @@ var IMAGE_MODELS = [
|
|
|
636
636
|
// Cowork "auto" lets OpenAI pick the size; the canonical equivalent is adaptive.
|
|
637
637
|
id: "gpt-image-2",
|
|
638
638
|
aliases: [],
|
|
639
|
-
label: "GPT
|
|
639
|
+
label: "GPT Image 2",
|
|
640
640
|
type: "image",
|
|
641
641
|
adapter: "openai-image",
|
|
642
642
|
providerModelId: "gpt-image-2",
|
|
@@ -823,7 +823,7 @@ var IMAGE_MODELS = [
|
|
|
823
823
|
display: {
|
|
824
824
|
provider: "bytedance",
|
|
825
825
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
|
|
826
|
-
description: "ByteDance Seedream 5.0 Pro text-to-image and multi-reference image-to-image (up to 10 inputs) with region editing; outputs 1K
|
|
826
|
+
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."
|
|
827
827
|
}
|
|
828
828
|
},
|
|
829
829
|
{
|
|
@@ -866,7 +866,7 @@ var IMAGE_MODELS = [
|
|
|
866
866
|
{
|
|
867
867
|
id: "flux-2-pro",
|
|
868
868
|
aliases: [],
|
|
869
|
-
label: "
|
|
869
|
+
label: "FLUX 2 Pro",
|
|
870
870
|
type: "image",
|
|
871
871
|
adapter: "prodia",
|
|
872
872
|
providerModelId: "flux-2-pro",
|
|
@@ -887,7 +887,7 @@ var IMAGE_MODELS = [
|
|
|
887
887
|
display: {
|
|
888
888
|
provider: "black-forest-labs",
|
|
889
889
|
logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/flux.png",
|
|
890
|
-
description: "Black Forest Labs FLUX.2 [pro] text-to-image and multi-reference editing model
|
|
890
|
+
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."
|
|
891
891
|
}
|
|
892
892
|
},
|
|
893
893
|
{
|
|
@@ -947,7 +947,7 @@ var IMAGE_MODELS = [
|
|
|
947
947
|
// https://replicate.com/wan-video/wan-2.7-image-pro (input schema)
|
|
948
948
|
id: "wan-2.7-image-pro",
|
|
949
949
|
aliases: [],
|
|
950
|
-
label: "
|
|
950
|
+
label: "Wan 2.7 Image Pro",
|
|
951
951
|
type: "image",
|
|
952
952
|
adapter: "replicate",
|
|
953
953
|
providerModelId: "wan-video/wan-2.7-image-pro",
|
|
@@ -1271,7 +1271,7 @@ var SAM_3_IMAGE = {
|
|
|
1271
1271
|
display: {
|
|
1272
1272
|
provider: "meta",
|
|
1273
1273
|
logo: META_LOGO,
|
|
1274
|
-
description: "Meta SAM 3
|
|
1274
|
+
description: "Meta SAM 3; finds every object a prompt names in one image and returns a black-and-white mask for each."
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
1277
|
var VEED_SUBTITLES = {
|
|
@@ -2113,7 +2113,7 @@ var FISH_MODELS = [
|
|
|
2113
2113
|
"fish-s2.1-pro-free",
|
|
2114
2114
|
"Fish Audio S2.1 Pro Free",
|
|
2115
2115
|
"s2.1-pro-free",
|
|
2116
|
-
"Fish Audio S2.1 Pro
|
|
2116
|
+
"Fish Audio S2.1 Pro text to speech, with the same voices as S2.1 Pro."
|
|
2117
2117
|
),
|
|
2118
2118
|
fishTts(
|
|
2119
2119
|
"fish-drama-3",
|
|
@@ -3851,7 +3851,7 @@ var MEDIA_NODE_MODELS = [
|
|
|
3851
3851
|
formats: false,
|
|
3852
3852
|
// fal's schema states no limit; ElevenLabs documents 10,000 characters per request.
|
|
3853
3853
|
maxChars: 1e4,
|
|
3854
|
-
description: "ElevenLabs Multilingual v2 text to speech in 29 languages
|
|
3854
|
+
description: "ElevenLabs Multilingual v2 text to speech in 29 languages."
|
|
3855
3855
|
}),
|
|
3856
3856
|
geminiTts(
|
|
3857
3857
|
"gemini-3.8-flash-tts",
|
|
@@ -3947,7 +3947,7 @@ var MEDIA_NODE_MODELS = [
|
|
|
3947
3947
|
"Sync Lipsync 2",
|
|
3948
3948
|
"fal-ai/sync-lipsync/v2",
|
|
3949
3949
|
"lipsync-2",
|
|
3950
|
-
"Sync Lipsync 2 re-times the mouth in a video to new speech
|
|
3950
|
+
"Sync Lipsync 2 re-times the mouth in a video to new speech."
|
|
3951
3951
|
),
|
|
3952
3952
|
syncLipsync(
|
|
3953
3953
|
"lipsync-2-pro",
|
|
@@ -3985,7 +3985,7 @@ var MEDIA_NODE_MODELS = [
|
|
|
3985
3985
|
display: {
|
|
3986
3986
|
provider: "veed",
|
|
3987
3987
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/d540d2bb-0022-4371-8889-48aefaf46bbe.png",
|
|
3988
|
-
description: "VEED Lipsync v2 re-times the mouth in a video to a new audio track
|
|
3988
|
+
description: "VEED Lipsync v2 re-times the mouth in a video to a new audio track."
|
|
3989
3989
|
},
|
|
3990
3990
|
capabilities: { acceptsSourceVideo: true }
|
|
3991
3991
|
},
|
|
@@ -4330,7 +4330,7 @@ var OTHER_MODELS = [
|
|
|
4330
4330
|
pricingKind: "flat",
|
|
4331
4331
|
display: {
|
|
4332
4332
|
provider: "mmaudio",
|
|
4333
|
-
description: "MMAudio V2 video-to-audio model
|
|
4333
|
+
description: "MMAudio V2 video-to-audio model; takes a source video and a prompt and synthesizes synchronized environmental, action, and speech-like audio."
|
|
4334
4334
|
},
|
|
4335
4335
|
capabilities: {}
|
|
4336
4336
|
},
|
|
@@ -4540,7 +4540,7 @@ var OTHER_MODELS = [
|
|
|
4540
4540
|
display: {
|
|
4541
4541
|
provider: "topaz",
|
|
4542
4542
|
logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/topazlabs.png",
|
|
4543
|
-
description: "Topaz Labs AI image upscaling
|
|
4543
|
+
description: "Topaz Labs AI image upscaling; takes one input image and upscales up to 6x with selectable enhancement models and optional face enhancement."
|
|
4544
4544
|
}
|
|
4545
4545
|
},
|
|
4546
4546
|
{
|
|
@@ -4566,7 +4566,7 @@ var OTHER_MODELS = [
|
|
|
4566
4566
|
display: {
|
|
4567
4567
|
provider: "bytedance",
|
|
4568
4568
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
|
|
4569
|
-
description: "ByteDance SeedVR2 one-step image upscaling and restoration
|
|
4569
|
+
description: "ByteDance SeedVR2 one-step image upscaling and restoration; takes one input image and upscales it 2x or 4x with sharp, faithful detail."
|
|
4570
4570
|
}
|
|
4571
4571
|
},
|
|
4572
4572
|
{
|
|
@@ -4590,7 +4590,7 @@ var OTHER_MODELS = [
|
|
|
4590
4590
|
pricingKind: "flat",
|
|
4591
4591
|
display: {
|
|
4592
4592
|
provider: "prodia",
|
|
4593
|
-
description: "
|
|
4593
|
+
description: "Background removal; takes one input image and returns a PNG cut-out of the subject plus an optional black-and-white mask."
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
4596
|
];
|
|
@@ -5289,7 +5289,7 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
5289
5289
|
display: {
|
|
5290
5290
|
provider: "kuaishou",
|
|
5291
5291
|
logo: KLING_LOGO,
|
|
5292
|
-
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),
|
|
5292
|
+
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."
|
|
5293
5293
|
},
|
|
5294
5294
|
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
5295
5295
|
},
|
|
@@ -5634,7 +5634,7 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
5634
5634
|
display: {
|
|
5635
5635
|
provider: "xai",
|
|
5636
5636
|
logo: XAI_LOGO,
|
|
5637
|
-
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,
|
|
5637
|
+
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."
|
|
5638
5638
|
},
|
|
5639
5639
|
capabilities: {}
|
|
5640
5640
|
}
|
|
@@ -5991,7 +5991,7 @@ var VIDEO_MODELS = [
|
|
|
5991
5991
|
pricingKind: "video_per_second",
|
|
5992
5992
|
display: {
|
|
5993
5993
|
provider: "bytedance",
|
|
5994
|
-
description: "High-quality
|
|
5994
|
+
description: "High-quality ByteDance video generation guided by reference images, for clips up to 15 seconds.",
|
|
5995
5995
|
logo: BYTEDANCE_LOGO2
|
|
5996
5996
|
},
|
|
5997
5997
|
capabilities: { acceptsSourceVideo: true, videoEdit: false, ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -6115,7 +6115,7 @@ var VIDEO_MODELS = [
|
|
|
6115
6115
|
pricingKind: "video_per_second",
|
|
6116
6116
|
display: {
|
|
6117
6117
|
provider: "xai",
|
|
6118
|
-
description: "xAI's reference-to-video model. Generates short clips conditioned on up to
|
|
6118
|
+
description: "xAI's reference-to-video model. Generates short clips conditioned on up to 7 reference images with flexible aspect ratios.",
|
|
6119
6119
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png"
|
|
6120
6120
|
},
|
|
6121
6121
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -6199,7 +6199,7 @@ var VIDEO_MODELS = [
|
|
|
6199
6199
|
exposure: ["cowork", "space_builder"],
|
|
6200
6200
|
constraints: {
|
|
6201
6201
|
aspectRatios: [...KLING_OMNI_RATIOS],
|
|
6202
|
-
resolutions: ["720p", "1080p"
|
|
6202
|
+
resolutions: ["720p", "1080p"],
|
|
6203
6203
|
durations: { min: 3, max: 15 },
|
|
6204
6204
|
references: { images: 7, videos: 0, audios: 0 },
|
|
6205
6205
|
supports: ["generateAudio", "lastFrame"],
|
|
@@ -6212,7 +6212,7 @@ var VIDEO_MODELS = [
|
|
|
6212
6212
|
display: {
|
|
6213
6213
|
provider: "kuaishou",
|
|
6214
6214
|
logo: "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/kling-color.png",
|
|
6215
|
-
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
|
|
6215
|
+
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."
|
|
6216
6216
|
}
|
|
6217
6217
|
// No lastFrameRequiresFirstFrame: fal image-to-video needs a start frame, so the adapter
|
|
6218
6218
|
// sends a lone end frame as the start frame, as the Replicate model took it.
|
|
@@ -6247,7 +6247,7 @@ var VIDEO_MODELS = [
|
|
|
6247
6247
|
display: {
|
|
6248
6248
|
provider: "minimax",
|
|
6249
6249
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
|
|
6250
|
-
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
|
|
6250
|
+
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."
|
|
6251
6251
|
},
|
|
6252
6252
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
6253
6253
|
},
|
|
@@ -6367,7 +6367,7 @@ var VIDEO_MODELS = [
|
|
|
6367
6367
|
display: {
|
|
6368
6368
|
provider: "minimax",
|
|
6369
6369
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png",
|
|
6370
|
-
description: "MiniMax H3 Max reference-to-video
|
|
6370
|
+
description: "MiniMax H3 Max reference-to-video; conditions on reference images, videos, and audio."
|
|
6371
6371
|
},
|
|
6372
6372
|
// fal's reference-to-video endpoint never reads a frame; the resolver must drop the
|
|
6373
6373
|
// references instead of the adapter silently dropping the frame.
|
|
@@ -6411,7 +6411,7 @@ var VIDEO_MODELS = [
|
|
|
6411
6411
|
pricingKind: "video_per_second",
|
|
6412
6412
|
display: {
|
|
6413
6413
|
provider: "alibaba",
|
|
6414
|
-
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;
|
|
6414
|
+
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."
|
|
6415
6415
|
},
|
|
6416
6416
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
6417
6417
|
},
|
|
@@ -6453,7 +6453,7 @@ var VIDEO_MODELS = [
|
|
|
6453
6453
|
pricingKind: "video_per_second",
|
|
6454
6454
|
display: {
|
|
6455
6455
|
provider: "alibaba",
|
|
6456
|
-
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;
|
|
6456
|
+
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."
|
|
6457
6457
|
},
|
|
6458
6458
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
6459
6459
|
},
|