Back
create-image (clj)
(source)function
(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"})
```
For Azure OpenAI pass `{:impl :azure}` for the `options` argument
Also see the [OpenAI](https://platform.openai.com/docs/api-reference/images/create) / [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation) documentation