Class ActionTypeStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>

  • All Implemented Interfaces:
    StartStage

    public class ActionTypeStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>
    extends Object
    implements StartStage
    A stage to choose the Images related action desired Current version includes following possibilities:
    • Creating images
    • Editing images
    • Generating images variations
    • Method Detail

      • editing

        public EditingMaskStage<bg.codexio.ai.openai.api.payload.images.request.EditImageRequest,​PromptfulImagesRuntimeSelectionStage<bg.codexio.ai.openai.api.payload.images.request.EditImageRequest>> editing​(File image)
        Parameters:
        image - the original image passed to the model, baseline for the generated responses Creates edited or extended image given an original image and a prompt.

        Important note: The image must be a valid PNG file, less than 4MB, and square. If mask is not provided (see EditingMaskStage), image must have transparency, which will be used as the mask.

        Corresponds with /v1/images/edits endpoint
      • another

        public ChoicesStage<bg.codexio.ai.openai.api.payload.images.request.ImageVariationRequest,​PromptlessImagesRuntimeSelectionStage<bg.codexio.ai.openai.api.payload.images.request.ImageVariationRequest>> another​(File image)
        Parameters:
        image - the original image passed to the model, baseline for the generated responses Creates variations of given image.
        Corresponds with /v1/images/variations endpoint