Class: RunApi::Midjourney::Resources::ImageToPrompt
- Inherits:
-
Object
- Object
- RunApi::Midjourney::Resources::ImageToPrompt
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/midjourney/resources/image_to_prompt.rb
Overview
Derives prompt suggestions from an image.
Constant Summary collapse
- ENDPOINT =
"/api/v1/midjourney/image_to_prompt"- RESPONSE_CLASS =
Types::ImageToPromptResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ ImageToPrompt
constructor
A new instance of ImageToPrompt.
- #run(options: nil, **params) ⇒ Object
Constructor Details
#initialize(http) ⇒ ImageToPrompt
Returns a new instance of ImageToPrompt.
13 |
# File 'lib/runapi/midjourney/resources/image_to_prompt.rb', line 13 def initialize(http) = (@http = http) |