Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Enable Fibo text-to-image generation

Bittib9ba7d9fe56d
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 918a84e..ab1f3f7 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -4,11 +4,11 @@ This alpha update adds Prompt video scenes, agent image drafts, Sol attention an
## What's new
-- **Image negative prompts.** MOSS exposes a Negative prompt field below the image root prompt, saved per model with drafts and generated images and applied during local or LAN generation. Fibo Turbo shows the field disabled because its single positive prediction does not support negative prompts. Visibility and support are controlled by model settings. Update LAN workers to protocol 15.
+- **Image negative prompts.** MOSS exposes a Negative prompt field below the image root prompt, saved per model with drafts and generated images and applied during local or LAN generation. Fibo Turbo shows the field disabled because its single positive prediction does not support negative prompts. Visibility and support are controlled by model settings. Update LAN workers to protocol 16.
-- **Fibo 2.0 image editing.** Added an Edit Turbo generator with transformer, Qwen3-VL encoder and Flux2 VAE downloads. Use whole-image, box or lasso edits, or cite up to four images in a new image prompt. Defaults to four steps on CUDA; unsupported video and H3-only controls are disabled.
+- **Fibo 2.0 image editing.** Added an Edit Turbo generator with transformer, Qwen3-VL encoder and Flux2 VAE downloads. Generate directly from a text prompt, use whole-image, box or lasso edits, or cite up to four images in a new image prompt. Defaults to four steps on CUDA; unsupported video and H3-only controls are disabled.
-- **Lasso image edits.** Draw a freehand area beside the existing box tool, give it a prompt in the right panel, and select or move it from the canvas or Scene tree. Saved outlines become antialiased Slopfab masks for local and LAN generation, preserving pixels outside the selection. Bundled runtimes now use API 1.34; LAN workers require the matching update.
+- **Lasso image edits.** Draw a freehand area beside the existing box tool, give it a prompt in the right panel, and select or move it from the canvas or Scene tree. Saved outlines become antialiased Slopfab masks for local and LAN generation, preserving pixels outside the selection. Bundled runtimes now use API 1.36; LAN workers require the matching update.
- **FastH3 Omni.** Renamed First/Last Frame Fast and updated its transformer to the FastH3 Omni eight-step model. Existing bundled settings migrate automatically.
@@ -51,4 +51,4 @@ This alpha update adds Prompt video scenes, agent image drafts, Sol attention an
- Backdrop prompts describe a flat, constant color field in every shot, limit reference guidance to subject appearance, and use neutral studio styling when no look is specified.
- Scene type label tooltips now explain each scene type's behavior.
- Renamed Add reference to Reference browser and centered the agent send and stop buttons.
-- Updated the bundled Windows and Linux SlopFab runtimes to API 1.34 for Fibo, MOSS, native LCS and image masks. LAN worker protocol 14 carries Fibo image-only model configuration; update workers alongside the app.
+- Updated the bundled Windows and Linux SlopFab runtimes to API 1.36 for Fibo, MOSS, native LCS and image masks. LAN worker protocol 16 supports Fibo text-to-image and MOSS negative prompts; update workers alongside the app.
diff --git a/docs/slopfab-compatibility.md b/docs/slopfab-compatibility.md
index b111c4f..46bd74a 100644
--- a/docs/slopfab-compatibility.md
+++ b/docs/slopfab-compatibility.md
@@ -45,7 +45,7 @@ with model weights were not evaluated in this integration.
## MOSS image generation (API 1.30+)
-The bundled Windows and Linux libraries expose SlopFab API 1.34.0, including
+The bundled Windows and Linux libraries expose SlopFab API 1.36.0, including
the MOSS model-family setter introduced in 1.30. Both builds disable FFmpeg.
MOSS uses CUDA/Flash attention, the image VAE slot, and a separate Qwen3.5
tokenizer file. It returns one RGB frame through the existing image save path.
@@ -470,20 +470,20 @@ CUDA/Vulkan numerical output and render performance were not revalidated here.
## Fibo 2.0 (API 1.34)
-The bundled Windows and Linux libraries are updated to Slopfab commit `782397a`
-(API 1.34.0), built with FFmpeg disabled. LAN protocol 14 requires updated workers.
+The bundled Windows and Linux libraries are updated to Slopfab commit `0a902eb`
+(API 1.36.0), built with FFmpeg disabled. LAN protocol 16 requires updated workers.
The `fibo2` model uses the Edit Turbo transformer, Qwen3-VL 4B text encoder and
Flux2 VAE. The tokenizer is embedded, and no audio VAE is needed. The generator
uses CUDA with Flash attention and four steps by default.
-Use a source image with whole-image, box or lasso edits, or cite one to four image
-references in an image prompt. Source edits pass the source only through the
+Generate from text alone, use a source image with whole-image, box or lasso
+edits, or cite up to four image references in a prompt. Source edits pass the source only through the
image-edit API, without duplicating it as a reference. Plain instructions and
optional structured edit JSON pass through without H3 prompt sections. Lasso
outlines use the same native masks as H3, including compound contours.
-Shared model capabilities disable video, text-only generation, extra references
+Shared model capabilities disable video, extra references
on source edits, Zoom, character sheets, LoRAs/refmods, MotionCache, CFG, LCS and
H3 sampling overrides. Native request validation enforces the same constraints
for local and LAN jobs.
@@ -512,3 +512,10 @@ An optional `negativePromptDisabledReason` displays a disabled field with help;
Fibo Turbo uses this because it has no negative prediction branch. H3 hides the
field. Requests with nonempty negative prompts for unsupported models are
rejected at the native boundary.
+
+Fibo text-to-image is enabled in Slopus and the bundled runtime. The runtime
+accepts zero reference images, formats image-free prompts as valid JSON and
+skips vision feature injection when there are no image tokens. Verification
+includes a real Windows CUDA four-step text-only generation, finite RGB output,
+cancellation, and Linux text-only planning. LAN protocol 16 requires workers
+with the same source-free Fibo support.
diff --git a/lib/slopfab/libslopfab.so b/lib/slopfab/libslopfab.so
index acc0dc9..32e4db0 100644
--- a/lib/slopfab/libslopfab.so
+++ b/lib/slopfab/libslopfab.so
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f6e79b432eaa46f4211ee7a89d1628208501564077df2bdc50a1b3073dee5a37
-size 21744880
+oid sha256:1f081aa7f5df98f516361274e1281b90f53a34e1752c05cc956f06c0d3f6f1f2
+size 21851520
diff --git a/lib/slopfab/slopfab.dll b/lib/slopfab/slopfab.dll
index 52ec23d..b2687c0 100644
--- a/lib/slopfab/slopfab.dll
+++ b/lib/slopfab/slopfab.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:21c854abc280a36c427f41ab425847a8dd96d5a3f7de0a1ef187cfcbeeeb566e
-size 18846720
+oid sha256:3885276874930f1522869105acae384963f9755c31dea157ad48ccfabd4736cf
+size 18941440
diff --git a/src-tauri/core/src/slopfab/config.rs b/src-tauri/core/src/slopfab/config.rs
index 7aa0c70..fa60651 100644
--- a/src-tauri/core/src/slopfab/config.rs
+++ b/src-tauri/core/src/slopfab/config.rs
@@ -168,7 +168,7 @@ impl Configuration {
if self.model_type == "fibo2" && (self.animate || request.latent_upscale || request.latent_bridge.is_some()
|| request.continuation_path.is_some() || request.continuation_relative_path.is_some() || request.save_latents_path.is_some()
|| self.attention != "flash2") {
- return Err("Fibo requires Flash attention and image inputs, without H3 video or latent features.".into());
+ return Err("Fibo requires Flash attention, without H3 video or latent features.".into());
}
if !features.image_references && (!request.reference_paths.is_empty() || !request.refmods.is_empty()) {
return Err(format!("{} does not support image references or refmods.", features.label));
diff --git a/src-tauri/core/src/slopfab/tests.rs b/src-tauri/core/src/slopfab/tests.rs
index e1a541d..72395c6 100644
--- a/src-tauri/core/src/slopfab/tests.rs
+++ b/src-tauri/core/src/slopfab/tests.rs
@@ -1635,7 +1635,7 @@ fn fibo_validates_image_inputs_and_rejects_unsupported_h3_controls() {
configuration.model_type = "fibo2".into();
configuration.attention = "flash2";
let mut request = GenerationRequest { still_image: true, frames: 1, steps: 4, prompt: "Make it blue".into(), canvas_width: 512, canvas_height: 512, ..Default::default() };
- assert!(configuration.validate_inputs(&request).unwrap_err().contains("requires a source image"));
+ configuration.validate_inputs(&request).unwrap();
request.reference_paths = vec!["image.png".into(); 4];
configuration.validate_inputs(&request).unwrap();
request.reference_paths.push("extra.png".into());
@@ -1682,3 +1682,19 @@ fn negative_prompts_reach_moss_and_are_rejected_for_other_models() {
assert!(configuration.validate_inputs(&request).unwrap_err().contains("does not support negative prompts"));
}
}
+
+#[test]
+fn fibo_text_only_requests_resolve_without_source_images() {
+ let mut configuration = Configuration::from_settings(&BTreeMap::new());
+ configuration.model_type = "fibo2".into();
+ configuration.attention = "flash2";
+ let api = ffi::Api::load(&configuration.dll_path).unwrap();
+ let request = GenerationRequest { still_image: true, frames: 1, steps: 4, prompt: "A blue vase".into(),
+ canvas_width: 256, canvas_height: 384, ..Default::default() };
+ for purpose in [RequestPurpose::Plan, RequestPurpose::Generate] {
+ let handle = RequestHandle::new(&api).unwrap();
+ configure_request(&api, &handle, &request, &configuration, ComputePlatform::Cuda13, purpose, &ReferenceVideos::default()).unwrap();
+ let plan = api.resolve(&handle).unwrap();
+ assert_eq!((plan.canvas_width, plan.canvas_height, plan.aligned_frames, plan.num_model_evaluations), (256, 384, 1, 4));
+ }
+}
diff --git a/src-tauri/core/src/worker/protocol.rs b/src-tauri/core/src/worker/protocol.rs
index af4d22e..aa8cf4c 100644
--- a/src-tauri/core/src/worker/protocol.rs
+++ b/src-tauri/core/src/worker/protocol.rs
@@ -9,6 +9,7 @@ use std::collections::BTreeMap;
pub const SERVICE_TYPE: &str = "_slopus-worker._tcp.local.";
/// Bumped on any incompatible change to the routes or bodies below.
+// v16 enables Fibo text-to-image; older workers require source images.
// v15 carries image negative prompts; older workers would silently discard them.
// v14 adds Fibo model routing, validation and image-only weights.
// v13 carries compound lasso masks; older workers would discard holes and splits.
@@ -21,7 +22,7 @@ pub const SERVICE_TYPE: &str = "_slopus-worker._tcp.local.";
// v6 added custom upscale weights.
// v5 added overlap locking.
// v4 added SeedVR2 export streams. v3 added inverted image masks.
-pub const PROTOCOL_VERSION: u32 = 15;
+pub const PROTOCOL_VERSION: u32 = 16;
/// Streaming SeedVR2 restoration; model paths are resolved on the worker.
#[derive(Debug, Clone, Serialize, Deserialize)]
diff --git a/src/components/workspace/ImageEditor.test.tsx b/src/components/workspace/ImageEditor.test.tsx
index 2472b8e..7e15097 100644
--- a/src/components/workspace/ImageEditor.test.tsx
+++ b/src/components/workspace/ImageEditor.test.tsx
@@ -65,7 +65,7 @@ it.each(["queued", "generating"] as const)("shows a separate empty %s entry with
expect(current().assets[0]).toEqual(original);
});
-it("requires image input for Fibo, enables editing tools and disables unsupported templates", () => {
+it("allows Fibo text-to-image and editing while disabling unsupported templates", () => {
vi.spyOn(persistence, "isTauri").mockReturnValue(true);
const fibo = { ...fiboImageTemplate(), sources: {}, paths: { transformer: "fibo", textEncoder: "qwen", videoVae: "flux", tokenizer: "", audioVae: "" } };
saveGeneratorTemplateSettings({ templates: [fibo], defaultTemplateId: fibo.id, catalogVersion: 14 });
@@ -73,8 +73,7 @@ it("requires image input for Fibo, enables editing tools and disables unsupporte
initial.imageScene = createImageScene("Make the sky blue");
setup(initial);
expect(screen.getByRole("combobox", { name: "Generator" })).toHaveTextContent("Fibo 2.0 Edit Turbo");
- expect(screen.getByRole("button", { name: "Generate" })).toBeDisabled();
- expect(screen.getByRole("status")).toHaveTextContent("requires one to 4 image references");
+ expect(screen.getByRole("button", { name: "Generate" })).toBeEnabled();
cleanup();
const source = { id: "source", kind: "image" as const, name: "Source", relativePath: "media/source.png", width: 512, height: 512, mimeType: "image/png", createdAt: initial.createdAt };
initial.assets = [source];
diff --git a/src/lib/generatorModels.json b/src/lib/generatorModels.json
index 6174d6d..5be5164 100644
--- a/src/lib/generatorModels.json
+++ b/src/lib/generatorModels.json
@@ -49,7 +49,7 @@
},
"fibo2": {
"label": "Fibo 2.0",
- "description": "Image editing with source or reference images on CUDA",
+ "description": "Text-to-image generation and image editing on CUDA",
"imageGeneration": true,
"videoGeneration": false,
"imageEditing": true,
@@ -60,7 +60,7 @@
"cfg": null,
"imageOutpainting": false,
"characterSheets": false,
- "requiresImageInput": true,
+ "requiresImageInput": false,
"editImageReferences": false,
"maxImageReferences": 4,
"refmods": false,
diff --git a/src/lib/imagePrompt.test.ts b/src/lib/imagePrompt.test.ts
index 770b15b..6737f5d 100644
--- a/src/lib/imagePrompt.test.ts
+++ b/src/lib/imagePrompt.test.ts
@@ -170,15 +170,17 @@ describe("MiniMax H3 still-image prompts", () => {
});
});
- it("compiles Fibo reference instructions without H3 wrappers and requires one to four images", () => {
+ it("compiles Fibo text-only prompts and up to four image references without H3 wrappers", () => {
const config = photo();
const compile = () => compileImagePrompt(config, { modelType: "fibo2" });
- expect(compile).toThrow(/requires one to 4 image references/);
+ expect(compile().prompt).toContain("A runner suspended mid-stride");
+ expect(compile().references).toEqual([]);
+ expect(compile().prompt).not.toMatch(/Shot|Picture|overall_soundscape/);
config.references = Array.from({ length: 5 }, (_, i) => ({ id: `ref${i}`, name: `Photo ${i}`, kind: "image" as const, description: "", relativePath: `references/${i}.png`, intendedUse: [], createdAt: config.createdAt }));
config.imageScene!.nodes[0].description = "Put @[ref:ref1] beside @[ref:ref0]";
expect(compile().references.map(({ id }) => id)).toEqual(["ref1", "ref0"]);
expect(compile().prompt).toContain("Photo 1 (image 1) beside Photo 0 (image 2)");
expect(compile().prompt).not.toMatch(/Shot|Picture|overall_soundscape|subject_definitions/);
config.imageScene!.nodes[0].description = config.references.map(({ id }) => `@[ref:${id}]`).join(" ");
- expect(compile).toThrow(/requires one to 4/);
+ expect(compile).toThrow(/at most 4/);
});
diff --git a/src/lib/imagePrompt.ts b/src/lib/imagePrompt.ts
index 849629e..5ebfca8 100644
--- a/src/lib/imagePrompt.ts
+++ b/src/lib/imagePrompt.ts
@@ -24,7 +24,7 @@ export function compileImagePrompt(config: ProjectConfig, options: { modelType?:
const pictures = references.flatMap(referenceImages);
if (references.some((reference) => activeReferenceRefmods(reference).length)) throw new Error("Fibo 2.0 does not support refmods.");
if (scene.rootType === "image" && pictures.length) throw new Error("Fibo edits use the source image only. Remove additional image references from this edit prompt.");
- if (scene.rootType !== "image" && (!pictures.length || pictures.length > model.maxImageReferences)) throw new Error(`Fibo 2.0 requires one to ${model.maxImageReferences} image references. Cite them in the prompt or open an image to edit.`);
+ if (pictures.length > model.maxImageReferences) throw new Error(`Fibo 2.0 supports at most ${model.maxImageReferences} image references.`);
const parts = imageScenePromptParts(scene);
const rootPrompt = scene.nodes.find((node) => node.kind === "root")?.description.trim() ?? "";
// Preserve optional structured edit JSON verbatim instead of adding prose punctuation.
diff --git a/src/lib/referenceIconSettings.test.ts b/src/lib/referenceIconSettings.test.ts
index 99f97a4..5cce185 100644
--- a/src/lib/referenceIconSettings.test.ts
+++ b/src/lib/referenceIconSettings.test.ts
@@ -47,7 +47,7 @@ it("honors a disabled choice for the session when storage cannot be written", ()
}
});
-it("excludes image-editing-only Fibo from automatic text reference icons", () => {
+it("allows Fibo for automatic text reference icons", () => {
const fibo = createGeneratorTemplate("Fibo", "fibo2");
- expect(referenceIconGenerator({ templates: [fibo], defaultTemplateId: fibo.id })).toBeUndefined();
+ expect(referenceIconGenerator({ templates: [fibo], defaultTemplateId: fibo.id })?.id).toBe(fibo.id);
});
diff --git a/src/lib/referenceIcons.ts b/src/lib/referenceIcons.ts
index a906df8..292ff19 100644
--- a/src/lib/referenceIcons.ts
+++ b/src/lib/referenceIcons.ts
@@ -27,7 +27,7 @@ export function referenceIconPrompt(reference: ProjectReference, modelType?: str
reference.subcategory ? `Subcategory: ${reference.subcategory}` : "",
`Reference description:\n${description}`,
].filter(Boolean).join("\n");
- if (modelType === "moss") return visual;
+ if (modelType === "moss" || modelType === "fibo2") return visual;
// H3's base three-field format also applies to text-only still-image jobs.
// Icons have no audio, so both audio fields explicitly use N/A.
return [
diff --git a/src/lib/workQueue.test.ts b/src/lib/workQueue.test.ts
index 9749ee8..f566418 100644
--- a/src/lib/workQueue.test.ts
+++ b/src/lib/workQueue.test.ts
@@ -434,12 +434,28 @@ describe("image generation work", () => {
expect(queue.getSnapshot()).toHaveLength(0);
});
+ it("queues Fibo text-to-image without source pixels or references", async () => {
+ const { queue } = setup();
+ const fibo = { ...fiboImageTemplate(), sources: {}, paths: { transformer: "fibo", textEncoder: "qwen", videoVae: "flux", tokenizer: "", audioVae: "" } };
+ const record = imageProject();
+ record.config.imageScene!.steps = 4;
+ const session = queue.project(record);
+ queue.enqueueImage(session, fibo);
+ await waitFor(() => expect(enqueueSlopfabGeneration).toHaveBeenCalledOnce());
+ const [request, config] = vi.mocked(enqueueSlopfabGeneration).mock.calls[0];
+ expect(request).toMatchObject({ stillImage: true, frames: 1, steps: 4, referencePaths: [] });
+ expect(request.imageEdit).toBeUndefined();
+ expect(request.prompt).toContain("An ocean poster");
+ expect(request.prompt).not.toMatch(/Shot|Picture|overall_soundscape/);
+ expect(config.providerSettings.slopfab.options.modelType).toBe("fibo2");
+ await queue.cancel(queue.getSnapshot()[0].id);
+ });
+
it("routes Fibo source edits once without H3 prompt wrappers or duplicate references", async () => {
const { queue, first } = setup();
const fibo = { ...fiboImageTemplate(), sources: {}, paths: { transformer: "fibo", textEncoder: "qwen", videoVae: "flux", tokenizer: "", audioVae: "" } };
expect(() => queue.enqueue(first, [submission(first)], fibo)).toThrow(/supports video/);
const session = queue.project(imageProject());
- expect(() => queue.enqueueImage(session, fibo)).toThrow(/requires one to 4/);
session.update((current) => {
const scene = createImageEditScene({ name: "Source", relativePath: "media/source.png", width: 512, height: 512 });
scene.nodes[0].description = "Make the sky blue";