Class: Roseflow::OpenAI::Operations::Image
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Roseflow::OpenAI::Operations::Image
- Defined in:
- lib/roseflow/openai/operations/image.rb
Overview
Image operation.
Given a prompt and/or an input image, the model will generate a new image. This operation creates an image given 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
#body ⇒ Object
29 30 31 |
# File 'lib/roseflow/openai/operations/image.rb', line 29 def body to_h.except(:path) end |