Skip to content

v0.1.0

Choose a tag to compare

@kabatin kabatin released this 17 Oct 03:50

First version.

  • HTTP job API per docs/api.md: health (vpipe-api / wan-api compatible), capabilities,
    workflow listing with JSON Schemas, typed submit route, job status with progress over all images, queue
    position, waiting_for, estimate and timings (incl. coordination_seconds), per-index PNG download,
    cancel. One error envelope for every failure.
  • Workflow flux2-klein: FLUX.2 [klein] text (and, once enabled, reference images) to 1–4 images; ~1 MP
    generation sizes in multiples of 64, lanczos cover crop to the exact size, 8-bit RGB PNG verified per image.
  • Backend drawthings: draw-things-cli headless under a pty, --local --offline --no-download-missing --disable-preview, 4 steps / CFG 1, one process per image (seed + i), stopped on cancel/timeout, orphans
    reaped after a restart. Output parsing isolated in drawthings_output.py.
  • Coordination with other GPU servers (coordinate_with, settle_seconds): a job starts on an all-idle
    check, and not before settle_seconds after any server was last seen busy; unreachable servers count as idle (warning); peer tokens never logged, redirects not followed.
  • Resident engine for standard jobs (resident, default on): a loopback-only gRPCServerCLI-macOS keeps the
    9B loaded between jobs (~19.5 s instead of ~26 s per image); stopped when idle, when a coordinated server is
    busy, before draft jobs, after failed jobs and on shutdown; leftovers reaped after a crash.
  • Live findings applied: references are FLUX.2 references at strength 1.0 (default max_reference_images = 2,
    --strength never passed), measured per-model sizes and conservative estimates, text-encoder -tensordata
    checks, recorded CLI output fixtures, paths removed from engine error messages.
  • Job store/queue, security and process handling adapted from wan-api 0.1.0.

Install

uv tool install git+https://github.com/kabatin/klein-api@v0.1.0

Setup, configuration and the LaunchAgent: see the README.