Skip to content

Releases: Init-io/Kontext4J

Kontext4J

29 Aug 05:48
64a4f16

Choose a tag to compare

Kontext4J ⚡✨ — Latest Release

Your one-file, dependency-light Java wrapper for BFL/Flux Kontext APIs just got even sassier. Now you can edit, fill, expand, and generate images faster than other libraries can even unpack their 300 MB of JARs.

TL;DR

Single-file magic: drop Kontext4J.java in your project and go.

Fluent AF: new Kontext4J().init(key).generate(...).getUrl() — looks cool, works cooler.

Handles local files, URLs, and base64 like a pro.

Polls automatically until server says "Ready".

Easter egg: nano banana occasionally appears. 🍌💀

Features You’ll Actually Use

edit(...) — multi-image editing, masks, prompts, seeds… all the jazz.

fill(...) — inpainting with mask support.

generate(...) — text → image, reference images supported.

expand(...) — outpaint top/bottom/left/right like a boss.

Polling included; stores multiple result URLs.

Lightweight JSON parsing via org.json.

Gentle Roast 🔥

Other libs:

“Install 12 XMLs, 17 threads, 300 MB JARs.”
Kontext4J:

“Hold my coffee ☕, I’m done in one file.”

Get Started
Kontext4J k = new Kontext4J().init("YOUR_API_KEY");
k.generateSimple("Cyberpunk cat in neon alley");
System.out.println(k.getUrl());

No fuss. No bloated dependencies. Just results. 🤖✨