OpenAI.Images (openai_client v0.5.3)
Given a prompt and/or an input image, the model will generate a new image.
Related guide: Image generation
Link to this section Summary
Functions
Creates an image given a prompt.
Creates an edited or extended image given an original image and a prompt.
Creates a variation of a given image.
Link to this section Types
Link to this type
create_edit_params()
Link to this type
create_params()
Link to this type
create_variation_params()
Link to this section Functions
Link to this function
create(client, params, opts \\ [])
@spec create(OpenAI.Client.t(), create_params(), Keyword.t()) :: OpenAI.Client.result()
Creates an image given a prompt.
Link to this function
create_edit(client, params, opts \\ [])
@spec create_edit(OpenAI.Client.t(), create_edit_params(), Keyword.t()) :: OpenAI.Client.result()
Creates an edited or extended image given an original image and a prompt.
Link to this function
create_variation(client, params, opts \\ [])
@spec create_variation(OpenAI.Client.t(), create_variation_params(), Keyword.t()) :: OpenAI.Client.result()
Creates a variation of a given image.