Image Generation Copy

POST {{openAIUrl}}/images/generations

Creates an image given a prompt.

Request Body

{"prompt"=>"developer not believing into the power of AI fleeing into the hills after he realized AI has feelings", "n"=>5, "size"=>"1024x1024"}

RESPONSES

status: OK

{"created":1671380843,"data":[{"url":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-c84hkx2pcVBjsfWLkVgEUsVt/user-rSSV7en2wQibbQJa17CJvcOT/img-bEHwNArNN7kSbNEUWaq1uZf9.png?st=2022-12-18T15%3A27%3A23Z\u0026se=2022-12-18T17%3A27%3A23Z\u0026sp=r\u0026sv=2021-08-06\u0026sr=b\u0026rscd=inline\u0026rsct=image/png\u0026skoid=6aaadede-4fb3-4698-a8f6-684d7786b067\u0026sktid=a48cca56-e6da-484e-a814-9c849652bcb3\u0026skt=2022-12-18T10%3A05%3A32Z\u0026ske=2022-12-19T10%3A05%3A32Z\u0026sks=b\u0026skv=2021-08-06\u0026sig=bFohO7L%2BlM93m4QF2PSMNKq%2BmTcC/fHsw9XDBYKNI4c%3D"}]}