@shop-os/modelkit 0.10.1 → 0.11.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 CHANGED
@@ -9,6 +9,20 @@ header in the release PR.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.11.0] - Unreleased
13
+
14
+ The Google AI Studio key has one env name.
15
+
16
+ ### Removed
17
+ - `keysFromEnv` reads the `google` key from `GOOGLE_API_KEY` only (with the `ENTERPRISE_` / `SLOOSH_` prefixes); the older alias names are no longer read. An env that sets only an alias gets no `google` key, so a Gemini call fails with a `ModelKitError` code `auth`. Set `GOOGLE_API_KEY` before a consumer upgrades.
18
+
19
+ ## [0.10.2] - Unreleased
20
+
21
+ Wan 3 Prime on fal.
22
+
23
+ ### Added
24
+ - `wan-3.0-prime` (Wan 3 Prime) video row on the fal adapter (`alibaba/wan-3.0-prime`), listed on `cowork` and `space_builder`. fal's Prime endpoints take the same inputs as Wan 3.0, so the row copies `wan-3.0`'s constraints and the existing Wan mapper routes it to `/text-to-video`, `/image-to-video` or `/reference-to-video` from the inputs. It is a separate row because Prime bills more ($0.068/s at 480p, $0.14/s at 720p, $0.28/s at 1080p on fal); the `credit_pricing_video` rows ship in the consumer bump.
25
+
12
26
  ## [0.10.1] - Unreleased
13
27
 
14
28
  Fish Audio rows listed on every surface (ENG-3400).
package/README.md CHANGED
@@ -346,8 +346,8 @@ change here reaches an app only after a publish and a version bump there.
346
346
 
347
347
  Each app owns one lazy kit in a `modelkit.ts` module (`getModelKit()` plus a
348
348
  `resetModelKit()` test seam) and reads its keys from the environment. Gemini
349
- calls go direct everywhere: they need `GOOGLE_API_KEY` (or `GEMINI_API_KEY`) in
350
- the app's secrets, not a Cloudflare gateway token.
349
+ calls go direct everywhere: they need `GOOGLE_API_KEY` in the
350
+ app's secrets, not a Cloudflare gateway token.
351
351
 
352
352
  ## Adapters
353
353
 
package/dist/catalog.cjs CHANGED
@@ -6410,6 +6410,48 @@ var VIDEO_MODELS = [
6410
6410
  },
6411
6411
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6412
6412
  },
6413
+ {
6414
+ // fal's Wan 3.0 Prime endpoints share Wan 3.0's input schemas field for field but bill
6415
+ // more per second, so Prime is its own row (the id is the pricing key).
6416
+ // https://fal.ai/models/alibaba/wan-3.0-prime/reference-to-video/api
6417
+ id: "wan-3.0-prime",
6418
+ aliases: ["wan-3-prime", "wan3-prime"],
6419
+ label: "Wan 3 Prime",
6420
+ type: "video",
6421
+ adapter: "fal",
6422
+ providerModelId: "alibaba/wan-3.0-prime",
6423
+ lifecycle: "active",
6424
+ exposure: ["cowork", "space_builder"],
6425
+ constraints: {
6426
+ aspectRatios: [...WAN_RATIOS],
6427
+ resolutions: ["480p", "720p", "1080p"],
6428
+ durations: { min: 2, max: 30 },
6429
+ durationPresets: [5, 10, 15, 30],
6430
+ references: {
6431
+ images: 10,
6432
+ videos: 5,
6433
+ audios: 5,
6434
+ videoSeconds: { total: 15 },
6435
+ audioSeconds: { total: 15 }
6436
+ },
6437
+ supports: ["seed", "lastFrame", "generateAudio", "safetyChecker"],
6438
+ prompt: WAN_PROMPT,
6439
+ audio: "optional"
6440
+ },
6441
+ defaults: {
6442
+ durationSeconds: 5,
6443
+ resolution: "1080p",
6444
+ aspectRatio: "adaptive",
6445
+ generateAudio: true
6446
+ },
6447
+ usage: { ...VIDEO_USAGE3 },
6448
+ pricingKind: "video_per_second",
6449
+ display: {
6450
+ provider: "alibaba",
6451
+ 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."
6452
+ },
6453
+ capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6454
+ },
6413
6455
  {
6414
6456
  // Duration 3-10s per trigger-workflows mapDuration; the endpoint takes no resolution.
6415
6457
  id: "kling-o1-v2v",