Skip to main content

Native Image Models

Skulk™ serves Qwen Image 2.1, Qwen Image 2.1 Turbo, FLUX.2 Klein 4B, FLUX.3 Klein, FLUX.3 Klein Base, Z-Image Turbo and SDXL through the on-demand stable_diffusion_cpp engine. Each quantization or reference artifact has its own immutable model card. SDXL metadata exposes its mixed-width UNet through image.unetStructure; its generic dimensions count verified modules and maximum module output width rather than provisional transformer placeholders.

Choose and place a model​

Find the cards through GET /v1/models or the dashboard's model selector. Native cards expose an image object with their canvas limits, reference-image limit, alpha support and sampling defaults. Their engine requirement is stable_diffusion_cpp; it is not a list of GPU models permitted to run them.

ModelCatalog aliases
Qwen Image 2.1sd-cpp/Qwen-Image-2.1-Q4_K, sd-cpp/Qwen-Image-2.1-BF16
Qwen Image 2.1 Turbosd-cpp/Qwen-Image-2.1-Turbo-Q4_K_M, sd-cpp/Qwen-Image-2.1-Turbo-BF16
FLUX.2 Klein 4Bsd-cpp/FLUX.2-Klein-4B-Q4_0, sd-cpp/FLUX.2-Klein-4B-BF16
Z-Image Turbosd-cpp/Z-Image-Turbo-Q4_0, sd-cpp/Z-Image-Turbo-BF16
SDXLsd-cpp/SDXL-Base-1.0-Q8_0-0.9VAE, sd-cpp/SDXL-Base-1.0-Reference

Use a Skulk™ build that implements the native image engine and typed image cards. A catalog entry does not prove that an older Skulk™ installation has that runner. Inspect placement previews or place the model through the dashboard to resolve the actual available engine and memory fit. When preparation is needed, the preview's engine_install describes its additional engine download. Accepted placement installs the exact engine package and pinned model components before load. Browsing the catalog does not download them.

An existing placement retains its exact engine build when Skulk™ upgrades. The worker verifies that build's cache before loading, reusing or acquiring the retained immutable package when necessary. Different builds can serve different instances on the same node; new placements use the current default. Offline restoration requires the exact package to remain cached. An older retained build does not acquire newer model-family implementations merely because Skulk™ upgraded. Explicit operator binaries from the previously supported native source retain their probe protocol and must still match each placement's measured build identity.

Native inference currently runs on one host and one GPU. Managed packages cover macOS ARM64 Metal, Linux ARM64/x86_64 CUDA, and Linux x86_64 Vulkan/ROCm. Actual wheel ABI, CPU helper instructions, compiled GPU targets and runtime requirements determine package eligibility. Model-specific memory fit uses the selected artifact and runtime configuration. CPU-only native serving and multi-node native image splitting are not implemented.

Compatible untested hardware remains eligible. Representative tests establish observed behavior for their exact configuration; absent, failed or differently scoped qualification does not exclude a separately compatible configuration. See Model and engine compatibility.

Generate and edit​

After placing the model, send an ordinary image-generation request:

curl http://localhost:52415/v1/images/generations \
-H 'Content-Type: application/json' \
-d '{
"model": "sd-cpp/Qwen-Image-2.1-Turbo-Q4_K_M",
"prompt": "a fox curled up in autumn leaves",
"size": "1024x1024",
"n": 1,
"response_format": "b64_json"
}'

The existing /v1/images/generations and multipart /v1/images/edits routes serve these models. Requests retain OpenAI-style response formats and Skulk™'s advanced_params, stream and partial_images extensions. Native requests support terminal-only SSE with stream=true and zero previews; closing the stream cancels the owned task. Follow the image API contract for request fields, reference ordering, limits and streaming events.

Qwen Turbo fixes eight steps, guidance 1 and an empty negative prompt; conflicting overrides return 400. Z-Image does not accept reference images. Editing and alpha requests follow the selected card's declared operations and the implemented runner. PNG/WebP preserve supported alpha output; JPEG discards it. Qualification results remain scoped evidence rather than permission to select a model.

Model users review and accept the applicable model license. The catalog exposes license information independently of engine availability and hardware test coverage.

FLUX.3 Klein captions and components​

FLUX.3 Klein is a separate image architecture from FLUX.2 Klein. The distilled profile defaults to 16 steps and guidance 1; Klein Base defaults to 50 steps and guidance 3.5. Each selected quantization has its own exact card. Both need the diffusion weights, a Qwen3-VL-4B text encoder and the FLUX.2 VAE; the transformer's 5.6B parameter count excludes its text encoder and runtime workspace. The card accounts for all pinned component bytes.

BFL recommends full scene captions, including framing, subjects, lighting and the requested edit. Expand a short request with a suitable language model, or supply a prepared caption directly. Skulk™ sends prompt unchanged: it does not load the separate BFL prompt-upsample model, rewrite a caption, or require another mounted chat model for image serving. For an edit, the prepared caption should describe the reference scene with the requested change incorporated. Up to ten ordered reference images can be supplied subject to the existing aggregate media/pixel limits.

BFL's textual bounding-box syntax may be included in the caption; it does not add a new Skulk™ request parameter or a hard pixel mask. Runtime qualification checks execution and transport separately from subjective prompt adherence.