@sogni-ai/sogni-creative-agent-skill 3.7.0 → 3.8.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
@@ -14,6 +14,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [3.8.0] - 2026-06-30
18
+
19
+ ### Changed
20
+
21
+ - **Music generation now defaults to ACE-Step 1.5 XL in the CLI.** The `turbo` and `sft` music aliases resolve to
22
+ the XL model IDs, while the legacy ACE-Step 1.5 model IDs remain available for explicit selection.
23
+ - **Model guidance now reflects the current Premium Spark vendor catalog.** README, LLM-facing docs, skill
24
+ routing notes, and CLI billing guidance now list HappyHorse 1.1 alongside GPT Image 2 and Seedance as
25
+ Premium-Spark-only vendor paths.
26
+ - **Krea 2 Turbo discovery is clearer.** CLI help and model references now list the direct worker model ID
27
+ `krea2_turbo_fp8_scaled` and note the hosted/chat selector `krea-2-turbo`.
28
+ - **Updated the bundled Sogni intelligence client to `3.5.1`.** The skill now consumes the current Sogni Client
29
+ stack and model metadata used by the refreshed video, image, and music catalog.
30
+
31
+ ## [3.7.0] - 2026-06-25
32
+
33
+ ### Changed
34
+
35
+ - **Seedance 2.0 Mini is now available through the bundled runtime.** Mini is the default lower-cost
36
+ 720p Seedance path, while `seedance2-fast` remains available as an explicit legacy selection.
37
+ - Bumped `@sogni-ai/sogni-intelligence-client` to `3.3.0` so the skill consumes the published
38
+ Seedance Mini runtime, tool metadata, and Sogni Client `5.1.0-alpha.14` dependency stack.
39
+
17
40
  ### Changed
18
41
 
19
42
  - **Seedance 2.0 4K routing is now documented and available through the current Sogni dependency stack.**
package/README.md CHANGED
@@ -26,7 +26,7 @@ It ships three ways:
26
26
  With this skill, an agent can:
27
27
 
28
28
  - generate images from prompts and edit/restyle existing images
29
- - create videos from text, images, audio, or reference video (LTX-2.3, WAN 2.2, Seedance 2.0)
29
+ - create videos from text, images, audio, or reference video (LTX-2.3, WAN 2.2, Seedance 2.0, HappyHorse 1.1)
30
30
  - generate instrumental music or full songs with lyrics
31
31
  - run hosted creative workflows including storyboard-driven video
32
32
  - save personas, preferences, and last-render state across sessions
@@ -479,7 +479,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
479
479
  | Image+audio-to-video | `ltx23-22b-fp8_ia2v_distilled` |
480
480
  | Audio-to-video | `ltx23-22b-fp8_a2v_distilled` |
481
481
  | Video-to-video with ControlNet | `ltx23-22b-fp8_v2v_distilled` |
482
- | Seedance text-to-video | `seedance2` for up to native 4K; `seedance2-fast` for the lower-resolution fast path |
482
+ | Seedance text-to-video | `seedance2` for up to native 4K; `seedance2-mini` for the lower-cost 720p path; `seedance2-fast` for the legacy 720p fast path |
483
483
  | Seedance video-to-video without ControlNet | `seedance2-v2v` |
484
484
  | Face lip-sync with uploaded audio | `wan_v2.2-14b-fp8_s2v_lightx2v` |
485
485
 
@@ -493,7 +493,7 @@ Music generation uses `--music` and outputs `mp3` by default. `--audio` remains
493
493
 
494
494
  - **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
