@flatkey-ai/cli 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatkey-ai/cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Flatkey media generation CLI for image, video, audio, credits, status, and models.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/api.js CHANGED
@@ -82,7 +82,7 @@ export function planVideoRequest(options) {
82
82
  "ratio",
83
83
  );
84
84
  const resolution = validateOptionalValue(
85
- options.resolution,
85
+ options.resolution ?? (isMiniMaxModel(model) ? "768P" : undefined),
86
86
  isMiniMaxModel(model) ? ["768P", "2K"] : ["480p", "720p", "1080p"],
87
87
  "resolution",
88
88
  );
@@ -101,7 +101,7 @@ export function planVideoRequest(options) {
101
101
  images: !isSeedanceModel(model) && imageUrls.length > 0 ? imageUrls : undefined,
102
102
  });
103
103
  const seedanceContent = buildSeedanceContent(options);
104
- if (isSeedanceModel(model) && seedanceContent.length > 0) {
104
+ if ((isSeedanceModel(model) || isMiniMaxModel(model)) && seedanceContent.length > 0) {
105
105
  return planJsonPost(options, "/v1/video/generations", cleanObject({
106
106
  ...basePayload,
107
107
  content: seedanceContent,