What sd4j is
The project is described as a Java Stable Diffusion inference implementation built on ONNX Runtime and ported from a C# version.
What you can do with it
- Run txt2img generation from Java
- Repeat image generation in the graphical interface
- Supply negative text with a prompt
Example prompts
- An astronaut on horseback in a desert wildlife photo
- A news photo of a sailing ship crossing Martian dunes
- A professional photo of the Apollo 11 lander in a field
Pros & cons
✓ What we like
- The sample follows ONNX Runtime usage practices
- The project is kept in sync with new ONNX Runtime versions
! What to watch out for
- All code may change because this is a sample
- No API in the project should be treated as stable
FAQ
What runtime does it use?
The material states inference runs on ONNX Runtime.
What input feature is named?
The material lists negative text input alongside txt2img generation.
Last reviewed: 2026-11-15
More AI image generation tools
View all →-
123RF Stock library with integrated AI image tools Free tools Text to image Image editing Background remover Image upscaler -
360智图 Image search, licensing and AI editing from 360 Free tools Text to image Background remover Product image Model generator -
360鸿图 Image generation aimed at Chinese-speaking users, with prompts written in Chinese Free tools Creator tools Text to image Art generator Image to image -
a1.art Filter-driven image generation with face swap Free tools Creator tools Text to image Art generator -
AI Anime Generator Photos and text into anime-style art Freemium tools Creator tools Text to image Image to image Image to video -
AI Art Generator Text prompts into original artwork drafts Freemium tools Creator tools Text to image Image editing Art generator