generate_images
autogen.agentchat.contrib.capabilities.generate_images.DalleImageGenerator
DalleImageGenerator
Generates images using OpenAI’s DALL-E models.
This class provides a convenient interface for generating images based on textual prompts using OpenAI’s DALL-E
models. It allows you to specify the DALL-E model, resolution, quality, and the number of images to generate.
Note: Current implementation does not allow you to edit a previously existing image.
Name | Description |
---|---|
llm_config | Type: dict[str, typing.Any] |
resolution | Type: Literal[‘256x256’, ‘512x512’, ‘1024x1024’, ‘1792x1024’, ‘1024x1792’] Default: ‘1024x1024’ |
quality | Type: Literal[‘standard’, ‘hd’] Default: ‘standard’ |
num_images | Type: int Default: 1 |
Instance Methods
cache_key
Name | Description |
---|---|
prompt | Type: str |
generate_image
Name | Description |
---|---|
prompt | Type: str |