Image
- class pipecat.services.azure.image.AzureImageGenServiceREST(*, image_size, api_key, endpoint, model, aiohttp_session, api_version='2023-06-01-preview')[source]
Bases:
ImageGenService
- Parameters:
image_size (str)
api_key (str)
endpoint (str)
model (str)
aiohttp_session (ClientSession)
- async run_image_gen(prompt)[source]
Generate an image from a text prompt.
This method must be implemented by subclasses to provide actual image generation functionality using their specific AI service.
- Parameters:
prompt (str) – The text prompt to generate an image from.
- Yields:
Frame –
- Frames containing the generated image (typically ImageRawFrame
or URLImageRawFrame).
- Return type:
AsyncGenerator[Frame, None]