Package com.openai.models.images
Class ImageEditCompletedEvent.Usage.InputTokensDetails
-
- All Implemented Interfaces:
public final class ImageEditCompletedEvent.Usage.InputTokensDetailsThe input tokens detailed information for the image generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageEditCompletedEvent.Usage.InputTokensDetails.BuilderA builder for InputTokensDetails.
-
Method Summary
Modifier and Type Method Description final LongimageTokens()The number of image tokens in the input prompt. final LongtextTokens()The number of text tokens in the input prompt. 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 ImageEditCompletedEvent.Usage.InputTokensDetails.BuildertoBuilder()final ImageEditCompletedEvent.Usage.InputTokensDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageEditCompletedEvent.Usage.InputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of InputTokensDetails. -
-
Method Detail
-
imageTokens
final Long imageTokens()
The number of image tokens in the input prompt.
-
textTokens
final Long textTokens()
The number of text tokens in the input prompt.
-
_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 ImageEditCompletedEvent.Usage.InputTokensDetails.Builder toBuilder()
-
validate
final ImageEditCompletedEvent.Usage.InputTokensDetails validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ImageEditCompletedEvent.Usage.InputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokensDetails.
The following fields are required:
.imageTokens() .textTokens()
-
-
-
-