A painting of a room with a lot of books on shelves
You might be interested in my private matters.
import openai openai.api_key = "SEU_API_KEY_AQUI" response = openai.Image.create( prompt="A modern and elegant Ton cardboard machine, com um design inovador, situated in a dynamic business environment. The machine has a luminous screen that shows a transaction being processed, and around it there is a vibrant atmosphere with people shopping.", n=1, size="256x256", response_format="url" ) # The response will contain the URL of the generated image print(response['data'][0]['url'])
Prompts
Copy
import openai
openai.api_key = "SEU_API_KEY_AQUI"
response = openai.Image.create(
prompt="A modern and elegant Ton cardboard machine, com um design inovador, situated in a dynamic business environment. The machine has a luminous screen that shows a transaction being processed, and around it there is a vibrant atmosphere with people shopping.",
n=1,
size="256x256",
response_format="url"
)
# The response will contain the URL of the generated image
print(response['data'][0]['url'])
INFO
0 comment
1
0
0