Runtime Image Forge

Runtime Image Forge

Art made inside
your game.

Let players craft something personal. Generate a local image, keep its recipe and turn the result into an item they can collect or share.

Unity tool · Windows x64 native DLL backend
Complete editable companion game included.

A locally generated bronze shield with a transparent background
Example output
Preview background
Bronze shield · original 1024 × 1024 PNG
Original FLUX.2 Klein 4B outputs at 1024 × 1024; changing this preview does not run a model. Save example PNG

From a player’s choice
to a saved image.

Choose the art direction in the Editor. Define the options your game accepts, prepare its local model, and submit a bounded generation job. Your game controls when a result becomes an item.

Your style, your catalog

Editable prompts and choice fields for item art, flat icons, portraits and environments. Keep a full background or apply foreground removal to isolated objects.

Models and styles

A PNG you can use

Display the result as a Texture2D or Sprite. Export its original PNG with a recipe that records the model, seed, prompts and applied settings.

Saving and sharing

Control the whole job

Preparation, warmup, queueing, cancellation, caching and clear failures. Optional Editor MCP tools let trusted agents generate, inspect and export jobs.

Editor MCP tools

The Ember Forge

A small workshop. A collection that is yours.

Choose a sword, shield, ring or amulet. Pick a material and an ornament, forge an image, then collect it. Save a transparent PNG and its recipe to share the result.

The complete editable companion game is included with the Unity package: scene, gameplay source, workshop art and the FLUX.2 Klein 4B model profile, ready to study or adapt in the package's Samples folder. Open the included game in Unity.

View the included companion setup

Play it without Unity. The Ember Forge for Windows is an 80 MB download. It needs Windows x64 and a Vulkan-capable GPU; on first launch it downloads FLUX.2 Klein 4B (5.21 GB) from Hugging Face and then works offline.

Download for Windows · 80 MB
The sample from the package, running as a Windows Player with FLUX.2 Klein 4B and recorded with an original soundtrack. The model was downloaded and warmed up before capture; generation is shown at its recorded pace. Download the trailer.

Your first order

  1. In Unity, choose Tools > Runtime Image Forge > Open The Ember Forge sample.
  2. Enter Play Mode and choose DOWNLOAD MODEL once.
  3. Wait for verification and warmup, then craft your first item.
  4. Select it in the collection and save PNG + recipe.

Keep what you make

The collection saves up to 256 items, four per page. Export beside the game or into its data folder. Failed and cancelled orders do not add items.

The sample's game interface is in English. The Editor windows and guides are in English, Russian, Spanish and Simplified Chinese.

Local models.
Practical limits.

Model weights are downloaded separately: the included FLUX.2 Klein 4B profile fetches its three pinned files over HTTPS only on an explicit download action. After setup, generation runs offline on the player's machine. Hardware, resolution and other GPU workloads affect preparation and generation.

Unity and platform
Unity 6000.5 or later. Supplied backend: Windows x64 Vulkan DLLs running inside Unity; requires the Microsoft Visual C++ 2015–2022 Redistributable (x64). Foreground processing uses GPU Compute.
Tested hardware
NVIDIA RTX 3060 Laptop GPU, 6 GB VRAM. This is a tested configuration, not a guaranteed minimum.
Included model profile
FLUX.2 Klein 4B; the U2NETP cutout model is installed on request and is not part of the package. The five included styles use 1024 × 1024, 4 steps and CFG 1. Pinned weights: 5.21 GB (4.85 GiB); engine and temporary space are additional.
What to expect
2D images. Requested details and fine cutout edges can be imperfect. Pixel-inspired prompts do not enforce a pixel grid.

FLUX.2 Klein 4B and U2NETP use Apache-2.0. Review the component and model terms for your use and distribution.

Build it into
your own game.

Start with the included model and style samples. Follow the scene setup, then choose the API layer your game needs. Documentation covers ownership, cancellation, save data and export.