OpenAI.image_edits
You're seeing just the function
image_edits
, go back to OpenAI module for more information.
This edits an image based on the given prompt.
Example Request
OpenAI.image_edits(
"/home/developer/myImg.png",
{ "prompt", "A developer writing a test", "size": "256x256"},
recv_timeout: 10 * 60 * 1000
)
Example Response
{:ok,
%{
created: 1670341737,
data: [
%{
"url" => ...Returned url
}
]
}}
See: https://beta.openai.com/docs/api-reference/images/create-edit for the complete list of parameters you can pass to the image creation function