Class ImageGenerationParam


@Deprecated public class ImageGenerationParam extends HalfDuplexServiceParam
Deprecated.
  • Constructor Details

  • Method Details

    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Overrides:
      getParameters in class HalfDuplexServiceParam
      Returns:
      The parameters
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • builder

      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexServiceParam
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexServiceParam
    • getMessages

      public List<ImageGenerationMessage> getMessages()
      Deprecated.
    • getSeed

      public Integer getSeed()
      Deprecated.
    • getIncrementalOutput

      public Boolean getIncrementalOutput()
      Deprecated.
      Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false eg(false):
       I
       I like
       I like apple
       when true:
       I
       like
       apple
       
    • getModalities

      public List<String> getModalities()
      Deprecated.
      Output format of the model including "text" and "audio". Default value: ["text"]
    • getResponseFormat

      public ResponseFormat getResponseFormat()
      Deprecated.
      response format
    • getNegativePrompt

      public String getNegativePrompt()
      Deprecated.
      negative prompt
    • getPromptExtend

      public Boolean getPromptExtend()
      Deprecated.
      prompt extend
    • getWatermark

      public Boolean getWatermark()
      Deprecated.
      watermark
    • getSize

      public String getSize()
      Deprecated.
      picture size
    • getN

      public Integer getN()
      Deprecated.
      number of images
    • getEnableInterleave

      public Boolean getEnableInterleave()
      Deprecated.
    • getStream

      public Boolean getStream()
      Deprecated.
    • getMaxImages

      public Integer getMaxImages()
      Deprecated.
    • getEnableSequential

      public Boolean getEnableSequential()
      Deprecated.
    • getBboxList

      public List<List<List<Integer>>> getBboxList()
      Deprecated.
      The bounding boxes for the images. The structure is [image_index][box_index][x1, y1, x2, y2].
    • getThinkingMode

      public String getThinkingMode()
      Deprecated.
      Thinking mode for image generation. Controls the level of reasoning and planning in the generation process.
    • getColorPalette

      public List<ColorPalette> getColorPalette()
      Deprecated.
      Color palette configuration for controlling color distribution in generated images.
    • setMessages

      public void setMessages(List<ImageGenerationMessage> messages)
      Deprecated.
    • setSeed

      public void setSeed(Integer seed)
      Deprecated.
    • setIncrementalOutput

      public void setIncrementalOutput(Boolean incrementalOutput)
      Deprecated.
      Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false eg(false):
       I
       I like
       I like apple
       when true:
       I
       like
       apple
       
    • setModalities

      public void setModalities(List<String> modalities)
      Deprecated.
      Output format of the model including "text" and "audio". Default value: ["text"]
    • setResponseFormat

      public void setResponseFormat(ResponseFormat responseFormat)
      Deprecated.
      response format
    • setNegativePrompt

      public void setNegativePrompt(String negativePrompt)
      Deprecated.
      negative prompt
    • setPromptExtend

      public void setPromptExtend(Boolean promptExtend)
      Deprecated.
      prompt extend
    • setWatermark

      public void setWatermark(Boolean watermark)
      Deprecated.
      watermark
    • setSize

      public void setSize(String size)
      Deprecated.
      picture size
    • setN

      public void setN(Integer n)
      Deprecated.
      number of images
    • setEnableInterleave

      public void setEnableInterleave(Boolean enableInterleave)
      Deprecated.
    • setStream

      public void setStream(Boolean stream)
      Deprecated.
    • setMaxImages

      public void setMaxImages(Integer maxImages)
      Deprecated.
    • setEnableSequential

      public void setEnableSequential(Boolean enableSequential)
      Deprecated.
    • setBboxList

      public void setBboxList(List<List<List<Integer>>> bboxList)
      Deprecated.
      The bounding boxes for the images. The structure is [image_index][box_index][x1, y1, x2, y2].
    • setThinkingMode

      public void setThinkingMode(String thinkingMode)
      Deprecated.
      Thinking mode for image generation. Controls the level of reasoning and planning in the generation process.
    • setColorPalette

      public void setColorPalette(List<ColorPalette> colorPalette)
      Deprecated.
      Color palette configuration for controlling color distribution in generated images.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase