Class ImageGenCompletedEvent.Usage
- 
                    
                    - All Implemented Interfaces:
 
 public final class ImageGenCompletedEvent.UsageFor gpt-image-1only, the token usage information for the image generation.
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classImageGenCompletedEvent.Usage.BuilderA builder for Usage. public final classImageGenCompletedEvent.Usage.InputTokensDetailsThe input tokens detailed information for the image generation. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final LonginputTokens()The number of tokens (images and text) in the input prompt. final ImageGenCompletedEvent.Usage.InputTokensDetailsinputTokensDetails()The input tokens detailed information for the image generation. final LongoutputTokens()The number of image tokens in the output image. final LongtotalTokens()The total number of tokens (images and text) used for the image generation. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<ImageGenCompletedEvent.Usage.InputTokensDetails>_inputTokensDetails()Returns the raw JSON value of inputTokensDetails. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final ImageGenCompletedEvent.Usage.BuildertoBuilder()final ImageGenCompletedEvent.Usagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageGenCompletedEvent.Usage.Builderbuilder()Returns a mutable builder for constructing an instance of Usage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        inputTokensfinal Long inputTokens() The number of tokens (images and text) in the input prompt. 
 - 
                                        inputTokensDetailsfinal ImageGenCompletedEvent.Usage.InputTokensDetails inputTokensDetails() The input tokens detailed information for the image generation. 
 - 
                                        outputTokensfinal Long outputTokens() The number of image tokens in the output image. 
 - 
                                        totalTokensfinal Long totalTokens() The total number of tokens (images and text) used for the image generation. 
 - 
                                        _inputTokensfinal JsonField<Long> _inputTokens() Returns the raw JSON value of inputTokens. Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputTokensDetailsfinal JsonField<ImageGenCompletedEvent.Usage.InputTokensDetails> _inputTokensDetails() Returns the raw JSON value of inputTokensDetails. Unlike inputTokensDetails, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputTokensfinal JsonField<Long> _outputTokens() Returns the raw JSON value of outputTokens. Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _totalTokensfinal JsonField<Long> _totalTokens() Returns the raw JSON value of totalTokens. Unlike totalTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal ImageGenCompletedEvent.Usage.Builder toBuilder() 
 - 
                                        validatefinal ImageGenCompletedEvent.Usage validate() 
 - 
                                        builderfinal static ImageGenCompletedEvent.Usage.Builder builder() Returns a mutable builder for constructing an instance of Usage. The following fields are required: .inputTokens() .inputTokensDetails() .outputTokens() .totalTokens()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-