Skip to content
import os
import pandas as pd
import openai

openai.api_key = os.environ["OPENAI"]
from IPython.display import Image

response = openai.Image.create(
  prompt="moon surface game style with craters etc",
  n=1,
  size="1024x1024"
) 

image_url = response['data'][0]['url']
Image(url=image_url)