Image Generation

AI Dev Kit provides multiple methods for generating and editing images using AI.

Available Methods

1. Text to Image (.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())

Edit specific parts of an existing image:

Best for:

  • ✅ Selective editing

  • ✅ Object removal/addition

  • ✅ Background replacement

  • ✅ Style transfer

3. Image to Image (.ImageToImage())

Transform entire image while preserving structure:

Best for:

  • ✅ Style conversion

  • ✅ Art direction changes

  • ✅ Filters and effects

  • ✅ Variations

Quick Comparison

Method
Input
Use Case
Providers

GENImage()

Text

New images

OpenAI, Google

GENInpaint()

Image + Text

Selective edits

OpenAI

ImageToImage()

Image + Text

Full transforms

OpenAI

Basic Examples

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

Last updated