@sogni-ai/sogni-creative-agent-skill 3.31.1 → 3.33.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/.agents/skills/sogni-creative-agent-skill/SKILL.md +113 -0
- package/.agents/skills/sogni-creative-agent-skill/references/hosted-api.md +227 -0
- package/.agents/skills/sogni-creative-agent-skill/references/image-prompting.md +61 -0
- package/.agents/skills/sogni-creative-agent-skill/references/krea2-loras.md +178 -0
- package/.agents/skills/sogni-creative-agent-skill/references/loop-maker.md +192 -0
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +633 -0
- package/.agents/skills/sogni-creative-agent-skill/references/personas-memory.md +124 -0
- package/.agents/skills/sogni-creative-agent-skill/references/private-mature-video.md +118 -0
- package/.agents/skills/sogni-creative-agent-skill/references/seamless-tiling.md +108 -0
- package/.agents/skills/sogni-creative-agent-skill/references/video-editing.md +262 -0
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +481 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +37 -0
- package/README.md +27 -5
- package/SKILL.md +18 -6
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +4 -4
- package/llm.txt +5 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -3
- package/references/hosted-api.md +6 -1
- package/references/image-prompting.md +61 -0
- package/references/krea2-loras.md +178 -0
- package/references/models.md +19 -4
- package/references/video-prompting.md +24 -0
- package/scripts/check-version-sync.mjs +4 -0
- package/scripts/sync-hermes-skill.mjs +35 -0
- package/scripts/sync-version.mjs +11 -1
- package/skill-package.json +1 -1
- package/skills/image_editing.md +2 -2
- package/sogni-agent.mjs +410 -37
- package/version.mjs +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sogni-creative-agent-skill
|
|
3
|
+
description: "Generate and edit images, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, apply a saved identity, or refine an earlier Sogni result."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "3.33.0"
|
|
7
|
+
author: Sogni AI
|
|
8
|
+
hermes:
|
|
9
|
+
category: creative
|
|
10
|
+
tags:
|
|
11
|
+
- sogni
|
|
12
|
+
- image-generation
|
|
13
|
+
- image-editing
|
|
14
|
+
- video-generation
|
|
15
|
+
- music-generation
|
|
16
|
+
- creative-media
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Sogni Creative Agent for Hermes
|
|
20
|
+
|
|
21
|
+
Generate images, video, and music through Sogni AI's decentralized GPU network.
|
|
22
|
+
|
|
23
|
+
Invoke `sogni-agent-hermes` for every command in this skill. Fall back to
|
|
24
|
+
`sogni-agent` only when the Hermes launcher is not on `PATH`. The two commands
|
|
25
|
+
have identical flags and output; the Hermes launcher adds host attribution.
|
|
26
|
+
|
|
27
|
+
## Set up the CLI
|
|
28
|
+
|
|
29
|
+
Only perform setup when the user asks to install or upgrade the skill, or when
|
|
30
|
+
a command fails because the CLI is missing.
|
|
31
|
+
|
|
32
|
+
1. Install the CLI:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install -g @sogni-ai/sogni-creative-agent-skill@latest
|
|
36
|
+
sogni-agent-hermes --version
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
2. Ask the user to get an API key from https://dashboard.sogni.ai by opening
|
|
40
|
+
the account menu. Accept either `SOGNI_API_KEY` in the environment or the
|
|
41
|
+
credentials file `~/.config/sogni/credentials` containing
|
|
42
|
+
`SOGNI_API_KEY=<key>`. Never echo, log, commit, or embed the key in generated
|
|
43
|
+
files.
|
|
44
|
+
3. Run `sogni-agent-hermes doctor --json` after installation or upgrade and
|
|
45
|
+
confirm that `success` is `true`. Do not run `doctor` as a routine preflight;
|
|
46
|
+
normal generation commands perform their own checks.
|
|
47
|
+
|
|
48
|
+
## Execute requests
|
|
49
|
+
|
|
50
|
+
- Save final media in the user's current working directory unless they request
|
|
51
|
+
another destination. Never put final output in `/tmp`.
|
|
52
|
+
- Use paths the user supplied. If an agent host exposes inbound attachments,
|
|
53
|
+
run `sogni-agent-hermes --json --list-media` instead of guessing filenames.
|
|
54
|
+
- Honor an explicitly requested model. Otherwise use the CLI defaults and
|
|
55
|
+
consult [models.md](references/models.md) only when model selection matters.
|
|
56
|
+
- Plan multi-step work in Hermes, then invoke the focused CLI command. Use the
|
|
57
|
+
hosted workflow API only when its durable orchestration or replay behavior is
|
|
58
|
+
useful.
|
|
59
|
+
- Parse `--json` output when subsequent steps need exact job IDs, paths, URLs,
|
|
60
|
+
costs, or error fields.
|
|
61
|
+
- Return the final local path and the important render settings. On failure,
|
|
62
|
+
preserve the CLI's error and actionable recovery hint.
|
|
63
|
+
|
|
64
|
+
## Common commands
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Generate or edit an image
|
|
68
|
+
sogni-agent-hermes -o ./image.png "cinematic moonlit mountain lake"
|
|
69
|
+
sogni-agent-hermes -c ./source.png -o ./edited.png "make it night; add fireflies"
|
|
70
|
+
|
|
71
|
+
# Promptless RTX VSR upscale
|
|
72
|
+
sogni-agent-hermes --upscale ./source.png -o ./upscaled.png
|
|
73
|
+
|
|
74
|
+
# Generate or animate video
|
|
75
|
+
sogni-agent-hermes --video -o ./video.mp4 "a paper dragon takes flight"
|
|
76
|
+
sogni-agent-hermes --video --ref ./start.png -o ./animated.mp4 "slow camera push-in"
|
|
77
|
+
sogni-agent-hermes --video --ref ./first.png --ref-end ./last.png -o ./transition.mp4 "smooth transformation"
|
|
78
|
+
|
|
79
|
+
# Generate music
|
|
80
|
+
sogni-agent-hermes --music -o ./soundtrack.mp3 "30-second ambient synth theme"
|
|
81
|
+
|
|
82
|
+
# Inspect state and available media
|
|
83
|
+
sogni-agent-hermes --last --json
|
|
84
|
+
sogni-agent-hermes --json --list-media
|
|
85
|
+
sogni-agent-hermes --help
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Load detailed guidance only when needed
|
|
89
|
+
|
|
90
|
+
- Model choice, quality tiers, Krea identity edits, and video aliases: read
|
|
91
|
+
[models.md](references/models.md).
|
|
92
|
+
- Krea 2 LoRA ids, strength ranges, bipolar sliders, and stacking up to 8 in
|
|
93
|
+
one render: read [krea2-loras.md](references/krea2-loras.md).
|
|
94
|
+
- Video prompts, reference roles, LTX, WAN, MiniMax, Seedance, and HappyHorse:
|
|
95
|
+
read [video-prompting.md](references/video-prompting.md).
|
|
96
|
+
- Prompt-only image deliverables for SD/SDXL, FLUX/Chroma, Krea 2, Qwen,
|
|
97
|
+
Z-Image, GPT Image, and model-specific editing: read
|
|
98
|
+
[image-prompting.md](references/image-prompting.md).
|
|
99
|
+
- Local video cutting, stitching, overlays, subtitles, audio remixing, and
|
|
100
|
+
verification: read [video-editing.md](references/video-editing.md).
|
|
101
|
+
- Saved identities, reusable assets, memory, and personality: read
|
|
102
|
+
[personas-memory.md](references/personas-memory.md).
|
|
103
|
+
- Hosted chat, durable workflows, structured contracts, and replay records:
|
|
104
|
+
read [hosted-api.md](references/hosted-api.md).
|
|
105
|
+
- Turning an image folder into a deduplicated, music-backed seamless reel:
|
|
106
|
+
read [loop-maker.md](references/loop-maker.md) completely before starting.
|
|
107
|
+
- Seamless textures or tiles: read
|
|
108
|
+
[seamless-tiling.md](references/seamless-tiling.md).
|
|
109
|
+
- Explicit private/adult video requests: read
|
|
110
|
+
[private-mature-video.md](references/private-mature-video.md) and follow its
|
|
111
|
+
eligibility and prompting rules.
|
|
112
|
+
|
|
113
|
+
Where a reference says `sogni-agent`, substitute `sogni-agent-hermes`.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Hosted Sogni Intelligence API Modes
|
|
2
|
+
|
|
3
|
+
Read this when a request should be planned, multi-step, resumable, or
|
|
4
|
+
server-orchestrated: `--api-chat`, `--durable-chat`, `--api-workflow`,
|
|
5
|
+
workflow templates, replay records, and the hosted tool surfaces.
|
|
6
|
+
All hosted modes require `SOGNI_API_KEY`.
|
|
7
|
+
|
|
8
|
+
## When to prefer the hosted path
|
|
9
|
+
|
|
10
|
+
The thing calling this API is usually a frontier LLM that is **more capable
|
|
11
|
+
than Sogni's hosted planning model**. So the default split is: *you* do the
|
|
12
|
+
planning and tool selection, and the hosted endpoints do what only the server
|
|
13
|
+
can — run on the GPU network, persist assets/manifests, orchestrate durable
|
|
14
|
+
multi-step runs with replay, and apply Structured Contracts v1 (gating
|
|
15
|
+
policies, repair recipes, prompt contracts). Routing a request through
|
|
16
|
+
`--api-chat` so a weaker model re-plans it is usually a downgrade; reach for the
|
|
17
|
+
hosted *planner* deliberately, not by default.
|
|
18
|
+
|
|
19
|
+
- **You already know the single tool + args** → direct-to-SDK flags. Lowest
|
|
20
|
+
latency/cost, no LLM round-trip.
|
|
21
|
+
- **Multi-step, durable, resumable** → `--api-workflow` with an explicit
|
|
22
|
+
`--workflow-input` step graph that *you* author (`steps[]` with `toolName`,
|
|
23
|
+
`arguments`, and `dependsOn` bindings). The server executes and repairs it
|
|
24
|
+
deterministically with replay/resumability and **no hosted-LLM re-planning**.
|
|
25
|
+
This is the best fit when a frontier client drives the work.
|
|
26
|
+
- **You want the hosted model to own a long loop** → `--api-chat` /
|
|
27
|
+
`--durable-chat`. Worth it when offloading a long async tool loop server-side
|
|
28
|
+
saves client round-trips, when structured-contract repair should govern, or
|
|
29
|
+
when several local files must be uploaded for one turn (only supported here).
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# You author the exact durable plan; the server executes it (no hosted re-planning)
|
|
33
|
+
sogni-agent --api-workflow --workflow-input @plan.json
|
|
34
|
+
|
|
35
|
+
# Storyboard → GPT Image 2 sheet → Seedance, all server-side (preset plan)
|
|
36
|
+
sogni-agent --api-workflow storyboard-video --storyboard-frames 6 -Q hq \
|
|
37
|
+
"Create a 9:16 bakery launch video with a neon street-window reveal"
|
|
38
|
+
|
|
39
|
+
# Deliberately hand planning to the hosted model (long async job / multi local-file upload)
|
|
40
|
+
sogni-agent --api-chat "Turn the attached product photo into a launch poster" --ref product.jpg
|
|
41
|
+
|
|
42
|
+
# Durable hosted chat run (persisted event log + SSE stream)
|
|
43
|
+
SOGNI_SKILL_USE_SDK_TRANSPORT=1 sogni-agent --durable-chat \
|
|
44
|
+
"Create a four-shot launch campaign, generate the key art, and animate the hero clip"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The direct-to-SDK flags remain the right call for explicit one-shot generation
|
|
48
|
+
when you already know the exact model, dimensions, and prompt — use them
|
|
49
|
+
whenever latency or cost rules out an LLM round-trip.
|
|
50
|
+
|
|
51
|
+
## --api-chat (`POST /v1/chat/completions`)
|
|
52
|
+
|
|
53
|
+
Text-first natural-language workflows through Sogni API's OpenAI-compatible
|
|
54
|
+
loop. The public REST body uses snake_case controls such as `tool_choice`,
|
|
55
|
+
`response_format`, `task_profile`, `token_type`, `app_source`,
|
|
56
|
+
`media_references`, `chat_template_kwargs`, `sogni_tools`, and
|
|
57
|
+
`sogni_tool_execution`. The endpoint normalizes OpenAI `developer` messages to
|
|
58
|
+
`system`; when a developer message is present and no explicit `task_profile`
|
|
59
|
+
is supplied, the server treats the task as `coding`. The CLI sanitizes
|
|
60
|
+
prompt-injection markers before forwarding messages and sends API-key auth so
|
|
61
|
+
hosted Sogni tools can execute server-side.
|
|
62
|
+
|
|
63
|
+
Tune with `--api-tools creative-agent|creative-tools|none`,
|
|
64
|
+
`--no-api-tool-execution`, `--llm-model <id>`, `--system <text>`,
|
|
65
|
+
`--task-profile general|coding|reasoning`, `--max-tokens <n>`, and
|
|
66
|
+
`--thinking` / `--no-thinking` (forwarded as
|
|
67
|
+
`chat_template_kwargs.enable_thinking`; hosted Qwen may normalize thinking
|
|
68
|
+
server-side, so do not rely on `--no-thinking` as a hard suppression switch).
|
|
69
|
+
|
|
70
|
+
### Hosted tool surfaces (`sogni_tools`)
|
|
71
|
+
|
|
72
|
+
- `creative-tools` — the public API default when `sogni_tools` is omitted or
|
|
73
|
+
true. Generation/editing tools (`generate_image`, `generate_video`,
|
|
74
|
+
`generate_music`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
|
|
75
|
+
`refine_result`, `animate_photo`, `change_angle`, `video_to_video`,
|
|
76
|
+
`stitch_video`, `orbit_video`, `dance_montage`, `sound_to_video`,
|
|
77
|
+
`extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles`),
|
|
78
|
+
media-analysis tools (`analyze_image`, `analyze_video`, `extract_metadata`),
|
|
79
|
+
and lightweight composition tools (`enhance_prompt`, `compose_lyrics`,
|
|
80
|
+
`compose_instrumental`, `compose_script`).
|
|
81
|
+
- `creative-agent` — this CLI's default for `--api-chat`. Includes
|
|
82
|
+
`creative-tools` plus session-control tools (`ask_clarifying_question`,
|
|
83
|
+
`finalize_response`), asset-manifest tools (`create_asset_manifest`,
|
|
84
|
+
`inspect_asset`, `label_asset`, `map_assets_for_model`,
|
|
85
|
+
`validate_asset_references`), and durable planning tools
|
|
86
|
+
(`compose_workflow`, `compose_workflow_template`). Use this surface when the
|
|
87
|
+
model should design one-shot workflow plans, draft savable workflow
|
|
88
|
+
templates, or maintain stable asset references across a multi-step turn.
|
|
89
|
+
- `none` — disables Sogni tool injection, leaving only caller-supplied OpenAI
|
|
90
|
+
tools on raw API/SDK requests. In the CLI, combine with
|
|
91
|
+
`--no-api-tool-execution` for text-only planning.
|
|
92
|
+
|
|
93
|
+
For a pure resolution increase, call `upscale_image` with one source image and
|
|
94
|
+
either `scale: 2|3|4` or `targetLongestEdge`. Use `7680` for 8K or `15360` for
|
|
95
|
+
16K. The promptless NVIDIA RTX VSR path preserves the source aspect ratio,
|
|
96
|
+
aligns both output edges to 8px, and returns JPG when the target exceeds 8K.
|
|
97
|
+
|
|
98
|
+
## --durable-chat (`POST /v1/chat/runs`)
|
|
99
|
+
|
|
100
|
+
Long-running, LLM-in-the-loop turns persisted as chat-run records instead of a
|
|
101
|
+
single completion request. Chat runs keep an event log, stream via
|
|
102
|
+
`/v1/chat/runs/:id/events/stream`, support cancellation, and can pause for
|
|
103
|
+
persisted cost approval (`/v1/chat/runs/:id/confirm-cost`) in first-party
|
|
104
|
+
clients. Requires `SOGNI_SKILL_USE_SDK_TRANSPORT=1`. The CLI streams assistant
|
|
105
|
+
deltas plus de-duplicated per-job progress / ETA / result lines from hosted
|
|
106
|
+
run events. The SDK exposes `sogni.chat.runs.{create, get, cancel,
|
|
107
|
+
streamEvents}`.
|
|
108
|
+
|
|
109
|
+
## --api-workflow (`POST /v1/creative-agent/workflows`)
|
|
110
|
+
|
|
111
|
+
Durable, async workflow records with event streaming and cancellation. The
|
|
112
|
+
API accepts either an inline durable plan (`input.steps`) or a saved workflow
|
|
113
|
+
template invocation (`workflow_id` plus `inputs`) and rejects requests that
|
|
114
|
+
provide both. The CLI's generated-keyframe and `storyboard-video` presets
|
|
115
|
+
submit inline `input.steps`; `--workflow-input <json|@path>` supplies the
|
|
116
|
+
`input` object directly (use `@path` to load from a file).
|
|
117
|
+
|
|
118
|
+
- Saved template CRUD lives at `/v1/creative-agent/workflows/templates`; run a
|
|
119
|
+
saved template later with `workflow_id + inputs`. Draft savable templates
|
|
120
|
+
with `compose_workflow_template` through `--api-chat` — the caller persists
|
|
121
|
+
the returned `template_draft`.
|
|
122
|
+
- Exact multi-step plans should use explicit step dependencies, including
|
|
123
|
+
`replace_video_segment` steps with bounded `replacementStartSeconds` /
|
|
124
|
+
`replacementEndSeconds` when interleaving existing video slices. Workflow
|
|
125
|
+
JSON can bind request media into step arguments with
|
|
126
|
+
`sourceStepId: "$input_media"`.
|
|
127
|
+
- `--api-workflow storyboard-video` generates a storyline, creates one GPT
|
|
128
|
+
Image 2 storyboard sheet, then feeds that artifact into Seedance as the
|
|
129
|
+
video reference. `-Q fast|hq|pro` maps to GPT Image 2 low|medium|high
|
|
130
|
+
quality for the storyboard sheet.
|
|
131
|
+
- Cost controls: `--workflow-max-cost <n>` rejects workflow starts above a
|
|
132
|
+
capacity-unit ceiling; `--confirm-cost` / `--no-confirm-cost` forward
|
|
133
|
+
explicit billing confirmation. Use `--workflow-idempotency-key <key>` when
|
|
134
|
+
retrying a start request.
|
|
135
|
+
- Manage runs with `--watch-workflow`, `--list-workflows`,
|
|
136
|
+
`--get-workflow <id>`, `--workflow-events <id>`, `--stream-workflow <id>`,
|
|
137
|
+
`--cancel-workflow <id>`, `--resume-workflow <id>`. In `--json` mode, SSE
|
|
138
|
+
progress frames stream to stderr so stdout stays a single JSON object.
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Durable workflow with a media reference and a cost ceiling
|
|
142
|
+
sogni-agent --api-workflow --ref https://cdn.example.com/sketch.png \
|
|
143
|
+
--workflow-max-cost 25 --confirm-cost \
|
|
144
|
+
--video-prompt "The camera slowly pushes in as the sketch comes alive" \
|
|
145
|
+
"Animate the referenced sketch"
|
|
146
|
+
|
|
147
|
+
# Exact durable workflow input
|
|
148
|
+
sogni-agent --api-workflow --workflow-input @workflow.json \
|
|
149
|
+
--workflow-idempotency-key product-teaser-v1
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Media references in hosted modes
|
|
153
|
+
|
|
154
|
+
Hosted API requests forward media references from `-c`, `--ref`, `--ref-end`,
|
|
155
|
+
`--ref-audio`, `--reference-audio-identity`, and `--ref-video` as
|
|
156
|
+
`media_references` metadata. `--ref-audio` and `--ref-video` are repeatable in
|
|
157
|
+
api-chat / durable-chat mode — each entry uploads independently and is exposed
|
|
158
|
+
to the hosted LLM as `@Audio1` / `@Audio2` / `@Video1` etc. API chat also
|
|
159
|
+
attaches image refs as vision inputs. Local file references are uploaded to
|
|
160
|
+
Sogni media storage first, then forwarded as retrievable URLs so durable
|
|
161
|
+
executors do not depend on `data:` URI support. **Use direct CLI mode for
|
|
162
|
+
private media that must not leave the local machine.**
|
|
163
|
+
|
|
164
|
+
## Seedance reference modes (mutually exclusive)
|
|
165
|
+
|
|
166
|
+
When `--video -m seedance2`, `-m seedance2-mini`, `-m seedance2-fast`, or
|
|
167
|
+
`-m seedance2-5` is selected, pick one mode per video request:
|
|
168
|
+
|
|
169
|
+
- **Dedicated frame mode — `--ref` and/or `--ref-end`.** First-class
|
|
170
|
+
first-frame / last-frame anchoring; the Seedance worker pins them as
|
|
171
|
+
parameter-mode firstFrame / lastFrame. Max 2 images.
|
|
172
|
+
- **Loose reference mode — `-c/--context` plus optional `--ref-audio` and
|
|
173
|
+
`--ref-video` extras.** Anchor frame intent in the prompt with `@Image1` /
|
|
174
|
+
`@Video1` / `@Audio1` etc. (e.g. *"Use @Image1 as the opening shot
|
|
175
|
+
reference"*). Each `-c/--context` image may be a **local file or an HTTPS
|
|
176
|
+
URL** (PNG, JPEG, WebP, or GIF) — local files are uploaded to Sogni media
|
|
177
|
+
storage automatically, so you do **not** need `--api-chat` / `--durable-chat`
|
|
178
|
+
just to attach a local loose-reference image. The 2.0 family supports up to
|
|
179
|
+
9 image refs, 3 video refs, 3 audio refs, and 12 total reference assets per
|
|
180
|
+
request; `seedance2-5` raises the caps to 30 image / 10 video / 10 audio /
|
|
181
|
+
50 total (canonical per-model caps come from `SEEDANCE_REFERENCE_LIMITS` /
|
|
182
|
+
`validateSeedanceReferenceCounts()` in
|
|
183
|
+
`@sogni-ai/sogni-intelligence-client/tools`).
|
|
184
|
+
|
|
185
|
+
Combining `--ref` / `--ref-end` with `-c/--context` on Seedance is rejected
|
|
186
|
+
client-side with an error pointing at the correct mode. In CLI direct-gen mode,
|
|
187
|
+
local `-c/--context` images and the primary `--ref-audio` / `--ref-video` are
|
|
188
|
+
uploaded to Sogni media storage automatically and forwarded as HTTPS URLs; only
|
|
189
|
+
*additional* `--ref-audio` / `--ref-video` entries beyond the first must already
|
|
190
|
+
be HTTPS URLs (use `--api-chat` / `--durable-chat` when you need to attach
|
|
191
|
+
several local audio or video files in one request). Seedance accepts public
|
|
192
|
+
HTTPS image, video, and audio references that pass the CLI URL safety checks;
|
|
193
|
+
localhost and private-network URLs are rejected before forwarding. Audio
|
|
194
|
+
references must be paired with an image or video reference.
|
|
195
|
+
|
|
196
|
+
## Models, replays, and contract debugging
|
|
197
|
+
|
|
198
|
+
- `--list-api-models` / `--get-api-model <id>` inspect `/v1/models`.
|
|
199
|
+
- `--list-replays [n]`, `--get-replay <id>`, `--ingest-replay <json|@path>`
|
|
200
|
+
manage `/v1/replay/records` RunRecords for replay/debug viewers. List/get
|
|
201
|
+
output is run through `redactRunRecord` before printing, so signed URLs,
|
|
202
|
+
bearer tokens, JWTs, and PEM blocks cannot leak via the CLI.
|
|
203
|
+
`--skip-redact` / `--no-redact` bypass redaction (debug-only).
|
|
204
|
+
- `--turn-classify`, `--compile-tools`, `--dispatch-tool <name>` (+
|
|
205
|
+
`--tool-args <json>`) print the public-skill Structured Contracts v1
|
|
206
|
+
verdicts (turn policy, compiled tool surface, dispatch verdict) the default
|
|
207
|
+
contract runtime would produce.
|
|
208
|
+
- `--storyboard-plan` builds a storyboard project locally
|
|
209
|
+
(`buildStoryboardProject` + `compileForModel`) and prints the plan as JSON
|
|
210
|
+
without network calls. It expects scene-structured prompt input
|
|
211
|
+
(`SCENE NN - Title` / `VISUAL:` / `ACTION:` / `CAMERA:` / `AUDIO/SFX:`
|
|
212
|
+
blocks) — for casual prompts use `--api-workflow storyboard-video`, which
|
|
213
|
+
runs an LLM storyline expansion first. Pair with
|
|
214
|
+
`--storyboard-plan-frames`, `--storyboard-plan-model` (seedance, seedance2,
|
|
215
|
+
gpt-image-2, ltx23, wan), `--storyboard-plan-stage` (storyboard_image,
|
|
216
|
+
scene_clip).
|
|
217
|
+
|
|
218
|
+
## Endpoint safety
|
|
219
|
+
|
|
220
|
+
Override the API origin with `--api-base-url`, `SOGNI_API_BASE_URL`, or
|
|
221
|
+
`SOGNI_REST_ENDPOINT`. Hosted API credentials are only sent to
|
|
222
|
+
`https://api.sogni.ai` by default. Add trusted custom hosts with
|
|
223
|
+
`SOGNI_API_ALLOWED_HOSTS`; loopback or non-HTTPS local testing requires
|
|
224
|
+
`SOGNI_ALLOW_UNSAFE_API_BASE_URL=1`. With `SOGNI_SKILL_USE_SDK_TRANSPORT=1`,
|
|
225
|
+
hosted workflow + chat operations route through the SDK transport; the skill's
|
|
226
|
+
`sogni-hosted-client.mjs` factory still validates `restEndpoint` /
|
|
227
|
+
`socketEndpoint` against the SSRF guard before constructing the SDK client.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Image Prompt Authoring Guide
|
|
2
|
+
|
|
3
|
+
Use this guide only when the creator asks for prompt text as the deliverable. A
|
|
4
|
+
prompt-only request does not authorize a render. Require both the exact target
|
|
5
|
+
model/version and the operation (`generate` or `edit`). If either is missing,
|
|
6
|
+
ask for it. If the exact pair is not registered, report that limitation; never
|
|
7
|
+
substitute a generic image prompt or another model's format.
|
|
8
|
+
|
|
9
|
+
## Output contracts by family
|
|
10
|
+
|
|
11
|
+
| Target family | Native prompt shape | Output envelope |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| SD 1.5 | Weighted or comma-separated tags; quality/medium, subject, environment, lighting/camera | `positive_prompt:` plus `negative_prompt:` |
|
|
14
|
+
| SDXL | Hybrid natural language plus selective comma-separated style/quality terms; Pony variants start with their score tags | `positive_prompt:` plus `negative_prompt:` |
|
|
15
|
+
| FLUX / Chroma | One coherent natural-language visual description; exact visible text in quotes; no SD score/tag soup | Prompt text only; FLUX.2 has no negative-prompt field |
|
|
16
|
+
| Krea 2 / Krea 2 Turbo | Dense, fluent rich caption emphasizing observable composition, palette, light, texture, and atmosphere; no SD weighting syntax | Prompt text only |
|
|
17
|
+
| Qwen Image 2512 | Detailed natural-language description with explicit spatial relationships and exact quoted typography | `positive_prompt:` plus `negative_prompt:` |
|
|
18
|
+
| Z-Image | Compact instruction-aware natural-language caption | Foundation model: positive plus negative; Turbo: prompt text only |
|
|
19
|
+
| GPT Image 2 | Direct natural-language creative direction with explicit layout, hierarchy, and exact quoted copy | Prompt text only |
|
|
20
|
+
| Qwen / Krea / FLUX / GPT edits | A direct delta instruction: what changes, what remains fixed, and the ordered role of each reference | Prompt text only |
|
|
21
|
+
|
|
22
|
+
The two-field envelope is exact: return two non-empty single lines in this
|
|
23
|
+
order and nothing else:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
positive_prompt: <model-ready positive prompt>
|
|
27
|
+
negative_prompt: <model-native exclusions and relevant failure modes>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Prompt-only families return the directly runnable prompt with no label,
|
|
31
|
+
Markdown fence, preamble, explanation, or render offer.
|
|
32
|
+
|
|
33
|
+
## Selector and operation discipline
|
|
34
|
+
|
|
35
|
+
- Treat a model selector as an exact capability declaration, not a name to
|
|
36
|
+
fuzzy-match into a convenient family. Every selector exposed by
|
|
37
|
+
`generate_image` and `edit_image` must resolve in the shared registry.
|
|
38
|
+
- A family can have different operation profiles. `flux2` and
|
|
39
|
+
`gpt-image-2` support registered generation and edit contracts. A
|
|
40
|
+
generation-only selector such as `flux1-krea` or `krea-2-turbo` must not
|
|
41
|
+
silently accept an edit request.
|
|
42
|
+
- Use `qwen` / `qwen-lightning` as edit selectors and
|
|
43
|
+
`qwen-2512` / `qwen-2512-lightning` as generation selectors.
|
|
44
|
+
- Use `krea-identity-edit` or
|
|
45
|
+
`dark-beast-krea2-identity-edit` for Krea identity edits. Assign
|
|
46
|
+
`context_image_0` as the base and `context_image_1` as the secondary
|
|
47
|
+
identity/outfit/pose/style reference when two inputs are requested.
|
|
48
|
+
- Preserve the creator's subjects, actions, spatial relationships, exact
|
|
49
|
+
visible copy, proper nouns, style, and constraints. Add supporting visual
|
|
50
|
+
detail without inventing extra objects, labels, slogans, characters, or
|
|
51
|
+
story events.
|
|
52
|
+
- Model capability selection comes from typed model and operation metadata.
|
|
53
|
+
Never infer it from sentence-shape regexes or a list of creative keywords.
|
|
54
|
+
|
|
55
|
+
Primary references: [FLUX prompting](https://docs.bfl.ai/guides/prompting_unified_basics),
|
|
56
|
+
[Krea 2 technical report](https://www.krea.ai/blog/krea-2-technical-report),
|
|
57
|
+
[Qwen Image 2512](https://huggingface.co/Qwen/Qwen-Image-2512),
|
|
58
|
+
[Qwen Image Edit 2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511),
|
|
59
|
+
[Z-Image Turbo](https://huggingface.co/Tongyi-MAI/Z-Image-Turbo), and
|
|
60
|
+
[Stability API](https://platform.stability.ai/docs/api-reference).
|
|
61
|
+
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Krea 2 LoRA catalog
|
|
2
|
+
|
|
3
|
+
The 25 LoRAs Sogni publishes for the Krea 2 family. Every one of them works on
|
|
4
|
+
every Krea 2 based model:
|
|
5
|
+
|
|
6
|
+
- `krea2_turbo_fp8_scaled` — Krea 2 Turbo text-to-image
|
|
7
|
+
- `krea2_identity_edit_v1_2` — Krea 2 Identity Edit v1.2
|
|
8
|
+
- `krea2_identity_edit_sogni_v0_3_alpha` — Sogni identity edit alpha
|
|
9
|
+
- `dark_beast_krea2_fp8` — Dark Beast community text-to-image fine-tune
|
|
10
|
+
- `dark_beast_krea2_identity_edit_v1_2` — Dark Beast community identity edit
|
|
11
|
+
|
|
12
|
+
No other model family accepts these IDs.
|
|
13
|
+
|
|
14
|
+
## Live catalog is the source of truth
|
|
15
|
+
|
|
16
|
+
This page is a snapshot. Sogni publishes, retunes, and retires LoRAs without a
|
|
17
|
+
skill release, so read the live catalog before you rely on an exact range:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sogni-agent --list-loras --lora-catalog-model krea2_turbo_fp8_scaled
|
|
21
|
+
sogni-agent --search-loras skin
|
|
22
|
+
sogni-agent --list-loras --lora-category lighting
|
|
23
|
+
sogni-agent --json --list-loras # full contracts, incl. descriptions
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`--list-loras` goes through the SDK's `projects.availableLoras({ modelId })`,
|
|
27
|
+
which reads the same public catalog the web app renders its LoRA browser from
|
|
28
|
+
and applies the model filter server-side. Each row carries the hard range, the
|
|
29
|
+
recommended range, the default, the step, the bipolar direction labels, and the
|
|
30
|
+
creator and license. Results are cached for five minutes.
|
|
31
|
+
|
|
32
|
+
From code, use the SDK directly — the catalog is public, so this needs no
|
|
33
|
+
credentials and no socket:
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
const { loras, models, constraints } = await sogni.projects.availableLoras({
|
|
37
|
+
modelId: 'krea2_turbo_fp8_scaled'
|
|
38
|
+
});
|
|
39
|
+
// loras[] — loraId, name, description, modelIds, ui{min,max,default,step,
|
|
40
|
+
// recommendedMin, recommendedMax, rangeLabels, category,
|
|
41
|
+
// section, nsfw, sexual, creator, sourceUrl, license, examples}
|
|
42
|
+
// models[] — every model id that accepts LoRAs, ignoring the filter
|
|
43
|
+
// constraints — { maxPerRequest: 8, minStrength: -100, maxStrength: 100 }
|
|
44
|
+
|
|
45
|
+
const warmLight = await sogni.projects.getLora('krea2-warm-light');
|
|
46
|
+
if (await sogni.projects.supportsLoras(modelId)) { /* offer a LoRA control */ }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Never hard-code which models take LoRAs or how many stack — `models` and
|
|
50
|
+
`constraints.maxPerRequest` are served so that list stays correct when a LoRA
|
|
51
|
+
ships for a new model.
|
|
52
|
+
|
|
53
|
+
## Applying them
|
|
54
|
+
|
|
55
|
+
Order is significant and strengths are positional — `loraStrengths[i]` applies
|
|
56
|
+
to `loras[i]`:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
sogni-agent -m krea2_turbo_fp8_scaled \
|
|
60
|
+
--lora krea2-detail-enhancer --lora-strength 3 \
|
|
61
|
+
--lora krea2-amateur --lora-strength -2 \
|
|
62
|
+
"candid editorial street portrait at dusk"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
`--loras a,b,c` and `--lora-strengths 1,2,3` are the comma-separated equivalents.
|
|
66
|
+
|
|
67
|
+
They apply to identity edits too — stack a LoRA on a context edit to shift age,
|
|
68
|
+
build, skin, or lighting while the identity LoRA holds the likeness:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
sogni-agent -m krea2_identity_edit_v1_2 -c ./portrait.jpg \
|
|
72
|
+
--lora krea2-age --lora-strength -3 \
|
|
73
|
+
"same person, same outfit and background"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The hosted `generate_image` and `edit_image` tools take the same two arrays under
|
|
77
|
+
`loras` and `loraStrengths`. On `edit_image` they apply only when the model is
|
|
78
|
+
`krea-identity-edit` or `dark-beast-krea2-identity-edit`; Qwen, Flux.2, and GPT
|
|
79
|
+
Image 2 load no LoRAs and the ids are dropped.
|
|
80
|
+
|
|
81
|
+
- Up to 8 LoRAs per render — read `constraints.maxPerRequest` rather than
|
|
82
|
+
assuming; the render pipeline rejects anything over it at submit.
|
|
83
|
+
- Omitted strengths default to 1, which is **not** every LoRA's own default —
|
|
84
|
+
`krea2-chest-firmness`, `krea2-nipple-projection`, and `krea2-height` default
|
|
85
|
+
to 0, and several community fine-tunes default below 1. Pass explicit
|
|
86
|
+
strengths rather than relying on the fallback.
|
|
87
|
+
- Most of these are **bipolar sliders**: negative values apply the inverse
|
|
88
|
+
effect and 0 disables it. Never clamp them to 0-2 — follow the range below.
|
|
89
|
+
- The first render with an uncached LoRA pauses while the worker downloads it.
|
|
90
|
+
|
|
91
|
+
**Safety rule the platform enforces:** `krea2-age` at a negative strength is
|
|
92
|
+
rejected outright when combined with `krea2-mystic-x` or `krea2-realism-engine`
|
|
93
|
+
(the two LoRAs flagged `sexual`). Keep Age at 0 or above in any adult context.
|
|
94
|
+
Only `krea2-aberrant`, `krea2-mystic-x`, and `krea2-realism-engine` are
|
|
95
|
+
mature-gated; the body sliders are not.
|
|
96
|
+
|
|
97
|
+
## Detail and composition
|
|
98
|
+
|
|
99
|
+
| LoRA ID | Name | Range | Recommended | Default | Direction |
|
|
100
|
+
|---------|------|-------|-------------|---------|-----------|
|
|
101
|
+
| `krea2-detail-enhancer` | Detail Enhancer | -5 to 5 | -2 to 5 | 1 | Less Detailed → More Detailed |
|
|
102
|
+
| `krea2-scene-complexity` | Scene Complexity | -10 to 10 | -4 to 4 | 1 | Simpler Scene → More Complex |
|
|
103
|
+
| `krea2-wetness` | Wetness | -3 to 3 | -3 to 3 | 1 | Drier → Wetter |
|
|
104
|
+
| `krea2-skin-detail` | Skin Detail | -10 to 10 | -0.5 to 3 | 1 | Smoother Skin → More Skin Detail |
|
|
105
|
+
| `krea2-zoom` | Zoom | -10 to 10 | -5 to 5 | 1 | Zoomed Out → Zoomed In |
|
|
106
|
+
|
|
107
|
+
## Art direction
|
|
108
|
+
|
|
109
|
+
| LoRA ID | Name | Range | Recommended | Default | Direction |
|
|
110
|
+
|---------|------|-------|-------------|---------|-----------|
|
|
111
|
+
| `krea2-realism` | Illustrated ↔ Realistic | -2 to 2 | -1 to 1 | 1 | More Illustrated → More Photoreal |
|
|
112
|
+
| `krea2-amateur` | Professional ↔ Amateur | -5 to 5 | -2 to 2 | 1 | More Professional → More Amateur |
|
|
113
|
+
| `krea2-candid` | Editorial ↔ Candid | -10 to 10 | 3 to 9 | 3 | More Editorial → More Candid |
|
|
114
|
+
| `krea2-purple-grainy` | Purple Grainy | -2 to 2 | -1 to 1.5 | 1 | Clean & Saturated → Grainy & Muted |
|
|
115
|
+
|
|
116
|
+
## Lighting
|
|
117
|
+
|
|
118
|
+
| LoRA ID | Name | Range | Recommended | Default | Direction |
|
|
119
|
+
|---------|------|-------|-------------|---------|-----------|
|
|
120
|
+
| `krea2-afterlight` | Afterlight | -1.2 to 1.2 | 0.25 to 1.2 | 0.75 | Cooler Light → Golden Afterlight |
|
|
121
|
+
| `krea2-warm-light` | Warm Light | -10 to 10 | -3 to 3 | 1 | Cooler & Darker → Warmer & Golden |
|
|
122
|
+
|
|
123
|
+
## Character
|
|
124
|
+
|
|
125
|
+
| LoRA ID | Name | Range | Recommended | Default | Direction |
|
|
126
|
+
|---------|------|-------|-------------|---------|-----------|
|
|
127
|
+
| `krea2-height` | Height | -5 to 5 | -3 to 3 | 0 | Shorter → Taller |
|
|
128
|
+
| `krea2-weight` | Weight | -3 to 3 | -3 to 3 | 1 | Leaner → Heavier |
|
|
129
|
+
| `krea2-age` | Age | -10 to 10 | -3 to 8 | 1 | Younger → Older |
|
|
130
|
+
| `krea2-skin-tone` | Skin Tone | -4 to 4 | -1.5 to 1.5 | 1 | Lighter Tone → Darker Tone |
|
|
131
|
+
| `krea2-hourglass-figure` | Figure | -1.5 to 1.5 | 0.7 to 1 | 0.8 | Less Hourglass → More Hourglass |
|
|
132
|
+
| `krea2-breast` | Chest Size | -5 to 5 | -2 to 4 | 1 | Smaller Chest → Larger Chest |
|
|
133
|
+
| `krea2-chest-firmness` | Natural Sag → Firm | -8 to 8 | -5 to 5 | 0 | Natural Sag → Firm |
|
|
134
|
+
| `krea2-nipple-projection` | Nipple Flat → Protruding | -10 to 10 | -5 to 5 | 0 | Flat → Protruding |
|
|
135
|
+
|
|
136
|
+
The three chest sliders are anatomy controls that the web app groups under one
|
|
137
|
+
"Chest" section. Apply them only when the creator asks for that adjustment.
|
|
138
|
+
|
|
139
|
+
## Prompt control
|
|
140
|
+
|
|
141
|
+
| LoRA ID | Name | Range | Recommended | Default |
|
|
142
|
+
|---------|------|-------|-------------|---------|
|
|
143
|
+
| `krea2-filter-bypass-2` | Krea2FilterBypass 2vector | 0 to 100 | 1 to 2 | 1 |
|
|
144
|
+
| `krea2-filter-bypass-3` | Krea2FilterBypass 3vector | 0 to 100 | 1 to 2 | 1 |
|
|
145
|
+
|
|
146
|
+
Both steer Krea 2 away from its normalized archetypes — the "resting Krea 2
|
|
147
|
+
face" problem — and improve prompt adherence, expressive emotion, and anatomy.
|
|
148
|
+
Reach for the 2-vector version first and the 3-vector version when it is not
|
|
149
|
+
enough. Use the lowest strength that works; 1, 2, and 100 are the common values,
|
|
150
|
+
and higher values trade image quality for control.
|
|
151
|
+
|
|
152
|
+
## Popular community fine-tunes
|
|
153
|
+
|
|
154
|
+
These are full concept fine-tunes, not sliders. Each carries its own subject and
|
|
155
|
+
style bias, so treat one as a look you build on rather than a finishing pass.
|
|
156
|
+
|
|
157
|
+
| LoRA ID | Name | Range | Recommended | Default | Creator |
|
|
158
|
+
|---------|------|-------|-------------|---------|---------|
|
|
159
|
+
| `krea2-realism-engine` | Realism Engine v3 | 0 to 2 | 0.5 to 1 | 0.8 | razzz |
|
|
160
|
+
| `krea2-bloomgirls` | BloomGirls UltraRealism | 0 to 2 | 0.4 to 1 | 0.8 | coolstrad |
|
|
161
|
+
| `krea2-mystic-x` | Mystic X | 0 to 2 | 0 to 1 | 1 | alcaitiff |
|
|
162
|
+
| `krea2-aberrant` | Aberrant | 0 to 2 | 0.2 to 1.5 | 0.75 | alcaitiff |
|
|
163
|
+
|
|
164
|
+
- **Realism Engine v3** pushes toward photographic realism and carries mature
|
|
165
|
+
subject knowledge the base model lacks. Above ~1.0 skin turns plastic. It
|
|
166
|
+
often pairs well with a filter-bypass LoRA.
|
|
167
|
+
- **BloomGirls** is the polished lifestyle/influencer look: soft bloom, richer
|
|
168
|
+
saturation, smooth skin, close phone-camera framing. It restyles face and hair
|
|
169
|
+
as well as the grade. Trained on the token `bl00m`, which only nudges the
|
|
170
|
+
result. Holds together to ~1.0 on Turbo at 8 steps; smears by 2.0.
|
|
171
|
+
- **Mystic X** is an all-round uncensored adult fine-tune; keep it at or below
|
|
172
|
+
1, and the author recommends euler/beta at 12 steps.
|
|
173
|
+
- **Aberrant** adds industrial body-horror: dirt, scars, and mechanical
|
|
174
|
+
undertones low; fused tissue and rusted metal high.
|
|
175
|
+
|
|
176
|
+
`krea2-mystic-x` and `krea2-realism-engine` are flagged NSFW and sexual in the
|
|
177
|
+
catalog; `krea2-aberrant` is flagged NSFW. Honor the creator's intent and the
|
|
178
|
+
usual mature-content handling when selecting them.
|