Heurist SDK
SmartGen
SmartGen for Image Generation (Experimental)
Experimental Feature: SmartGen is currently in beta. APIs and behaviors may change.
Overview
SmartGen provides a high-level interface for generating images with enhanced prompt engineering and dimension controls. It supports both FLUX and Stable Diffusion models.
Basic Example
Parameters and Controls
SmartGen accepts the following key parameters:
Two-Step Generation
You can split the generation process into two steps:
Response Type in Parameter-only Mode (param_only
set to true)
This allows you to preview and tweak the image generation parameters before invoking the generation method.
One-Step Generation
You can create an image with a simple description in one step:
Demonstration
Here are two examples showcasing the progression from monochromatic to vibrant colors (color_level from 1 to 5):