495
495
  - **LTX family** (`ltx2-*`, `ltx23-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
496
- - **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-fast` remains capped to the fast lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
496
+ - **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
497
497
  - For spoken dialogue, budget roughly 3 words per second plus about 1 second for each meaningful acting beat or pause. Keep quoted speech under the model's hard per-clip word budget.
498
498
  - The script auto-normalizes video sizes to satisfy these constraints.
499
499
  - Use `--target-resolution <px>` for bare resolution requests like "720p" — it targets the short side and preserves the inherited aspect ratio.
@@ -661,7 +661,7 @@ Use `--token-type auto` to retry native Sogni models with SOGNI tokens when SPAR
661
661
  sogni-agent --token-type auto "a dragon eating tacos"
662
662
  ```
663
663
 
664
- Tries SPARK first, then falls back to SOGNI if the balance is too low. Vendor models such as Seedance and GPT Image 2 require Premium Spark eligibility and never use SOGNI fallback. If usable balance is still insufficient, buy Spark Packs at https://docs.sogni.ai/pricing/#spark-packs.
664
+ Tries SPARK first, then falls back to SOGNI if the balance is too low. Vendor models such as GPT Image 2, Seedance, and HappyHorse require Premium Spark eligibility and never use SOGNI fallback. If usable balance is still insufficient, buy Spark Packs at https://docs.sogni.ai/pricing/#spark-packs.
665
665
 
666
666
  On a **Sogni Unlimited** subscription, Sogni-hosted generation is covered by the plan instead of spending tokens — see the next section.
667
667
 
@@ -683,7 +683,7 @@ App Store and Google Play prices may differ from web pricing due to platform fee
683
683
  ### What the subscription covers
684
684
 
685
685
  - **Covered:** Sogni-hosted models on the Supernet — image, video, and music generation, including worker-hosted premium models. Covered renders bill to the subscription and do not spend Spark or SOGNI.
686
- - **Not covered (Premium Spark only):** external-vendor models — **GPT Image 2** (`gpt-image-2`) and **Seedance 2.0 / Seedance 2.0 Fast** (`seedance-2-0`, `seedance-2-0-fast`). These always require Premium Spark eligibility even with an active subscription; they never bill to the subscription and never fall back to SOGNI.
686
+ - **Not covered (Premium Spark only):** external-vendor models — **GPT Image 2** (`gpt-image-2`), **Seedance 2.0 / Seedance 2.0 Mini / Seedance 2.0 Fast** (`seedance-2-0`, `seedance-2-0-mini`, `seedance-2-0-fast`), and **HappyHorse 1.1** (`happyhorse-1.1-t2v`, `happyhorse-1.1-i2v`, `happyhorse-1.1-r2v`). These always require Premium Spark eligibility even with an active subscription; they never bill to the subscription and never fall back to SOGNI.
687
687
  - **Token choice stays yours:** selecting SOGNI (`--token-type sogni`) opts a job out of subscription coverage and spends SOGNI instead. Coverage applies when the active token is Spark.
688
688
 
689
689
  The CLI never sends `billingMode`/coverage hints itself; the server decides coverage from the account's verified entitlement and the resolved model. A subscription claim is never honored without a server-verified entitlement.
@@ -718,7 +718,7 @@ When a generation cannot bill to the subscription, the CLI surfaces a structured
718
718
 
719
719
  | Code | Meaning | What to do |
720
720
  | --- | --- | --- |
721
- | `4078` | Unlimited billing is not available for this generation (a vendor model that the subscription never covers, or no verified entitlement). | Use Premium Spark for vendor models (GPT Image 2 / Seedance), or reconnect and retry for a transient entitlement read. |
721
+ | `4078` | Unlimited billing is not available for this generation (a vendor model that the subscription never covers, or no verified entitlement). | Use Premium Spark for vendor models (GPT Image 2 / Seedance / HappyHorse), or reconnect and retry for a transient entitlement read. |
722
722
  | `4079` | Maximum queued jobs reached for the plan. | Wait for queued jobs to finish, then submit more. |
723
723
  | `4080` | Renewal payment is being retried; Unlimited access is paused. | Pay for this render with Spark or SOGNI (`--token-type spark` / `sogni`) for now. **Do not auto-retry the covered job** — access resumes on its own once renewal succeeds. |
724
724
  | `4081` | The feature requires a higher subscription plan. | Upgrade to Unlimited Pro. |
package/SKILL.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: sogni-creative-agent-skill
3
- description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, Seedance/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"make a video/animate\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
3
+ description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"make a video/animate\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.6.4"
5
+ version: "3.8.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -157,6 +157,12 @@ sogni-agent --music --lyrics "Rise with the morning light" --bpm 128 --keyscale
157
157
  # Seedance 2.0 4K (4-15s vendor video with native audio)
158
158
  sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "A polished product reveal with native ambient sound"
159
159
 
160
+ # HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
161
+ # i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
162
+ sogni-agent --video -m happyhorse --duration 8 "A glowing jellyfish drifts through a neon city"
163
+ sogni-agent --video -m happyhorse --ref first-frame.png "Bring the scene to life"
164
+ sogni-agent --video -m happyhorse-1.1-r2v -c ref1.png -c ref2.png "Blend the references into one continuous shot"
165
+
160
166
  # Balances / last render / inbound media / health (no prompt required)
161
167
  sogni-agent --json --balance
162
168
  sogni-agent --last --json
@@ -210,7 +216,7 @@ Whenever the chosen video model is in the LTX family (including the default t2v)
210
216
 
211
217
  ### High-res video
212
218
 
213
- For "4k" / "uhd" requests where the user accepts the Premium Spark vendor path or asks for Seedance/native audio/multimodal references, use full Seedance: `-m seedance2 --target-resolution 2160`. Do not use `seedance2-fast` for 4K; it remains capped to the fast lower-resolution path. For "hd" / "1080p" requests, or when avoiding vendor models, use `-m ltx23-22b-fp8_t2v_distilled` (text) or `-m ltx23-22b-fp8_i2v_distilled` (image), prefer `-w 1920 -h 1088` (or the orientation mapping in the reference), and rewrite the prompt per the LTX rule. For bare "720p" without orientation, prefer `--target-resolution 768`.
219
+ For "4k" / "uhd" requests where the user accepts the Premium Spark vendor path or asks for Seedance/native audio/multimodal references, use full Seedance: `-m seedance2 --target-resolution 2160`. Do not use `seedance2-mini` or `seedance2-fast` for 4K; both remain capped to the 720p lower-resolution path. For "hd" / "1080p" requests, or when avoiding vendor models, use `-m ltx23-22b-fp8_t2v_distilled` (text) or `-m ltx23-22b-fp8_i2v_distilled` (image), prefer `-w 1920 -h 1088` (or the orientation mapping in the reference), and rewrite the prompt per the LTX rule. For bare "720p" without orientation, prefer `--target-resolution 768`.
214
220
 
215
221
  ### Video editing, stitching, 360 turnarounds
216
222
 
@@ -230,11 +236,11 @@ Use `sogni-agent --json --list-media images` (or `audio` / `all`) to find inboun
230
236
 
231
237
  ### Model selection
232
238
 
233
- Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance native audio, WAN lip-sync, LTX dialogue), **read [`references/models.md`](./references/models.md)** for the catalog, recommended selectors, and sizing/divisibility rules.
239
+ Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance or HappyHorse native audio, WAN lip-sync, LTX dialogue), **read [`references/models.md`](./references/models.md)** for the catalog, recommended selectors, and sizing/divisibility rules.
234
240
 
235
241
  ### Insufficient funds
236
242
 
237
- Use `--token-type auto` to retry native Sogni models with SOGNI tokens when SPARK is insufficient. Vendor models (Seedance, GPT Image 2) require Premium Spark eligibility and never fall back to SOGNI. When you see **"Debit Error: Insufficient funds"** even with auto-fallback, reply exactly:
243
+ Use `--token-type auto` to retry native Sogni models with SOGNI tokens when SPARK is insufficient. Vendor models (Seedance, HappyHorse, GPT Image 2) require Premium Spark eligibility and never fall back to SOGNI. When you see **"Debit Error: Insufficient funds"** even with auto-fallback, reply exactly:
238
244
 
239
245
  "Insufficient funds. Buy Spark Packs to continue: https://docs.sogni.ai/pricing/#spark-packs"
240
246
 
@@ -242,13 +248,13 @@ Do not collect payment details, quote a custom price, or simulate a purchase in
242
248
 
243
249
  ### Sogni Unlimited Subscription & Billing Errors
244
250
 
245
- On a **Sogni Unlimited** subscription, Sogni-hosted (Supernet) image, video, and music generation is covered by the plan under a fair-use policy instead of spending Spark or SOGNI. Plans: Unlimited ($20/mo, $199/yr) and Unlimited Pro ($50/mo, $498/yr), with a one-per-account 3-day free trial. External-vendor models — **GPT Image 2** and **Seedance 2.0 / Fast** — are never covered and always require Premium Spark, even on an active subscription. Selecting SOGNI opts a job out of coverage. The server decides coverage from the verified entitlement and resolved model; never tell the user a vendor model is "free on Unlimited."
251
+ On a **Sogni Unlimited** subscription, Sogni-hosted (Supernet) image, video, and music generation is covered by the plan under a fair-use policy instead of spending Spark or SOGNI. Plans: Unlimited ($20/mo, $199/yr) and Unlimited Pro ($50/mo, $498/yr), with a one-per-account 3-day free trial. External-vendor models — **GPT Image 2**, **Seedance 2.0 / Mini / Fast**, and **HappyHorse 1.1** — are never covered and always require Premium Spark, even on an active subscription. Selecting SOGNI opts a job out of coverage. The server decides coverage from the verified entitlement and resolved model; never tell the user a vendor model is "free on Unlimited."
246
252
 
247
253
  Unlimited is fair-use, not unmetered: per-UTC-day concurrency ceilings step down as completed renders climb (and reset at UTC midnight), and once a plan's fast-lane allowance is exceeded, further jobs run best-effort in a lower-priority standard queue until capacity resets. Describe this as **fair use** / a **standard (throttled) queue** — never as "relaxed."
248
254
 
249
255
  When a generation cannot bill to the subscription, the CLI returns a structured error (`errorCategory: "subscription_billing"`). Respond by the `errorCode`, and **do not** collect payment details or simulate a purchase:
250
256
 
251
- - **`4078` — Unlimited billing unavailable for this generation.** Either a vendor model the subscription never covers (use Premium Spark for GPT Image 2 / Seedance), or no verified entitlement right now (reconnect and retry). Offer the Premium Spark / `--token-type` path; do not claim the subscription will cover a vendor model.
257
+ - **`4078` — Unlimited billing unavailable for this generation.** Either a vendor model the subscription never covers (use Premium Spark for GPT Image 2 / Seedance / HappyHorse), or no verified entitlement right now (reconnect and retry). Offer the Premium Spark / `--token-type` path; do not claim the subscription will cover a vendor model.
252
258
  - **`4079` — Maximum queued jobs reached.** Ask the user to wait for queued jobs to finish before submitting more; this resolves on its own.
253
259
  - **`4080` — Renewal payment is being retried; access is paused.** Tell the user Unlimited resumes automatically once the renewal succeeds and that they can render now with Spark or SOGNI (`--token-type spark` / `sogni`). **Never auto-retry the covered job in a loop** — it will keep failing until billing recovers.
254
260
  - **`4081` — Higher plan required.** Suggest upgrading to Unlimited Pro.
@@ -293,7 +299,7 @@ Failure (single JSON object on stdout, exit code 1; progress/warnings on stderr)
293
299
 
294
300
  ## Cost
295
301
 
296
- Uses Spark tokens from the user's Sogni account. 512x512 images are most cost-efficient. `-n` is safety-capped at 16 outputs per call (`SOGNI_MAX_COUNT` raises it deliberately). Seedance and GPT Image 2 are vendor models requiring Premium Spark eligibility.
302
+ Uses Spark tokens from the user's Sogni account. 512x512 images are most cost-efficient. `-n` is safety-capped at 16 outputs per call (`SOGNI_MAX_COUNT` raises it deliberately). Seedance, HappyHorse, and GPT Image 2 are vendor models requiring Premium Spark eligibility.
297
303
 
298
304
  ## Troubleshooting
299
305
 
package/llm.txt CHANGED
@@ -99,9 +99,11 @@ Sogni Unlimited is a flat-rate subscription that covers Sogni-hosted (Supernet)
99
99
  image, video, and music generation under a fair-use policy instead of spending
100
100
  Spark or SOGNI per render. Plans: Unlimited ($20/mo, $199/yr) and Unlimited Pro
101
101
  ($50/mo, $498/yr), with a one-per-account 3-day free trial (trial usage is
102
- capped). External-vendor models — GPT Image 2 (`gpt-image-2`) and Seedance 2.0 /
103
- Fast (`seedance-2-0`, `seedance-2-0-fast`) — are never covered and always need
104
- Premium Spark; selecting SOGNI opts a job out of coverage. The server decides
102
+ capped). External-vendor models — GPT Image 2 (`gpt-image-2`), Seedance 2.0 /
103
+ Mini / Fast (`seedance-2-0`, `seedance-2-0-mini`, `seedance-2-0-fast`), and
104
+ HappyHorse 1.1 (`happyhorse-1.1-t2v`, `happyhorse-1.1-i2v`,
105
+ `happyhorse-1.1-r2v`) — are never covered and always need Premium Spark;
106
+ selecting SOGNI opts a job out of coverage. The server decides
105
107
  coverage from the verified entitlement + resolved model; the CLI never asserts
106
108
  coverage. Fair-use throttling lowers per-UTC-day concurrency as completed renders
107
109
  climb (resets UTC midnight) and demotes over-allowance jobs to a lower-priority
@@ -2,7 +2,7 @@
2
2
  "id": "sogni-creative-agent-skill",
3
3
  "name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
4
4
  "description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
5
- "version": "3.6.4",
5
+ "version": "3.8.0",
6
6
  "skills": [
7
7
  "."
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
@@ -74,7 +74,7 @@
74
74
  "sogni-agent.mjs"
75
75
  ],
76
76
  "dependencies": {
77
- "@sogni-ai/sogni-intelligence-client": "^3.2.3",
77
+ "@sogni-ai/sogni-intelligence-client": "3.5.1",
78
78
  "execa": "^9.6.1",
79
79
  "json5": "^2.2.3",
80
80
  "sharp": "^0.34.5"
@@ -158,7 +158,7 @@ private media that must not leave the local machine.**
158
158
 
159
159
  ## Seedance reference modes (mutually exclusive)
160
160
 
161
- When `--video -m seedance2` or `-m seedance2-fast` is selected, pick one mode
161
+ When `--video -m seedance2`, `-m seedance2-mini`, or `-m seedance2-fast` is selected, pick one mode
162
162
  per video request:
163
163
 
164
164
  - **Dedicated frame mode — `--ref` and/or `--ref-end`.** First-class
@@ -25,11 +25,16 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
25
25
  | `gpt-image-2` | Variable | OpenAI GPT Image 2 text-to-image and edit, strong prompt and text rendering |
26
26
  | `flux1-schnell-fp8` | Very fast | Quick iterations |
27
27
  | `flux2_dev_fp8` | Slow (~2min) | High quality |
28
+ | `krea2_turbo_fp8_scaled` | Fast | Krea 2 Turbo text-to-image, fast high-quality generations with strong prompt adherence |
28
29
  | `chroma-v.46-flash_fp8` | Medium | Balanced |
29
30
  | `qwen_image_edit_2511_fp8` | Medium | Image editing with context (up to 3), strongest preservation |
30
31
  | `qwen_image_edit_2511_fp8_lightning` | Fast | Quick image editing (default for `-c`) |
31
32
  | `coreml-sogniXLturbo_alpha1_ad` | Fast | Photobooth face transfer (SDXL Turbo) |
32
33
 
34
+ For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
35
+ `krea-2-turbo`; direct CLI `-m` uses the worker model ID
36
+ `krea2_turbo_fp8_scaled`.
37
+
33
38
  `gpt-image-2` supports flexible OpenAI image sizes up to `3840px` on either
34
39
  edge, max `3:1` aspect ratio, and total pixels from `655,360` through
35
40
  `8,294,400`; the API snaps dimensions to valid multiples of 16. For image
@@ -66,9 +71,13 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
66
71
  | `ltx23-22b-fp8_a2v_distilled` | Fast (~2-3min) | Audio-to-video |
67
72
  | `ltx23-22b-fp8_v2v_distilled` | Fast (~3min) | Video-to-video with ControlNet, plus canvas outpaint and masked inpaint |
68
73
  | `seedance2` | Variable | Seedance 2.0 text-to-video, 4-15s, native audio, up to native 4K |
69
- | `seedance2-fast` | Variable | Fast Seedance 2.0 text-to-video, lower-resolution fast path |
74
+ | `seedance2-mini` | Variable | Seedance 2.0 Mini text-to-video, lower-cost 720p path |
75
+ | `seedance2-fast` | Variable | Legacy fast Seedance 2.0 text-to-video, 720p path |
70
76
  | `seedance2-ia2v` | Variable | Seedance 2.0 image+audio-to-video |
71
77
  | `seedance2-v2v` | Variable | Seedance 2.0 video-to-video, no ControlNet |
78
+ | `happyhorse-1.1-t2v` | Variable | HappyHorse 1.1 text-to-video, 3-15s, native audio, 720P/1080P |
79
+ | `happyhorse-1.1-i2v` | Variable | HappyHorse 1.1 image-to-video from one first-frame image (`--ref`) |
80
+ | `happyhorse-1.1-r2v` | Variable | HappyHorse 1.1 reference-to-video from 1-9 reference images (`-c`/`--context`) |
72
81
  | `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | Simple image-to-video |
73
82
  | `wan_v2.2-14b-fp8_i2v` | Slow | Higher quality video |
74
83
  | `wan_v2.2-14b-fp8_t2v_lightx2v` | Fast | Text-to-video |
@@ -76,6 +85,61 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
76
85
  | `wan_v2.2-14b-fp8_animate-move_lightx2v` | Fast | Animate-move |
77
86
  | `wan_v2.2-14b-fp8_animate-replace_lightx2v` | Fast | Animate-replace |
78
87
 
88
+ ## HappyHorse 1.1 models
89
+
90
+ Alibaba HappyHorse 1.1 is a Premium-Spark vendor video family (three discrete
91
+ models, no mini/fast variants). Every mode renders at a fixed 24 fps with an
92
+ always-on natively synchronized audio track (no negative prompt, no ControlNet),
93
+ supports 3–15 second durations, and targets 720P or 1080P output. The bare
94
+ `happyhorse` selector resolves to the mode inferred from your references.
95
+
96
+ | Model | Mode | Use Case |
97
+ |-------|------|----------|
98
+ | `happyhorse-1.1-t2v` | Text-to-video | Prompt-only clip with native audio (default for `-m happyhorse`) |
99
+ | `happyhorse-1.1-i2v` | Image-to-video | Animate a single first-frame image passed with `--ref` |
100
+ | `happyhorse-1.1-r2v` | Reference-to-video | Compose from 1–9 reference images passed with `-c`/`--context` |
101
+
102
+ HappyHorse takes image references only — it does not accept reference video or
103
+ reference audio (audio is generated natively). i2v uses exactly one first-frame
104
+ image; r2v accepts up to nine reference images.
105
+
106
+ ### HappyHorse 1.1 prompting tips
107
+
108
+ HappyHorse rewards short, concrete scene direction — roughly 15–30 words for a
109
+ simple shot. One subject, one action, one setting, and one strong visual or
110
+ camera cue is the sweet spot; over-long prompts reduce face and hand fidelity, so
111
+ simplify before adding detail.
112
+
113
+ **What to include:**
114
+
115
+ - **Observable visual detail**: "overcast daylight", "wet asphalt", "warm amber
116
+ backlight", "shallow depth of field" — not evaluative filler like "cinematic",
117
+ "beautiful", "stunning", "epic", or "masterpiece".
118
+ - **One cinematography idea**: put the camera move last and be specific — "slow
119
+ dolly-in", "lateral orbit with parallax", "locked-off wide". Prefer one exact
120
+ color over stacked synonyms.
121
+ - **Plain prose only**: no tag lists, JSON, or weighting syntax; HappyHorse
122
+ ignores negative prompts.
123
+
124
+ **Multi-beat clips:** use a timecoded shot list rather than "first X then Y" —
125
+ for example: *"Shot 1 (wide establishing, 0–2 s): …; Shot 2 (mid tracking,
126
+ 2–5 s): …"*
127
+
128
+ **By mode:**
129
+
130
+ - **t2v** — describe the whole scene compactly in a single prompt.
131
+ - **i2v** — prompt only the *deltas*: motion, camera move, or lighting change.
132
+ The first frame already fixes subject, wardrobe, and background; don't restate
133
+ them.
134
+ - **r2v** — give each `[Image N]` a clear role, then state composition + action
135
+ + one camera/lighting cue for the resulting clip.
136
+
137
+ HappyHorse excels at camera moves, atmospheric light and reflections,
138
+ wind-driven motion (hair, fabric, flags), fire, wide and aerial shots, mirrors,
139
+ and short in-scene text.
140
+
141
+ *Source: fal "Happy Horse Prompting Guide" — <https://fal.ai/learn/tools/prompting-happy-horse>*
142
+
79
143
  ## LTX-2 / LTX-2.3 models
