(create-image params)
(create-image params options)
Creates an image given a prompt.
Example:
(create-image {:prompt "A cute baby sea otter"
:n 2
:size "1024x1024"})
Response:
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Also see the OpenAI documentation
Creates an image given a prompt. Example: ``` (create-image {:prompt "A cute baby sea otter" :n 2 :size "1024x1024"}) ``` Response: ``` { "created": 1589478378, "data": [ { "url": "https://..." }, { "url": "https://..." } ] } ``` Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/images/create)
(create-image-edit params)
(create-image-edit params options)
Creates an edited or extended image given an original image and a prompt.
Example:
(create-image-edit {:image (clojure.java.io/file "path/to/otter.png")
:mask (clojure.java.io/file "path/to/mask.png")
:prompt "A cute baby sea otter wearing a beret"
:n 2
:size "1024x1024"})
Response:
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Also see the OpenAI documentation
Creates an edited or extended image given an original image and a prompt. Example: ``` (create-image-edit {:image (clojure.java.io/file "path/to/otter.png") :mask (clojure.java.io/file "path/to/mask.png") :prompt "A cute baby sea otter wearing a beret" :n 2 :size "1024x1024"}) ``` Response: ``` { "created": 1589478378, "data": [ { "url": "https://..." }, { "url": "https://..." } ] } ``` Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/images/createEdit)
(create-image-variation params)
(create-image-variation params options)
Creates a variation of a given image.
Example:
(create-image-variation {:image (clojure.java.io/file "path/to/otter.png")
:n 2
:size "1024x1024"})
Response:
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Also see the OpenAI documentation
Creates a variation of a given image. Example: ``` (create-image-variation {:image (clojure.java.io/file "path/to/otter.png") :n 2 :size "1024x1024"}) ``` Response: ``` { "created": 1589478378, "data": [ { "url": "https://..." }, { "url": "https://..." } ] } ``` Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/images/createVariation)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close