Get images usage details for the organization.
Query Parameters
Start time (Unix seconds) of the query time range, inclusive.
End time (Unix seconds) of the query time range, exclusive.
Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
Allowed values:1m1h1d
Default:1d
Return only usages for these sources. Possible values are image.generation, image.edit, image.variation or any combination of them.
Allowed values:image.generationimage.editimage.variation
Return only usages for these image sizes. Possible values are 256x256, 512x512, 1024x1024, 1792x1792, 1024x1792 or any combination of them.
Allowed values:256x256512x5121024x10241792x17921024x1792
Return only usage for these projects.
Return only usage for these users.
Return only usage for these API keys.
Return only usage for these models.
Group the usage data by the specified fields. Support fields include project_id, user_id, api_key_id, model, size, source or any combination of them.
Allowed values:project_iduser_idapi_key_idmodelsizesource
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
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Response
200 application/json
Response
Usage data retrieved successfully.
UsageResponse
Allowed values:page
Show Child Parameters
Authentication
Query Parameters
Get moderations usage details for the organization.
Query Parameters
Start time (Unix seconds) of the query time range, inclusive.
End time (Unix seconds) of the query time range, exclusive.
Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
Allowed values:1m1h1d
Default:1d
Return only usage for these projects.
Return only usage for these users.
Return only usage for these API keys.
Return only usage for these models.
Group the usage data by the specified fields. Support fields include project_id, user_id, api_key_id, model or any combination of them.
Allowed values:project_iduser_idapi_key_idmodel
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
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Response
200 application/json
Response
Usage data retrieved successfully.
UsageResponse
Allowed values:page
Show Child Parameters
Authentication
Query Parameters
Get vector stores usage details for the organization.
Query Parameters
Start time (Unix seconds) of the query time range, inclusive.
End time (Unix seconds) of the query time range, exclusive.
Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
Allowed values:1m1h1d
Default:1d
Return only usage for these projects.
Group the usage data by the specified fields. Support fields include project_id.
Allowed values:project_id
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
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Response
200 application/json
Response
Usage data retrieved successfully.
UsageResponse
Allowed values:page
Show Child Parameters
Authentication
Query Parameters
Returns a list of invites in the organization.
Query Parameters
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Default:20
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
Response
200 application/json
Response
Invites listed successfully.
InviteListResponse
The object type, which is always list
Allowed values:list
Represents an individual invite to the organization.
Show Child Parameters
The first invite_id in the retrieved list
The last invite_id in the retrieved list
The has_more property is used for pagination to indicate there are additional results.
Authentication
Query Parameters
Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.
Body
application/json
Body
The invite request payload.
InviteRequest
Send an email to this address
owner or reader
Allowed values:readerowner
An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior.
Show Child Parameters
Response
200 application/json
Response
User invited successfully.
Invite
Represents an individual invite to the organization.
The object type, which is always organization.invite
Allowed values:organization.invite
The identifier, which can be referenced in API endpoints
The email address of the individual to whom the invite was sent
owner or reader
Allowed values:ownerreader
accepted,expired, or pending
Allowed values:acceptedexpiredpending
The Unix timestamp (in seconds) of when the invite was sent.
The Unix timestamp (in seconds) of when the invite expires.
The Unix timestamp (in seconds) of when the invite was accepted.
The projects that were granted membership upon acceptance of the invite.