A painting of a room with a lot of books on shelves
Há coisas interessantes que só você deve saber.
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
Copiar prompts
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
comentário(s)
1
0
0