AI image generation, editing, and variations
from praisonaiagents import ImageAgent agent = ImageAgent(llm="openai/dall-e-3") result = agent.generate("A sunset over mountains") print(result.data[0].url)
from praisonaiagents import ImageAgent agent = ImageAgent(llm="openai/dall-e-3", style="vivid") result = agent.generate("A futuristic city", size="1792x1024", quality="hd") print(result.data[0].url)
from praisonaiagents import ImageAgent agent = ImageAgent(llm="openai/dall-e-2") result = agent.edit("photo.png", "Add a rainbow") print(result.data[0].url)
from praisonaiagents import ImageAgent agent = ImageAgent(llm="openai/dall-e-2") result = agent.edit("photo.png", "Add sunset", mask="mask.png", size="1024x1024") print(result.data[0].url)
from praisonaiagents import ImageAgent agent = ImageAgent(llm="openai/dall-e-2") variations = agent.variation("original.png", n=3) for img in variations.data: print(img.url)
openai/dall-e-3
openai/dall-e-2