Class UsageImagesParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class UsageImagesParams implements Params
Get images usage details for the organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageImagesParams.BuilderA builder for UsageImagesParams.
public final classUsageImagesParams.BucketWidthWidth of each time bucket in response. Currently
1m,1hand1dare supported, default to1d.public final classUsageImagesParams.GroupBypublic final classUsageImagesParams.Sizepublic final classUsageImagesParams.Source
-
Method Summary
Modifier and Type Method Description final LongstartTime()Start time (Unix seconds) of the query time range, inclusive. final Optional<List<String>>apiKeyIds()Return only usage for these API keys. final Optional<UsageImagesParams.BucketWidth>bucketWidth()Width of each time bucket in response. final Optional<Long>endTime()End time (Unix seconds) of the query time range, exclusive. final Optional<List<UsageImagesParams.GroupBy>>groupBy()Group the usage data by the specified fields. final Optional<Long>limit()Specifies the number of buckets to return. final Optional<List<String>>models()Return only usage for these models. final Optional<String>page()A cursor for use in pagination. final Optional<List<String>>projectIds()Return only usage for these projects. final Optional<List<UsageImagesParams.Size>>sizes()Return only usages for these image sizes. final Optional<List<UsageImagesParams.Source>>sources()Return only usages for these sources. final Optional<List<String>>userIds()Return only usage for these users. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final UsageImagesParams.BuildertoBuilder()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageImagesParams.Builderbuilder()Returns a mutable builder for constructing an instance of UsageImagesParams. -
-
Method Detail
-
bucketWidth
final Optional<UsageImagesParams.BucketWidth> bucketWidth()
Width of each time bucket in response. Currently
1m,1hand1dare supported, default to1d.
-
groupBy
final Optional<List<UsageImagesParams.GroupBy>> groupBy()
Group the usage data by the specified fields. Support fields include
project_id,user_id,api_key_id,model,size,sourceor any combination of them.
-
limit
final Optional<Long> limit()
Specifies the number of buckets to return.
bucket_width=1d: default: 7, max: 31bucket_width=1h: default: 24, max: 168bucket_width=1m: default: 60, max: 1440
-
page
final Optional<String> page()
A cursor for use in pagination. Corresponding to the
next_pagefield from the previous response.
-
projectIds
final Optional<List<String>> projectIds()
Return only usage for these projects.
-
sizes
final Optional<List<UsageImagesParams.Size>> sizes()
Return only usages for these image sizes. Possible values are
256x256,512x512,1024x1024,1792x1792,1024x1792or any combination of them.
-
sources
final Optional<List<UsageImagesParams.Source>> sources()
Return only usages for these sources. Possible values are
image.generation,image.edit,image.variationor any combination of them.
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final UsageImagesParams.Builder toBuilder()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static UsageImagesParams.Builder builder()
Returns a mutable builder for constructing an instance of UsageImagesParams.
The following fields are required:
.startTime()
-
-
-
-