Class BatchUsage
- 
                    
                    - All Implemented Interfaces:
 
 public final class BatchUsageRepresents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used. Only populated on batches created after September 7, 2025. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classBatchUsage.BuilderA builder for BatchUsage. public final classBatchUsage.InputTokensDetailsA detailed breakdown of the input tokens. public final classBatchUsage.OutputTokensDetailsA detailed breakdown of the output tokens. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final LonginputTokens()The number of input tokens. final BatchUsage.InputTokensDetailsinputTokensDetails()A detailed breakdown of the input tokens. final LongoutputTokens()The number of output tokens. final BatchUsage.OutputTokensDetailsoutputTokensDetails()A detailed breakdown of the output tokens. final LongtotalTokens()The total number of tokens used. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<BatchUsage.InputTokensDetails>_inputTokensDetails()Returns the raw JSON value of inputTokensDetails. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<BatchUsage.OutputTokensDetails>_outputTokensDetails()Returns the raw JSON value of outputTokensDetails. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final BatchUsage.BuildertoBuilder()final BatchUsagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchUsage.Builderbuilder()Returns a mutable builder for constructing an instance of BatchUsage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        inputTokensfinal Long inputTokens() The number of input tokens. 
 - 
                                        inputTokensDetailsfinal BatchUsage.InputTokensDetails inputTokensDetails() A detailed breakdown of the input tokens. 
 - 
                                        outputTokensfinal Long outputTokens() The number of output tokens. 
 - 
                                        outputTokensDetailsfinal BatchUsage.OutputTokensDetails outputTokensDetails() A detailed breakdown of the output tokens. 
 - 
                                        totalTokensfinal Long totalTokens() The total number of tokens used. 
 - 
                                        _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<BatchUsage.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. 
 - 
                                        _outputTokensDetailsfinal JsonField<BatchUsage.OutputTokensDetails> _outputTokensDetails() Returns the raw JSON value of outputTokensDetails. Unlike outputTokensDetails, 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 BatchUsage.Builder toBuilder() 
 - 
                                        validatefinal BatchUsage validate() 
 - 
                                        builderfinal static BatchUsage.Builder builder() Returns a mutable builder for constructing an instance of BatchUsage. The following fields are required: .inputTokens() .inputTokensDetails() .outputTokens() .outputTokensDetails() .totalTokens()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-