Image Generation
AI Dev Kit provides multiple methods for generating and editing images using AI.
Available Methods
1. Text to Image (.GENImage())
.GENImage())Generate images from text descriptions:
Texture2D image = await "A cyberpunk city at night"
.GENImage()
.SetModel(OpenAIModel.DallE3)
.SetSize(ImageSize._1024x1024)
.ExecuteAsync();Best for:
✅ Creating new images from scratch
✅ Concept art
✅ Asset generation
✅ Prototyping
2. Image Inpainting (.GENInpaint())
.GENInpaint())Edit specific parts of an existing image:
Best for:
✅ Selective editing
✅ Object removal/addition
✅ Background replacement
✅ Style transfer
3. Image to Image (.ImageToImage())
.ImageToImage())Transform entire image while preserving structure:
Best for:
✅ Style conversion
✅ Art direction changes
✅ Filters and effects
✅ Variations
Quick Comparison
GENImage()
Text
New images
OpenAI, Google
GENInpaint()
Image + Text
Selective edits
OpenAI
ImageToImage()
Image + Text
Full transforms
OpenAI
Basic Examples
Example 1: Generate Logo
Example 2: Edit Screenshot
Example 3: Style Transfer
Configuration Options
All image generation methods support:
Provider Support
OpenAI DALL-E
Google Imagen
Common Workflows
Workflow 1: Texture Generation
Workflow 2: Sprite Creation
Workflow 3: Batch Generation
Performance Tips
✅ Good Practices
❌ Bad Practices
Next Steps
Text to Image - Detailed generation guide
Image Inpainting - Editing techniques
Image to Image - Transformation guide
Last updated