Image generation service implementation using OpenAI’s DALL-E models
OpenAIImageGenService
provides high-quality image generation capabilities using OpenAI’s DALL-E models. It transforms text prompts into images with various size options and model configurations.
OpenAIImageGenService
as it is part of the Pipecat AI package.
You’ll also need an OpenAI API key for authentication.
Model ID | Description |
---|---|
dall-e-3 | Latest DALL-E model with higher quality and better prompt following |
dall-e-2 | Previous generation model with good quality and lower cost |
Size Option | Aspect Ratio | Description |
---|---|---|
256x256 | 1:1 | Small square image |
512x512 | 1:1 | Medium square image |
1024x1024 | 1:1 | Large square image |
1792x1024 | 16:9 | Horizontal/landscape orientation |
1024x1792 | 9:16 | Vertical/portrait orientation |