dhanishetty's picture
Update app.py
eaed816 verified
raw
history blame
284 Bytes
from openai import OpenAI
client = OpenAI(api_key= "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")
response = client.images.generate(
model="dall-e-3",
prompt=prompt,
size="1792x1024",
quality="standard",
n=1,
)
image_url = response.data[0].url
print(image_url)