OpenAi.Images (OpenAI REST API Client v0.2.1)

Provides API endpoints related to images

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.

Functions

Link to this function

create_image(body, opts \\ [])

@spec create_image(
  OpenAi.Image.CreateRequest.t(),
  keyword()
) :: {:ok, OpenAi.Image.Response.t()} | {:error, OpenAi.Error.error()}

Creates an image given a prompt.

Link to this function

create_image_edit(body, opts \\ [])

@spec create_image_edit(
  OpenAi.Image.EditCreateRequest.t(),
  keyword()
) :: {:ok, OpenAi.Image.Response.t()} | {:error, OpenAi.Error.error()}

Creates an edited or extended image given an original image and a prompt.

Link to this function

create_image_variation(body, opts \\ [])

@spec create_image_variation(
  OpenAi.Image.VariationCreateRequest.t(),
  keyword()
) :: {:ok, OpenAi.Image.Response.t()} | {:error, OpenAi.Error.error()}

Creates a variation of a given image.