mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-09 03:39:37 -10:00
9 lines
234 B
Python
9 lines
234 B
Python
# Image Generation with DALL-E
|
|
# Requires: export OPENAI_API_KEY=your-key
|
|
|
|
from praisonaiagents import ImageAgent
|
|
|
|
agent = ImageAgent(llm="openai/dall-e-3")
|
|
result = agent.generate("A sunset over mountains")
|
|
print(result.data[0].url)
|