Package com.openai.models.images
Class ImagesResponse.Usage.OutputTokensDetails
-
- All Implemented Interfaces:
public final class ImagesResponse.Usage.OutputTokensDetailsThe output token details for the image generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImagesResponse.Usage.OutputTokensDetails.BuilderA builder for OutputTokensDetails.
-
Method Summary
Modifier and Type Method Description final LongimageTokens()The number of image output tokens generated by the model. final LongtextTokens()The number of text output tokens generated by the model. final JsonField<Long>_imageTokens()Returns the raw JSON value of imageTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final ImagesResponse.Usage.OutputTokensDetails.BuildertoBuilder()final ImagesResponse.Usage.OutputTokensDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImagesResponse.Usage.OutputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of OutputTokensDetails. -
-
Method Detail
-
imageTokens
final Long imageTokens()
The number of image output tokens generated by the model.
-
textTokens
final Long textTokens()
The number of text output tokens generated by the model.
-
_imageTokens
final JsonField<Long> _imageTokens()
Returns the raw JSON value of imageTokens.
Unlike imageTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_textTokens
final JsonField<Long> _textTokens()
Returns the raw JSON value of textTokens.
Unlike textTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImagesResponse.Usage.OutputTokensDetails.Builder toBuilder()
-
validate
final ImagesResponse.Usage.OutputTokensDetails validate()
-
builder
final static ImagesResponse.Usage.OutputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of OutputTokensDetails.
The following fields are required:
.imageTokens() .textTokens()
-
-
-
-