Class: Roseflow::OpenAI::Operations::ImageEdit

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/roseflow/openai/operations/image_edit.rb

Overview

Image edit operation.

Given a prompt and/or an input image, the model will generate a new image. This operation creates an edited or extended image given an original image and a prompt.

See platform.openai.com/docs/api-reference/images for more information.

Many of the attributes are actually optional for the API, but we provide defaults to them. This may change in the future.

Instance Method Summary collapse

Instance Method Details

#bodyObject



32
33
34
# File 'lib/roseflow/openai/operations/image_edit.rb', line 32

def body
  to_h.except(:path)
end