80
144
 
81
145
  | Model | Speed | Use Case |
@@ -104,15 +168,19 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
104
168
  | Image+audio-to-video | `ltx23-22b-fp8_ia2v_distilled` |
105
169
  | Audio-to-video | `ltx23-22b-fp8_a2v_distilled` |
106
170
  | Video-to-video with ControlNet | `ltx23-22b-fp8_v2v_distilled` |
107
- | Seedance text-to-video | `seedance2` or `seedance2-fast` |
171
+ | Seedance text-to-video | `seedance2`, `seedance2-mini`, or `seedance2-fast` |
108
172
  | Seedance video-to-video without ControlNet | `seedance2-v2v` |
173
+ | HappyHorse text-to-video with native audio | `happyhorse-1.1-t2v` (or `happyhorse`) |
174
+ | HappyHorse image-to-video from one first frame | `happyhorse-1.1-i2v` |
175
+ | HappyHorse reference-to-video from up to 9 images | `happyhorse-1.1-r2v` |
109
176
  | Face lip-sync with uploaded audio | `wan_v2.2-14b-fp8_s2v_lightx2v` |
110
177
 
111
178
  ## Video sizing & aspect ratios
112
179
 
113
180
  - **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
114
181
  - **LTX family** (`ltx2-*`, `ltx23-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
115
- - **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-fast` remains capped to the fast lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
182
+ - **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
183
+ - **HappyHorse 1.1** runs at fixed 24 fps and supports 3–15 s durations at 720P or 1080P, with always-on native audio (no negative prompt, no ControlNet). Accepted aspect ratios are `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `4:5`, `5:4`, `9:21`, and `21:9`. i2v takes one first-frame image (`--ref`); r2v takes 1–9 reference images (`-c`/`--context`); it accepts no reference video or audio.
116
184
  - For spoken dialogue, budget roughly 3 words per second plus about 1 second per meaningful acting beat or pause.
117
185
  - The CLI auto-normalizes video sizes to satisfy these constraints.
118
186
  - Use `--target-resolution <px>` for bare resolution requests like "720p" — it targets the short side and preserves the inherited aspect ratio.
@@ -63,7 +63,7 @@ Use this shape instead: "A medium cinematic shot frames a woman in her 30s stand
63
63
 
64
64
  When the user asks for video in **"hd"**, **"1080p"**, **"4k"**, **"uhd"**, or **"high-res"**, do not use the default WAN video models.
65
65
 
66
- - For **native Seedance 4K / UHD**, use full Seedance with `-m seedance2 --target-resolution 2160`. This is a Premium Spark vendor path; do not use `seedance2-fast` for 4K.
66
+ - For **native Seedance 4K / UHD**, use full Seedance with `-m seedance2 --target-resolution 2160`. This is a Premium Spark vendor path; do not use `seedance2-mini` or `seedance2-fast` for 4K.
67
67
  - For **non-vendor HD / 1080p text-to-video**, use `-m ltx23-22b-fp8_t2v_distilled`.
68
68
  - For **non-vendor HD / 1080p image-to-video**, use `-m ltx23-22b-fp8_i2v_distilled`.
69
69
  - Prefer LTX-sized dimensions such as `-w 1920 -h 1088` when the chosen model is LTX.
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "^3.2.3",
6
+ "@sogni-ai/sogni-intelligence-client": "3.5.1",
7
7
  "execa": "^9.6.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "^0.34.5"
@@ -26,7 +26,7 @@ Keep a session-level manifest of every uploaded or generated asset and translate
26
26
 
27
27
  | Model id | Image | Video | Audio |
28
28
  |---|---|---|---|
29
- | `seedance` (incl. `seedance2`, `seedance2-fast`) | `@Image1` | `@Video1` | `@Audio1` |
29
+ | `seedance` (incl. `seedance2`, `seedance2-mini`, `seedance2-fast`) | `@Image1` | `@Video1` | `@Audio1` |
30
30
  | `gpt-image-2`, `flux*` | `Image 1` | `Video 1` | `Audio 1` |
31
31
  | `ltx23`, `wan`, `qwen-image-edit` | `context_image_0` (0-indexed) | `context_video_0` | `context_audio_0` |
32
32
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: image_generation
3
- description: Text-to-image synthesis with Z-Image, Flux, Qwen, and GPT Image 2 models.
3
+ description: Text-to-image synthesis with Z-Image, Krea 2, Flux, Qwen, and GPT Image 2 models.
4
4
  always_loaded: false
5
5
  tool_names:
6
6
  - generate_image
@@ -8,12 +8,18 @@ tool_names:
8
8
 
9
9
  # Image generation
10
10
 
11
- Text-to-image synthesis with the current Sogni image stack (Z-Image, Flux, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
11
+ Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Flux, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
12
12
 
13
13
  ## Tools
14
14
 
15
15
  - `generate_image {prompt, ...}` — produce one or more images from text.
16
16
 
17
+ ## Prompting
18
+
19
+ - Use natural-language descriptions (subject, setting, composition, lighting, style) for the next-gen models (Krea 2, Z-Image, Flux, Qwen) rather than keyword lists.
20
+ - Krea 2 favors long, detailed prompts but also handles short ones; to render text in the image, wrap the exact words in quotes (e.g. a sign reading "OPEN").
21
+ - The app applies model-specific prompt-enhancement automatically — pass the user's intent faithfully and avoid empty quality-booster spam.
22
+
17
23
  ## Constraints
18
24
 
19
25
  - For persona-driven requests, defer to `image_editing` — personas must be conditioned on reference photos, never generated from scratch.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: video_editing
3
- description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
3
+ description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
4
4
  always_loaded: false
5
5
  tool_names:
6
6
  - animate_photo
@@ -17,11 +17,11 @@ tool_names:
17
17
 
18
18
  # Video editing
19
19
 
20
- Convert a still image, audio track, or existing clip into video, plus Seedance multimodal references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
20
+ Convert a still image, audio track, or existing clip into video, plus Seedance multimodal references, HappyHorse image references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
21
21
 
22
22
  ## Tools
23
23
 
24
- - `animate_photo` — photo-to-video animation with LTX/WAN/Seedance routing.
24
+ - `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse routing.
25
25
  - `sound_to_video` — audio-synced video generation.
26
26
  - `video_to_video` — video style transfer with ControlNet.
27
27
  - `stitch_video` — concatenate previously rendered clips.
@@ -38,3 +38,4 @@ Convert a still image, audio track, or existing clip into video, plus Seedance m
38
38
  - `animate_photo` errors with `all_failed` must surface to the user; do not auto-retry from inside the chat loop.
39
39
  - For multiple prompt-only takes from one fixed source/end image and shared settings, prefer one Dynamic Prompt request with `numberOfVariations`/`-n`, then stitch the returned clips if the user asked for a single final video.
40
40
  - Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
41
+ - HappyHorse i2v uses exactly one first-frame image and r2v uses 1-9 image references; do not attach reference audio, reference video, ControlNet, or negative prompts.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: video_generation
3
- description: Text-to-video synthesis with LTX-2.3, WAN 2.2, and Seedance 2.0.
3
+ description: Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, and HappyHorse 1.1.
4
4
  always_loaded: false
5
5
  tool_names:
6
6
  - generate_video
@@ -8,13 +8,14 @@ tool_names:
8
8
 
9
9
  # Video generation
10
10
 
11
- Text-to-video synthesis with LTX-2.3, WAN 2.2, and Seedance 2.0. Use when the user wants a new video clip generated from a prompt with no source image, audio, or clip.
11
+ Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, and HappyHorse 1.1. Use when the user wants a new video clip generated from a prompt with no source image, audio, or clip.
12
12
 
13
13
  ## Tools
14
14
 
15
- - `generate_video` — produce a video clip from text or Seedance multimodal references.
15
+ - `generate_video` — produce a video clip from text, Seedance multimodal references, or HappyHorse image references.
16
16
 
17
17
  ## Constraints
18
18
 
19
19
  - Persona-driven video requests must always go through `image_editing` first to produce a conditioned image; never go straight to text-to-video for personas.
20
20
  - For prompt-only variants with the same model, duration, dimensions, and references, use one Dynamic Prompt branch with `numberOfVariations`/`-n` instead of serial video calls.
21
+ - HappyHorse 1.1 is a Premium Spark vendor path: t2v is prompt-only, i2v uses one first-frame image, and r2v uses 1-9 image references. It accepts no reference audio or video.
package/sogni-agent.mjs CHANGED
@@ -53,6 +53,8 @@ import {
53
53
  getVideoPromptGuardrailPlan,
54
54
  inferVideoWorkflowFromAssets,
55
55
  inferVideoWorkflowFromModel,
56
+ isHappyHorseModel,
57
+ isHappyHorseModelSelection,
56
58
  isLtx2Model,
57
59
  isSeedanceModel,
58
60
  isSeedanceModelSelection,
@@ -80,10 +82,16 @@ import {
80
82
  prepareSeedanceV2VSourceVideo as prepareSharedSeedanceV2VSourceVideo
81
83
  } from '@sogni-ai/sogni-intelligence-client/media';
82
84
  import {
85
+ HAPPYHORSE_REFERENCE_LIMITS,
86
+ HappyHorseReferenceLimitError,
83
87
  SEEDANCE_REFERENCE_LIMITS,
84
88
  SeedanceReferenceLimitError,
89
+ getHappyHorseReferenceLimits,
90
+ happyhorseTerminalGenerationFailurePayloadFromError,
91
+ happyhorseTerminalPolicyPayloadFromError,
85
92
  seedanceTerminalGenerationFailurePayloadFromError,
86
93
  seedanceTerminalPolicyPayloadFromError,
94
+ validateHappyHorseReferenceCounts,
87
95
  validateSeedanceReferenceCounts
88
96
  } from '@sogni-ai/sogni-intelligence-client/tools';
89
97
 
@@ -109,7 +117,7 @@ function subscriptionBillingFallback(code) {
109
117
  // Vendor model the subscription never covers, or no verified entitlement.
110
118
  return {
111
119
  retryable: false,
112
- hint: 'This generation is not covered by Sogni Unlimited. Vendor models (GPT Image 2, Seedance) always require Premium Spark; otherwise reconnect and try again. ' + SPARK_PACKS_PURCHASE_HINT,
120
+ hint: 'This generation is not covered by Sogni Unlimited. Vendor models (GPT Image 2, Seedance, HappyHorse) always require Premium Spark; otherwise reconnect and try again. ' + SPARK_PACKS_PURCHASE_HINT,
113
121
  purchaseLabel: 'Get Premium Spark',
114
122
  purchaseUrl: SPARK_PACKS_PURCHASE_URL,
115
123
  };
@@ -319,14 +327,27 @@ const SOCKET_EVENT_SUBSCRIPTIONS = Object.freeze({
319
327
  modelAvailability: false
320
328
  });
321
329
  const MUSIC_MODEL_IDS = {
322
- turbo: 'ace_step_1.5_turbo',
323
- speed: 'ace_step_1.5_turbo',
324
- fast: 'ace_step_1.5_turbo',
325
- sft: 'ace_step_1.5_sft',
326
- lyrics: 'ace_step_1.5_sft',
327
- lyric: 'ace_step_1.5_sft'
330
+ turbo: 'ace_step_1.5_xl_turbo',
331
+ speed: 'ace_step_1.5_xl_turbo',
332
+ fast: 'ace_step_1.5_xl_turbo',
333
+ sft: 'ace_step_1.5_xl_sft',
334
+ lyrics: 'ace_step_1.5_xl_sft',
335
+ lyric: 'ace_step_1.5_xl_sft'
328
336
  };
329
337
  const MUSIC_MODEL_DEFAULTS = {
338
+ 'ace_step_1.5_xl_turbo': {
339
+ steps: { min: 4, max: 16, default: 8 },
340
+ shift: { min: 1, max: 6, default: 3 },
341
+ sampler: { allowed: ['euler', 'euler_ancestral'], default: 'euler' },
342
+ scheduler: { allowed: ['simple'], default: 'simple' }
343
+ },
344
+ 'ace_step_1.5_xl_sft': {
345
+ steps: { min: 10, max: 100, default: 50 },
346
+ guidance: { min: 1, max: 15, default: 5 },
347
+ shift: { min: 1, max: 6, default: 3 },
348
+ sampler: { allowed: ['euler', 'euler_ancestral', 'er_sde'], default: 'er_sde' },
349
+ scheduler: { allowed: ['simple', 'linear_quadratic'], default: 'linear_quadratic' }
350
+ },
330
351
  'ace_step_1.5_turbo': {
331
352
  steps: { min: 4, max: 16, default: 8 },
332
353
  shift: { min: 1, max: 6, default: 3 },
@@ -435,8 +456,74 @@ function seedanceFriendlyGenerationMessage(payload) {
435
456
  return payload?.message || 'Seedance could not complete this video.';
436
457
  }
437
458
 
438
- function classifyCliError(error) {
459
+ // Classify a HappyHorse terminal policy / generation-failure error into the
460
+ // canonical CLI error shape, or null when neither HappyHorse matcher applies.
461
+ // Factored out so it can run either AFTER the Seedance matchers (default order)
462
+ // or BEFORE them when the failing model is known to be HappyHorse (see
463
+ // classifyCliError).
464
+ function classifyHappyHorseCliError(error, rawMessage) {
465
+ const happyhorsePolicyPayload = happyhorseTerminalPolicyPayloadFromError(error);
466
+ if (happyhorsePolicyPayload) {
467
+ return {
468
+ error_type: 'SAFETY_REJECTED',
469
+ category: 'content_refused',
470
+ message: happyhorsePolicyPayload.message,
471
+ retryable: false,
472
+ metadata: happyhorsePolicyPayload,
473
+ technicalError: rawMessage
474
+ };
475
+ }
476
+
477
+ const happyhorseGenerationPayload = happyhorseTerminalGenerationFailurePayloadFromError(error);
478
+ if (happyhorseGenerationPayload) {
479
+ const vendorCode = happyhorseGenerationPayload.vendorErrorCode;
480
+ const isInvalidParameter = vendorCode === 'InvalidParameter' ||
481
+ happyhorseGenerationPayload.error === 'happyhorse_input_download_failed';
482
+ return {
483
+ error_type: isInvalidParameter ? 'PARAMETER_INVALID' : 'GPU_WORKER_FAILED',
484
+ category: isInvalidParameter ? 'schema_validation' : 'transient_failure',
485
+ message: happyhorseGenerationPayload.message || 'HappyHorse could not complete this video.',
486
+ retryable: !isInvalidParameter,
487
+ metadata: happyhorseGenerationPayload,
488
+ technicalError: rawMessage
489
+ };
490
+ }
491
+
492
+ return null;
493
+ }
494
+
495
+ function classifyCliError(error, context = {}) {
439
496
  const rawMessage = cliErrorMessage(error);
497
+
498
+ // Client-side CLI rejections are the plain `{ message, code }` shape built by
499
+ // buildCliErrorPayload (never an Error instance and never a vendor poll body).
500
+ // They are argument-validation failures, so skip the HappyHorse terminal
501
+ // matchers — the HappyHorse generation matcher keys off a bare "happyhorse"
502
+ // mention and would otherwise re-wrap a validation message (e.g. "HappyHorse
503
+ // models do not support ControlNet") as a retryable vendor generation failure.
504
+ const isClientSideCliPayload = error
505
+ && typeof error === 'object'
506
+ && !(error instanceof Error)
507
+ && typeof error.message === 'string'
508
+ && !('output' in error)
509
+ && !('vendorError' in error)
510
+ && !('vendorErrorCode' in error);
511
+
512
+ // When the failing model is HappyHorse, run the HappyHorse matchers BEFORE the
513
+ // generic Seedance generation matcher. That matcher keys off vendor-agnostic
514
+ // socket failure text ("All N video generation jobs failed", "Vendor task ...
515
+ // status=failed", "Vendor job failed"), which a HappyHorse failure also
516
+ // produces, so without this model-aware reordering a HappyHorse vendor failure
517
+ // would be misattributed to Seedance. The client-side-payload guard still
518
+ // applies so a CLI validation message that merely names HappyHorse is not
519
+ // re-wrapped as a retryable vendor failure.
520
+ const modelHint = context?.modelId;
521
+ const preferHappyHorse = isHappyHorseModel(modelHint) || isHappyHorseModelSelectionLocal(modelHint);
522
+ if (preferHappyHorse && !isClientSideCliPayload) {
523
+ const happyhorseClassified = classifyHappyHorseCliError(error, rawMessage);
524
+ if (happyhorseClassified) return happyhorseClassified;
525
+ }
526
+
440
527
  const seedancePolicyPayload = seedanceTerminalPolicyPayloadFromError(error);
441
528
  if (seedancePolicyPayload) {
442
529
  return {
@@ -464,11 +551,19 @@ function classifyCliError(error) {
464
551
  };
465
552
  }
466
553
 
554
+ // Default order: when the model is not known to be HappyHorse, run the
555
+ // HappyHorse matchers after the Seedance matchers (preferHappyHorse already
556
+ // ran them above when the model hint matched).
557
+ if (!preferHappyHorse && !isClientSideCliPayload) {
558
+ const happyhorseClassified = classifyHappyHorseCliError(error, rawMessage);
559
+ if (happyhorseClassified) return happyhorseClassified;
560
+ }
561
+
467
562
  return classifySkillError(error);
468
563
  }
469
564
 
470
- function addCanonicalErrorFields(payload, error) {
471
- const classified = classifyCliError(error);
565
+ function addCanonicalErrorFields(payload, error, context = {}) {
566
+ const classified = classifyCliError(error, context);
472
567
  payload.error = classified.message;
473
568
  payload.errorType = classified.error_type;
474
569
  payload.errorCategory = classified.category;
@@ -494,9 +589,9 @@ function addCanonicalErrorFields(payload, error) {
494
589
  // Human-facing twin of addCanonicalErrorFields: print the classified, friendly
495
590
  // message (with the raw message as a detail line when it differs) so human
496
591
  // users get the same quality of error JSON consumers already receive.
497
- function printHumanError(error) {
592
+ function printHumanError(error, context = {}) {
498
593
  let classified = null;
499
- try { classified = classifyCliError(error); } catch { /* fall back to raw */ }
594
+ try { classified = classifyCliError(error, context); } catch { /* fall back to raw */ }
500
595
  const message = classified?.message || error?.message || String(error);
501
596
  console.error(`Error: ${message}`);
502
597
  if (classified?.technicalError && classified.technicalError !== message) {
@@ -1173,7 +1268,36 @@ function normalizeMusicTimeSignature(value) {
1173
1268
  }
1174
1269
 
1175
1270
  function requiresSparkOnlyToken(modelId) {
1176
- return isGptImage2ModelSelection(modelId) || isSeedanceModel(modelId);
1271
+ return isGptImage2ModelSelection(modelId) || isSeedanceModel(modelId) || isHappyHorseModel(modelId);
1272
+ }
1273
+
1274
+ // HappyHorse 1.1 ships three discrete vendor models (no mini/fast). The shared
1275
+ // intel client only resolves the fully-qualified ids; accept the bare
1276
+ // `happyhorse` / `happyhorse-1.1` selector here so `-m happyhorse` works the way
1277
+ // `-m seedance2` does, and pin the concrete per-mode model id.
1278
+ const HAPPYHORSE_VIDEO_MODES = new Set(['t2v', 'i2v', 'r2v']);
1279
+
1280
+ function isHappyHorseModelSelectionLocal(modelId) {
1281
+ if (isHappyHorseModelSelection(modelId)) return true;
1282
+ const key = String(modelId || '').trim().toLowerCase();
1283
+ return key === 'happyhorse' || key === 'happyhorse-1.1';
1284
+ }
1285
+
1286
+ function resolveHappyHorseModelId(modelId, workflow) {
1287
+ if (!isHappyHorseModelSelectionLocal(modelId)) return modelId;
1288
+ const key = String(modelId || '').trim().toLowerCase();
1289
+ if (key === 'happyhorse' || key === 'happyhorse-1.1') {
1290
+ const mode = HAPPYHORSE_VIDEO_MODES.has(workflow) ? workflow : 't2v';
1291
+ return `happyhorse-1.1-${mode}`;
1292
+ }
1293
+ return modelId;
1294
+ }
1295
+
1296
+ // The per-mode workflow pinned by a concrete `happyhorse-1.1-<mode>` model id, or
1297
+ // null for the bare `happyhorse` / `happyhorse-1.1` alias (mode inferred from refs).
1298
+ function happyHorseModeFromModelId(modelId) {
1299
+ const match = String(modelId || '').trim().toLowerCase().match(/^happyhorse-1\.1-(t2v|i2v|r2v)$/);
1300
+ return match ? match[1] : null;
1177
1301
  }
1178
1302
 
1179
1303
  function getMaxContextImages(modelId) {
@@ -1183,21 +1307,46 @@ function getMaxContextImages(modelId) {
1183
1307
 
1184
1308
  function videoDurationLimitsLikeWrapper(modelId) {
1185
1309
  if (isSeedanceModel(modelId)) return { min: 4, max: 15 };
1310
+ if (isHappyHorseModel(modelId)) return { min: 3, max: 15 };
1186
1311
  if (isLtx2Model(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
1187
1312
  return { min: 1, max: 10 };
1188
1313
  }
1189
1314
 
1315
+ // Default video dimensions (and dimension rules) for models the shared intel
1316
+ // video-model registry does not carry, so `getModelDefaults` returns null and
1317
+ // the CLI would otherwise fall back to the 512x512 square.
1318
+ // Parallels `videoDurationLimitsLikeWrapper`.
1319
+ //
1320
+ // HappyHorse 1.1 spec default is 1080P (1920x1080, 16:9). The intelligence
1321
+ // client registers dimensionDivisor=1 and maxDimension=1920 for HappyHorse, so
1322
+ // we mirror those here via `maxDimension` and `dimensionMultiple` so that
1323
+ // `videoDimensionRulesFromDefaults` applies the correct clamp for the model
1324
+ // instead of the generic 480-1536 / multiple-of-16 rules (which would reduce
1325
+ // 1920x1080 to 1536x864 and round 1080 to 1072). These are defaults only —
1326
+ // explicit -w/-h/--target-resolution, config, and prompt-derived dimensions
1327
+ // still win (see the video preflight defaults block).
1328
+ function videoModelDimensionDefaultsLikeWrapper(modelId) {
1329
+ if (isHappyHorseModel(modelId) || isHappyHorseModelSelectionLocal(modelId)) {
1330
+ return { defaultWidth: 1920, defaultHeight: 1080, maxDimension: 1920, dimensionMultiple: 1 };
1331
+ }
1332
+ return null;
1333
+ }
1334
+
1190
1335
  function wrapperMaxVideoDimension(modelId) {
1191
1336
  return isWanVideoModelId(modelId) ? WRAPPER_MAX_WAN_VIDEO_DIMENSION : WRAPPER_MAX_VIDEO_DIMENSION;
1192
1337
  }
1193
1338
 
1194
1339
  function videoDimensionRulesFromDefaults(modelDefaults, modelId) {
1195
1340
  const wrapperMax = wrapperMaxVideoDimension(modelId);
1196
- const configuredMax = modelDefaults?.maxDimension || DEFAULT_VIDEO_DIMENSION_RULES.maxDimension;
1341
+ // Fall back to skill-local dimension rules for models the intel registry does
1342
+ // not carry (e.g. HappyHorse), so their model-specific maxDimension and
1343
+ // dimensionMultiple are applied instead of the generic 1536 / 16 defaults.
1344
+ const localFallback = videoModelDimensionDefaultsLikeWrapper(modelId);
1345
+ const configuredMax = modelDefaults?.maxDimension || localFallback?.maxDimension || DEFAULT_VIDEO_DIMENSION_RULES.maxDimension;
1197
1346
  return {
1198
1347
  minDimension: modelDefaults?.minDimension || DEFAULT_VIDEO_DIMENSION_RULES.minDimension,
1199
1348
  maxDimension: Math.min(configuredMax, wrapperMax),
1200
- dimensionMultiple: modelDefaults?.dimensionMultiple || DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple
1349
+ dimensionMultiple: modelDefaults?.dimensionMultiple || localFallback?.dimensionMultiple || DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple
1201
1350
  };
1202
1351
  }
1203
1352
 
@@ -2507,7 +2656,7 @@ Photobooth (Face Transfer):
2507
2656
 
2508
2657
  Music Options:
2509
2658
  --music Generate music/audio instead of image
2510
- --music-model <id> Music model: turbo|sft|ace_step_1.5_turbo|ace_step_1.5_sft
2659
+ --music-model <id> Music model: turbo|sft|ace_step_1.5_xl_turbo|ace_step_1.5_xl_sft
2511
2660
  --lyrics <text> Optional song lyrics (omit for instrumental)
2512
2661
  --language <code> Lyrics language code (default: en)
2513
2662
  --duration <sec> Music duration in seconds (10-600, default: 30)
@@ -2546,7 +2695,7 @@ Video Options:
2546
2695
  first entry is the primary, extras must be HTTPS URLs in CLI
2547
2696
  direct-gen. On LTX/WAN: single primary for animate/v2v workflows.
2548
2697
 
2549
- Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-fast):
2698
+ Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast):
2550
2699
  - DEDICATED FRAME MODE: --ref (first frame) and/or --ref-end (last frame).
2551
2700
  Best when you want canonical first/last frame anchoring; max 2 images.
2552
2701
  - LOOSE REFERENCE MODE: -c/--context image refs plus optional --ref-audio /
@@ -2664,6 +2813,7 @@ Personas (named people with reference photos):
2664
2813
  Image Models:
2665
2814
  z_image_turbo_bf16 Fast, general purpose (default)
2666
2815
  gpt-image-2 OpenAI GPT Image 2 text-to-image and edit (up to 16 context images)
2816
+ krea2_turbo_fp8_scaled Krea 2 Turbo text-to-image
2667
2817
  flux1-schnell-fp8 Very fast
2668
2818
  flux2_dev_fp8 High quality (slow)
2669
2819
  qwen_image_edit_2511_fp8 Image editing with context (up to 3 images)
@@ -2677,15 +2827,23 @@ Recommended LTX 2.3 Video Models:
2677
2827
  ltx23-22b-fp8_v2v_distilled Video-to-video with ControlNet
2678
2828
 
2679
2829
  Music Models:
2680
- ace_step_1.5_turbo Default direct music generation
2681
- ace_step_1.5_sft Experimental model with stronger lyric handling
2830
+ ace_step_1.5_xl_turbo Default direct music generation
2831
+ ace_step_1.5_xl_sft Quality variant with stronger lyric handling
2832
+ ace_step_1.5_turbo Legacy direct music generation
2833
+ ace_step_1.5_sft Legacy lyric-focused music generation
2682
2834
 
2683
2835
  Seedance 2.0 Video Model Selectors:
2684
2836
  seedance2 Text-to-video, 4-15s, native audio, HTTPS multimodal refs
2685
- seedance2-fast Fast 720p-capped text-to-video
2837
+ seedance2-mini Lower-cost 720p-capped text-to-video
2838
+ seedance2-fast Legacy fast 720p-capped text-to-video
2686
2839
  seedance2-ia2v Image+audio-to-video
2687
2840
  seedance2-v2v Video-to-video without ControlNet
2688
2841
 
2842
+ HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/1080P):
2843
+ happyhorse-1.1-t2v Text-to-video (also accepts the bare "happyhorse" alias)
2844
+ happyhorse-1.1-i2v Image-to-video from a single first-frame image (--ref)
2845
+ happyhorse-1.1-r2v Reference-to-video from 1-9 reference images (-c/--context)
2846
+
2689
2847
  WAN 2.2 Video Models:
2690
2848
  wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
2691
2849
  wan_v2.2-14b-fp8_i2v_lightx2v Fast simple image-to-video
@@ -3114,13 +3272,18 @@ if (options.angles360Video && !options.angles360) {
3114
3272
  if (options.video) {
3115
3273
  if (options.videoWorkflow) {
3116
3274
  const normalized = normalizeVideoWorkflow(options.videoWorkflow);
3117
- if (!normalized) {
3118
- fatalCliError(`Unknown workflow "${options.videoWorkflow}". Use t2v|i2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace.`, {
3275
+ if (normalized) {
3276
+ options.videoWorkflow = normalized;
3277
+ } else if (options.videoWorkflow === 'r2v' && isHappyHorseModelSelectionLocal(options.model)) {
3278
+ // HappyHorse adds a reference-to-video (r2v) mode that the shared
3279
+ // SkillVideoWorkflow enum does not carry; accept it for HappyHorse only.
3280
+ options.videoWorkflow = 'r2v';
3281
+ } else {
3282
+ fatalCliError(`Unknown workflow "${options.videoWorkflow}". Use t2v|i2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace (r2v on HappyHorse).`, {
3119
3283
  code: 'INVALID_ARGUMENT',
3120
3284
  details: { workflow: options.videoWorkflow }
3121
3285
  });
3122
3286
  }
3123
- options.videoWorkflow = normalized;
3124
3287
  }
3125
3288
 
3126
3289
  if (
@@ -3144,6 +3307,32 @@ if (options.video) {
3144
3307
  }
3145
3308
  }
3146
3309
 
3310
+ // HappyHorse 1.1 has no v2v/ia2v. A concrete `happyhorse-1.1-<mode>` id pins
3311
+ // the workflow; the bare `happyhorse` / `happyhorse-1.1` alias infers t2v by
3312
+ // default, i2v from a single first-frame image (--ref), and r2v from loose
3313
+ // -c/--context reference images (1-9). Pin the concrete per-mode model id.
3314
+ if (isHappyHorseModelSelectionLocal(options.model)) {
3315
+ const pinnedMode = happyHorseModeFromModelId(options.model);
3316
+ if (pinnedMode) {
3317
+ if (options.videoWorkflow && options.videoWorkflow !== pinnedMode) {
3318
+ fatalCliError(`Workflow "${options.videoWorkflow}" does not match model "${options.model}".`, {
3319
+ code: 'INVALID_ARGUMENT',
3320
+ details: { workflow: options.videoWorkflow, model: options.model }
3321
+ });
3322
+ }
3323
+ options.videoWorkflow = pinnedMode;
3324
+ } else if (!options.videoWorkflow) {
3325
+ if (Array.isArray(options.contextImages) && options.contextImages.length > 0) {
3326
+ options.videoWorkflow = 'r2v';
3327
+ } else if (options.refImage) {
3328
+ options.videoWorkflow = 'i2v';
3329
+ } else {
3330
+ options.videoWorkflow = 't2v';
3331
+ }
3332
+ }
3333
+ options.model = resolveHappyHorseModelId(options.model, options.videoWorkflow);
3334
+ }
3335
+
3147
3336
  const workflowFromModel = inferVideoWorkflowFromModel(resolveVideoModelAlias(options.model, options.videoWorkflow));
3148
3337
  if (options.videoWorkflow && workflowFromModel && options.videoWorkflow !== workflowFromModel) {
3149
3338
  fatalCliError(`Workflow "${options.videoWorkflow}" does not match model "${options.model}".`, {
@@ -3180,7 +3369,7 @@ if (options.music) {
3180
3369
  const configuredMusicModel = options.model || openclawConfig?.defaultMusicModel || 'turbo';
3181
3370
  options.model = normalizeMusicModelId(configuredMusicModel);
3182
3371
  if (!options.model) {
3183
- fatalCliError(`Unknown music model "${configuredMusicModel}". Use turbo, sft, ace_step_1.5_turbo, or ace_step_1.5_sft.`, {
3372
+ fatalCliError(`Unknown music model "${configuredMusicModel}". Use turbo, sft, ace_step_1.5_xl_turbo, or ace_step_1.5_xl_sft.`, {
3184
3373
  code: 'INVALID_ARGUMENT',
3185
3374
  details: { flag: cliSet.model ? '--model' : 'defaultMusicModel', value: configuredMusicModel }
3186
3375
  });
@@ -3214,12 +3403,22 @@ if (options.music) {
3214
3403
  options.model = options.model || selectDefaultVideoModel(options.videoWorkflow, options, openclawConfig) || 'wan_v2.2-14b-fp8_i2v_lightx2v';
3215
3404
  options.model = resolveVideoModelAlias(options.model, options.videoWorkflow);
3216
3405
  const videoModelDefaults = getModelDefaults(options.model, openclawConfig);
3406
+ // Fall back to skill-local defaults for models the intel registry does not
3407
+ // carry (e.g. HappyHorse), so they get a sensible 16:9 default instead of the
3408
+ // 512x512 square. Registry defaults still take precedence when present.
3409
+ const videoModelDimensionFallback = videoModelDimensionDefaultsLikeWrapper(options.model);
3410
+ const defaultVideoWidth = Number.isFinite(videoModelDefaults?.defaultWidth)
3411
+ ? videoModelDefaults.defaultWidth
3412
+ : videoModelDimensionFallback?.defaultWidth;
3413
+ const defaultVideoHeight = Number.isFinite(videoModelDefaults?.defaultHeight)
3414
+ ? videoModelDefaults.defaultHeight
3415
+ : videoModelDimensionFallback?.defaultHeight;
3217
3416
  const isSeedanceVideo = isSeedanceModel(options.model);
3218
- if (!cliSet.width && !widthFromConfig && !widthFromPrompt && Number.isFinite(videoModelDefaults?.defaultWidth)) {
3219
- options.width = videoModelDefaults.defaultWidth;
3417
+ if (!cliSet.width && !widthFromConfig && !widthFromPrompt && Number.isFinite(defaultVideoWidth)) {
3418
+ options.width = defaultVideoWidth;
3220
3419
  }
3221
- if (!cliSet.height && !heightFromConfig && !heightFromPrompt && Number.isFinite(videoModelDefaults?.defaultHeight)) {
3222
- options.height = videoModelDefaults.defaultHeight;
3420
+ if (!cliSet.height && !heightFromConfig && !heightFromPrompt && Number.isFinite(defaultVideoHeight)) {
3421
+ options.height = defaultVideoHeight;
3223
3422
  }
3224
3423
  if (!cliSet.fps && !fpsFromConfig && Number.isFinite(videoModelDefaults?.fps)) {
3225
3424
  options.fps = videoModelDefaults.fps;
@@ -3404,12 +3603,25 @@ if (options.photobooth) {
3404
3603
 
3405
3604
  if (options.video) {
3406
3605
  const isSeedanceVideo = isSeedanceModel(options.model);
3606
+ const isHappyHorseVideo = isHappyHorseModel(options.model);
3407
3607
  if (isSeedanceVideo && !['t2v', 'ia2v', 'v2v'].includes(options.videoWorkflow)) {
3408
3608
  fatalCliError('Seedance models support only t2v, ia2v, or v2v workflows.', {
3409
3609
  code: 'INVALID_ARGUMENT',
3410
3610
  details: { workflow: options.videoWorkflow, model: options.model }
3411
3611
  });
3412
3612
  }
3613
+ if (isHappyHorseVideo && !['t2v', 'i2v', 'r2v'].includes(options.videoWorkflow)) {
3614
+ fatalCliError('HappyHorse models support only t2v, i2v, or r2v workflows.', {
3615
+ code: 'INVALID_ARGUMENT',
3616
+ details: { workflow: options.videoWorkflow, model: options.model }
3617
+ });
3618
+ }
3619
+ if (isHappyHorseVideo && options.videoControlNetName) {
3620
+ fatalCliError('HappyHorse video models do not support ControlNet.', {
3621
+ code: 'INVALID_ARGUMENT',
3622
+ details: { model: options.model, controlNetName: options.videoControlNetName }
3623
+ });
3624
+ }
3413
3625
 
3414
3626
  if (options.videoWorkflow === 't2v') {
3415
3627
  if (!isSeedanceVideo && (options.refImage || options.refImageEnd || options.refAudio || options.refVideo)) {
@@ -3418,11 +3630,34 @@ if (options.video) {
3418
3630
  });
3419
3631
  }
3420
3632
  } else if (options.videoWorkflow === 'i2v') {
3421
- if (!options.refImage && !options.refImageEnd) {
3422
- fatalCliError('i2v requires --ref and/or --ref-end.', { code: 'INVALID_ARGUMENT' });
3633
+ if (isHappyHorseVideo) {
3634
+ if (!options.refImage) {
3635
+ fatalCliError('HappyHorse i2v requires --ref (a single first-frame image).', { code: 'INVALID_ARGUMENT' });
3636
+ }
3637
+ if (options.refImageEnd) {
3638
+ fatalCliError('HappyHorse i2v accepts only a single first-frame image (--ref); it has no end-frame input.', { code: 'INVALID_ARGUMENT' });
3639
+ }
3640
+ if (options.refAudio || options.refVideo) {
3641
+ fatalCliError('HappyHorse i2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
3642
+ }
3643
+ } else {
3644
+ if (!options.refImage && !options.refImageEnd) {
3645
+ fatalCliError('i2v requires --ref and/or --ref-end.', { code: 'INVALID_ARGUMENT' });
3646
+ }
3647
+ if (options.refAudio || options.refVideo) {
3648
+ fatalCliError('i2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
3649
+ }
3650
+ }
3651
+ } else if (options.videoWorkflow === 'r2v') {
3652
+ // HappyHorse reference-to-video: 1-9 loose image references via -c/--context.
3653
+ if (!Array.isArray(options.contextImages) || options.contextImages.length === 0) {
3654
+ fatalCliError('HappyHorse r2v requires 1-9 reference images via -c/--context.', { code: 'INVALID_ARGUMENT' });
3655
+ }
3656
+ if (options.refImage || options.refImageEnd) {
3657
+ fatalCliError('HappyHorse r2v takes reference images via -c/--context, not --ref/--ref-end.', { code: 'INVALID_ARGUMENT' });
3423
3658
  }
3424
3659
  if (options.refAudio || options.refVideo) {
3425
- fatalCliError('i2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
3660
+ fatalCliError('HappyHorse r2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
3426
3661
  }
3427
3662
  } else if (options.videoWorkflow === 's2v') {
3428
3663
  if (!options.refImage || !options.refAudio) {
@@ -3504,13 +3739,13 @@ if (options.video) {
3504
3739
  // they only support a single primary --ref-audio / --ref-video each.
3505
3740
  if (!isSeedanceVideo) {
3506
3741
  if (Array.isArray(options.refAudios) && options.refAudios.length > 0) {
3507
- fatalCliError('Multiple --ref-audio entries are only supported for Seedance models (seedance2, seedance2-fast).', {
3742
+ fatalCliError('Multiple --ref-audio entries are only supported for Seedance models (seedance2, seedance2-mini, seedance2-fast).', {
3508
3743
  code: 'INVALID_ARGUMENT',
3509
3744
  details: { model: options.model, extras: options.refAudios },
3510
3745
  });
3511
3746
  }
3512
3747
  if (Array.isArray(options.refVideos) && options.refVideos.length > 0) {
3513
- fatalCliError('Multiple --ref-video entries are only supported for Seedance models (seedance2, seedance2-fast).', {
3748
+ fatalCliError('Multiple --ref-video entries are only supported for Seedance models (seedance2, seedance2-mini, seedance2-fast).', {
3514
3749
  code: 'INVALID_ARGUMENT',
3515
3750
  details: { model: options.model, extras: options.refVideos },
3516
3751
  });
@@ -3564,11 +3799,12 @@ if (options.video) {
3564
3799
 
3565
3800
  applyVideoPromptGuardrails();
3566
3801
 
3567
- if (options.video && isSeedanceModel(options.model) && options.fps !== 24) {
3802
+ if (options.video && (isSeedanceModel(options.model) || isHappyHorseModel(options.model)) && options.fps !== 24) {
3568
3803
  const originalFps = options.fps;
3804
+ const vendorLabel = isHappyHorseModel(options.model) ? 'HappyHorse' : 'Seedance';
3569
3805
  options.fps = 24;
3570
3806
  if (!options.quiet) {
3571
- console.error(`Adjusted Seedance fps from ${originalFps} to 24 (Seedance uses fixed 24fps video generation).`);
3807
+ console.error(`Adjusted ${vendorLabel} fps from ${originalFps} to 24 (${vendorLabel} uses fixed 24fps video generation).`);
3572
3808
  }
3573
3809
  }
3574
3810
 
@@ -6556,6 +6792,32 @@ function enforceSeedanceReferenceCaps() {
6556
6792
  }
6557
6793
  }
6558
6794
 
6795
+ // Wraps the shared validateHappyHorseReferenceCounts() so a thrown
6796
+ // HappyHorseReferenceLimitError is re-raised as a CLI fatal error with the same
6797
+ // human message the hosted chat surfaces. HappyHorse caps are PER MODEL (mode):
6798
+ // t2v 0 images, i2v 1 first-frame image, r2v up to 9 reference images; it takes
6799
+ // no reference videos or audios (audio is rendered natively). Source of truth:
6800
+ // @sogni-ai/sogni-intelligence-client/tools HAPPYHORSE_REFERENCE_LIMITS.
6801
+ function enforceHappyHorseReferenceCaps() {
6802
+ try {
6803
+ validateHappyHorseReferenceCounts(options.model, effectiveSeedanceReferenceCounts());
6804
+ } catch (err) {
6805
+ if (err instanceof HappyHorseReferenceLimitError) {
6806
+ fatalCliError(err.message, {
6807
+ code: err.code,
6808
+ details: {
6809
+ modelId: err.modelId,
6810
+ limitKind: err.limitKind,
6811
+ requestedCount: err.requestedCount,
6812
+ maxCount: err.maxCount,
6813
+ limits: getHappyHorseReferenceLimits(options.model) || HAPPYHORSE_REFERENCE_LIMITS,
6814
+ },
6815
+ });
6816
+ }
6817
+ throw err;
6818
+ }
6819
+ }
6820
+
6559
6821
  function resolveMultiAngleOutputConfig(outputPath, outputFormat) {
6560
6822
  if (!outputPath) return null;
6561
6823
  const ext = extname(outputPath);
@@ -8197,16 +8459,26 @@ async function main() {
8197
8459
  if (options.refVideo) log(`Reference video: ${options.refVideo}`);
8198
8460
 
8199
8461
  const isSeedanceVideo = isSeedanceModel(options.model);
8462
+ const isHappyHorseVideo = isHappyHorseModel(options.model);
8463
+ // Vendor video models forward image references as HTTPS URL arrays (or
8464
+ // Sogni-hosted uploads) instead of inline buffers; HappyHorse takes
8465
+ // image-only references (i2v first_frame, r2v reference_image).
8466
+ const isVendorReferenceVideo = isSeedanceVideo || isHappyHorseVideo;
8200
8467
  if (isSeedanceVideo) {
8201
8468
  // Source of truth: @sogni-ai/sogni-protocol catalogs/seedance-reference-limits.json
8202
8469
  // surfaced through @sogni-ai/sogni-intelligence-client/tools.
8203
8470
  enforceSeedanceReferenceCaps();
8204
8471
  }
8472
+ if (isHappyHorseVideo) {
8473
+ // Source of truth: @sogni-ai/sogni-intelligence-client/tools
8474
+ // HAPPYHORSE_REFERENCE_LIMITS (per-mode image-only caps).
8475
+ enforceHappyHorseReferenceCaps();
8476
+ }
8205
8477
  const seedanceReferenceImageUrls = [];
8206
8478
  const seedanceReferenceVideoUrls = [];
8207
8479
  const seedanceReferenceAudioUrls = [];
8208
- const useRefImageUrl = isSeedanceVideo && await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, options.refImage, 'Reference image');
8209
- const useRefImageEndUrl = isSeedanceVideo && await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, options.refImageEnd, 'End reference image');
8480
+ const useRefImageUrl = isVendorReferenceVideo && await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, options.refImage, 'Reference image');
8481
+ const useRefImageEndUrl = isVendorReferenceVideo && await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, options.refImageEnd, 'End reference image');
8210
8482
  const refAudioFormatByPath = options.refAudio
8211
8483
  ? detectReferenceAudioFormat(
8212
8484
  new Uint8Array(),
@@ -8250,19 +8522,19 @@ async function main() {
8250
8522
  }
8251
8523
  }
8252
8524
 
8253
- // Seedance loose-reference extras: -c/--context images beyond start/end,
8254
- // plus repeated --ref-audio / --ref-video entries past the first. The
8255
- // Sogni Client SDK accepts only URL arrays for these (createJobRequestMessage),
8256
- // so each entry must resolve to an HTTPS URL. HTTPS inputs are forwarded as-is
8257
- // (SSRF-validated); local files are uploaded to a Sogni-hosted URL first, the
8258
- // same way the primary --ref-audio / --ref-video locals are handled. This lets
8259
- // `-c <local image>` work in direct generation without a detour through
8260
- // --api-chat / --durable-chat.
8261
- if (isSeedanceVideo) {
8525
+ // Vendor loose image references: -c/--context images beyond start/end.
8526
+ // The Sogni Client SDK accepts only URL arrays for these
8527
+ // (createJobRequestMessage), so each entry must resolve to an HTTPS URL.
8528
+ // HTTPS inputs are forwarded as-is (SSRF-validated); local files are
8529
+ // uploaded to a Sogni-hosted URL first. This lets `-c <local image>` work
8530
+ // in direct generation without a detour through --api-chat / --durable-chat.
8531
+ // Seedance treats these as @ImageN loose refs; HappyHorse r2v treats them
8532
+ // as reference_image inputs (up to 9).
8533
+ if (isVendorReferenceVideo) {
8262
8534
  for (const [ctxIndex, ctxImage] of (Array.isArray(options.contextImages) ? options.contextImages : []).entries()) {
8263
8535
  if (!ctxImage) continue;
8264
8536
  if (isHttpsUrl(ctxImage)) {
8265
- await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, ctxImage, 'Seedance image reference');
8537
+ await appendSafeSeedanceReferenceUrl(seedanceReferenceImageUrls, ctxImage, 'Image reference');
8266
8538
  } else {
8267
8539
  const uploadedImageUrl = await uploadSeedanceReferenceImageUrl(
8268
8540
  ctxImage,
@@ -8272,6 +8544,10 @@ async function main() {
8272
8544
  seedanceReferenceImageUrls.push(uploadedImageUrl);
8273
8545
  }
8274
8546
  }
8547
+ }
8548
+ // Seedance-only loose extras: repeated --ref-audio / --ref-video entries
8549
+ // past the first. HappyHorse takes no reference audio or video.
8550
+ if (isSeedanceVideo) {
8275
8551
  for (const [extraAudioIndex, extraAudio] of options.refAudios.entries()) {
8276
8552
  if (!isHttpsUrl(extraAudio)) {
8277
8553
  fatalCliError(
@@ -8439,7 +8715,9 @@ async function main() {
8439
8715
  if (options.seed !== null && options.seed !== undefined) {
8440
8716
  projectConfig.seed = options.seed;
8441
8717
  }
8442
- if (Number.isFinite(steps)) {
8718
+ if (Number.isFinite(steps) && !isHappyHorseVideo) {
8719
+ // HappyHorse routes through the vendor-job path and ignores `steps`,
8720
+ // mirroring Seedance (whose model defaults already omit them).
8443
8721
  projectConfig.steps = steps;
8444
8722
  }
8445
8723
  if (guidance !== null && guidance !== undefined) {
@@ -9099,7 +9377,7 @@ async function main() {
9099
9377
  success: false,
9100
9378
  error: error.message,
9101
9379
  prompt: options.prompt ?? null
9102
- }, error);
9380
+ }, error, { modelId: options.model });
9103
9381
  if (error.code) payload.errorCode = error.code;
9104
9382
  if (error.details) payload.errorDetails = error.details;
9105
9383
  // Don't let a stale per-error hint overwrite the canonical
@@ -9134,10 +9412,10 @@ async function main() {
9134
9412
  if (IS_OPENCLAW_INVOCATION) payload.openclaw = true;
9135
9413
  console.log(JSON.stringify(payload));
9136
9414
  if (!options.json) {
9137
- printHumanError(error);
9415
+ printHumanError(error, { modelId: options.model });
9138
9416
  }
9139
9417
  } else {
9140
- printHumanError(error);
9418
+ printHumanError(error, { modelId: options.model });
9141
9419
  }
9142
9420
  } finally {
9143
9421
  try {
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.6.4';
1
+ export const PACKAGE_VERSION = '3.8.0';