Advertisement
Cabaca

Untitled

May 14th, 2024
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. prompt = input("Image prompt: ")
  2. res = client.images.generate(
  3.    model="dall-e-2",
  4.    prompt=prompt,
  5.    n=2,
  6.    size="256x256"
  7. )
  8. print("Assistant: " + res.data[0].url)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement