Image Generation
Generate general images/texture assets (not sprites): concept art, reference images, UI backgrounds, posters, banners, etc. Output PNG is automatically imported as Texture2D (Default type), saved to Assets/TJGenerators/History/ by default.
Getting Started
Start from GUI
Menu: AI > Generate > Generate Image, or refer to the getting started section of 3D Model Generation.
Start from CLI
Use the generate_image tool to generate images. Images are regular assets and do not need to be placed in a scene by default — reference them by path after generation.
Input Modes:
| Mode | Parameters | Description |
|---|---|---|
| Text-to-Image | prompt | Pure text description |
| Image-to-Image | prompt + image_path | Reference image + text guidance |
⚠️ The
promptparameter is always required, even when providing a reference image. For image-to-image, if the user doesn't provide a description, read the reference image content first and then write theprompt.
Models
Image generation offers 3 models, selectable via generator_id:
Frontier Game Design (Default Model)
- generator_id:
frontier-game-design(default) - Use Cases: Game-style images, concept art, includes game prompt templates
- Key Parameters:
prompt(required) /image_pathimageSize:square_hd(default) /square/portrait_4_3/portrait_16_9/landscape_4_3/landscape_16_9outputFormat:png(default) /jpegprompt_template:game_icon(game icon) /concept_art(concept art) /""(default, no template)
Huoshan SeeDream Image
- generator_id:
huoshan_seedream_image(switch when user says "use Huoshan model"/"use SeeDream") - Use Cases: General text-to-image/image-to-image, supports pixel-level size control and auto background removal
- Key Parameters:
prompt(required) /image_pathsize: Output size (default2048x2048, 15 presets for 2K/4K)is_segmentation: Whether to auto-remove background (default true; set false for backgrounds/textures)q_value: Segmentation compression quality 1–100 (default 75)resize_width: Output max width (px), 0 = no resize
Frontier (Stylized Effects)
- generator_id:
frontier-effect - Use Cases: Apply stylized/artistic effects on reference images, supports ratio control
- Key Parameters:
prompt(required) /image_pathresolution:0.5K/1K(default) /2K/4Kaspect_ratio:auto(default) /16:9/9:16/1:1/4:3/3:4/3:2/2:3/5:4/4:5/21:9output_format:png(default) /jpeg
Model Selection Guide
| Scenario | Choice |
|---|---|
| General images/concept art/game icons (default) | Frontier Game Design |
| Game-specific prompt templates (game_icon / concept_art) | Frontier Game Design + prompt_template |
| Need pixel-level size or auto background removal | SeeDream (huoshan_seedream_image) |
| Stylized effects on reference images / specific aspect ratio | Frontier (frontier-effect) |
| Need JPEG output | Frontier (output_format) or Game Design (outputFormat) |
Output Sizes (size, SeeDream only)
2K: 2048x2048 (default), 2304x1728, 1728x2304, 2560x1440, 1440x2560, 2496x1664, 1664x2496, 3024x1296;
4K: 4096x4096, 4704x3520, 3520x4704, 5504x3040, 3040x5504, 4992x3328, 3328x4992.
Optimization
Prompt Optimization
- Describe the scene and elements specifically:
"a fantasy castle on a cliff overlooking a stormy sea, dramatic lighting">"a castle" - Specify art style:
"oil painting style"/"photorealistic"/"anime style" - Frontier Game Design can use
prompt_templateto auto-add game-style prefixes - SeeDream supports Chinese prompts, but English is generally more stable
Size & Resolution
- SeeDream minimum size is approximately 1920×1920, smaller sizes are auto-upscaled; if you still get a 400 error, use a preset
size - Frontier low resolution (0.5K/1K) is good for quick previews, 2K/4K for final output
- Choose the right aspect ratio to avoid cropping: 16:9 for UI banners, 1:1 for icons
Background Segmentation
- Need transparent background sprites (game icons/item images) → use
generate_spriteinstead ofgenerate_image generate_image'sis_segmentation(SeeDream only) is suitable for concept art background removal, but the output type is Texture2D, not Sprite
Parallel Generation
- Maximum 5 concurrent tasks
Notes
- ⚠️ Default model is Frontier Game Design;
size/is_segmentation/q_value/resize_widthonly work with SeeDream,resolution/aspect_ratioonly work with Frontier,imageSize/outputFormat/prompt_templateonly work with Game Design - ⚠️
promptis always required, even whenimage_pathis provided - ⚠️ SeeDream minimum size is approximately 1920×1920, requesting smaller sizes may trigger a 400 error
- ⚠️ Image ≠ Sprite: Image output is Texture2D, suitable for concept art/backgrounds/posters; Sprite output is Sprite type, suitable for game icons/items — choose the right tool for your needs
- ⚠️ Not placed in scene by default: Images are regular assets; unless the user explicitly requests it, only generate and reference by path
- ⚠️ Generation takes 30–90 seconds
- ⚠️ Output path: Default
Assets/TJGenerators/History/ - ⚠️ Domain Reload: Do not write
.csfiles to disk during generation