2023-11-08 18:25:55 +00:00
|
|
|
from dotenv import load_dotenv
|
|
|
|
from openai import OpenAI
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
client = OpenAI()
|
|
|
|
|
|
|
|
response = client.images.generate(
|
|
|
|
model='dall-e-3',
|
|
|
|
prompt='cthulhu, paper craft art, minimal detail',
|
|
|
|
size='1024x1024',
|
|
|
|
quality='standard',
|
2023-11-08 19:50:37 +00:00
|
|
|
n=1
|
2023-11-08 18:25:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
image_url = response.data[0].url
|
|
|
|
print(image_url)
|