We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8720980 commit 22ec98aCopy full SHA for 22ec98a
examples/picture.py
@@ -8,12 +8,14 @@
8
prompt = "An astronaut lounging in a tropical resort in space, pixel art"
9
model = "dall-e-3"
10
11
+
12
def main() -> None:
13
# Generate an image based on the prompt
14
response = openai.images.generate(prompt=prompt, model=model)
-
15
16
# Prints response containing a URL link to image
17
print(response)
18
19
20
if __name__ == "__main__":
21
main()
0 commit comments