Class Tool.ImageGeneration.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class Tool.ImageGeneration.BuilderA builder for ImageGeneration. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        typefinal Tool.ImageGeneration.Builder type(JsonValue type) Sets the field to an arbitrary JSON value. It is usually unnecessary to call this method because the field defaults to the following: JsonValue.from("image_generation")This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        backgroundfinal Tool.ImageGeneration.Builder background(Tool.ImageGeneration.Background background) Background type for the generated image. One of transparent,opaque, orauto. Default:auto.
 - 
                                        backgroundfinal Tool.ImageGeneration.Builder background(JsonField<Tool.ImageGeneration.Background> background) Sets Builder.background to an arbitrary JSON value. You should usually call Builder.background with a well-typed Background value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        inputFidelityfinal Tool.ImageGeneration.Builder inputFidelity(Tool.ImageGeneration.InputFidelity inputFidelity) Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for gpt-image-1. Unsupported forgpt-image-1-mini. Supportshighandlow. Defaults tolow.
 - 
                                        inputFidelityfinal Tool.ImageGeneration.Builder inputFidelity(Optional<Tool.ImageGeneration.InputFidelity> inputFidelity) Alias for calling Builder.inputFidelity with inputFidelity.orElse(null).
 - 
                                        inputFidelityfinal Tool.ImageGeneration.Builder inputFidelity(JsonField<Tool.ImageGeneration.InputFidelity> inputFidelity) Sets Builder.inputFidelity to an arbitrary JSON value. You should usually call Builder.inputFidelity with a well-typed InputFidelity value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        inputImageMaskfinal Tool.ImageGeneration.Builder inputImageMask(Tool.ImageGeneration.InputImageMask inputImageMask) Optional mask for inpainting. Contains image_url(string, optional) andfile_id(string, optional).
 - 
                                        inputImageMaskfinal Tool.ImageGeneration.Builder inputImageMask(JsonField<Tool.ImageGeneration.InputImageMask> inputImageMask) Sets Builder.inputImageMask to an arbitrary JSON value. You should usually call Builder.inputImageMask with a well-typed InputImageMask value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        modelfinal Tool.ImageGeneration.Builder model(Tool.ImageGeneration.Model model) The image generation model to use. Default: gpt-image-1.
 - 
                                        modelfinal Tool.ImageGeneration.Builder model(JsonField<Tool.ImageGeneration.Model> model) Sets Builder.model to an arbitrary JSON value. You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        moderationfinal Tool.ImageGeneration.Builder moderation(Tool.ImageGeneration.Moderation moderation) Moderation level for the generated image. Default: auto.
 - 
                                        moderationfinal Tool.ImageGeneration.Builder moderation(JsonField<Tool.ImageGeneration.Moderation> moderation) Sets Builder.moderation to an arbitrary JSON value. You should usually call Builder.moderation with a well-typed Moderation value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        outputCompressionfinal Tool.ImageGeneration.Builder outputCompression(Long outputCompression) Compression level for the output image. Default: 100. 
 - 
                                        outputCompressionfinal Tool.ImageGeneration.Builder outputCompression(JsonField<Long> outputCompression) Sets Builder.outputCompression to an arbitrary JSON value. You should usually call Builder.outputCompression with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        outputFormatfinal Tool.ImageGeneration.Builder outputFormat(Tool.ImageGeneration.OutputFormat outputFormat) The output format of the generated image. One of png,webp, orjpeg. Default:png.
 - 
                                        outputFormatfinal Tool.ImageGeneration.Builder outputFormat(JsonField<Tool.ImageGeneration.OutputFormat> outputFormat) Sets Builder.outputFormat to an arbitrary JSON value. You should usually call Builder.outputFormat with a well-typed OutputFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        partialImagesfinal Tool.ImageGeneration.Builder partialImages(Long partialImages) Number of partial images to generate in streaming mode, from 0 (default value) to 3. 
 - 
                                        partialImagesfinal Tool.ImageGeneration.Builder partialImages(JsonField<Long> partialImages) Sets Builder.partialImages to an arbitrary JSON value. You should usually call Builder.partialImages with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        qualityfinal Tool.ImageGeneration.Builder quality(Tool.ImageGeneration.Quality quality) The quality of the generated image. One of low,medium,high, orauto. Default:auto.
 - 
                                        qualityfinal Tool.ImageGeneration.Builder quality(JsonField<Tool.ImageGeneration.Quality> quality) Sets Builder.quality to an arbitrary JSON value. You should usually call Builder.quality with a well-typed Quality value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        sizefinal Tool.ImageGeneration.Builder size(Tool.ImageGeneration.Size size) The size of the generated image. One of 1024x1024,1024x1536,1536x1024, orauto. Default:auto.
 - 
                                        sizefinal Tool.ImageGeneration.Builder size(JsonField<Tool.ImageGeneration.Size> size) Sets Builder.size to an arbitrary JSON value. You should usually call Builder.size with a well-typed Size value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        additionalPropertiesfinal Tool.ImageGeneration.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal Tool.ImageGeneration.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal Tool.ImageGeneration.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal Tool.ImageGeneration.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal Tool.ImageGeneration.Builder removeAllAdditionalProperties(Set<String> keys) 
 - 
                                        buildfinal Tool.ImageGeneration build() Returns an immutable instance of ImageGeneration. Further updates to this Builder will not mutate the returned instance. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-