Text to Image
Basic Usage
Texture2D image = await "A serene mountain landscape at sunset"
.GENImage()
.ExecuteAsync();Input Types
String Input
Texture2D image = await "Cyberpunk city at night"
.GENImage()
.ExecuteAsync();Prompt Input
var prompt = new Prompt("A {adjective} {subject} in {style} style");
Texture2D image = await prompt
.GENImage()
.ExecuteAsync();Alias Method
Configuration
Model Selection
Image Size
Quality
Style
Number of Images
Complete Example
Unity Integration Examples
Example 1: UI Sprite Generation
Example 2: Material Texture
Example 3: Skybox Generation
Example 4: Batch Generation
Example 5: Save to Disk
Prompt Engineering Tips
✅ Good Prompts
❌ Bad Prompts
Provider Support
OpenAI DALL-E
Google Imagen
Error Handling
Best Practices
✅ Do
❌ Don't
Performance Considerations
Next Steps
Last updated