The ID of the project.
Archives a project in the organization. Archived projects cannot be used or updated.
Path Parameters
Response
200 application/json
Response
Project archived successfully.
Project
Represents an individual project.
The identifier, which can be referenced in API endpoints
The object type, which is always organization.project
Allowed values:organization.project
The name of the project. This appears in reporting.
The Unix timestamp (in seconds) of when the project was created.
The Unix timestamp (in seconds) of when the project was archived or null.
active or archived
Allowed values:activearchived
Authentication
Path Parameters
Returns the rate limits per model for a project.
Query Parameters
A limit on the number of objects to be returned. The default is 100.
Default:100
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.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, beginning with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Path Parameters
The ID of the project.
Response
200 application/json
Response
Project rate limits listed successfully.
ProjectRateLimitListResponse
Allowed values:list
Represents a project rate limit config.
Show Child Parameters
Authentication
Path Parameters
Query Parameters
Updates a project rate limit.
Path Parameters
The ID of the project.
The ID of the rate limit.
Body
application/json
Body
The project rate limit update request payload.
ProjectRateLimitUpdateRequest
The maximum requests per minute.
The maximum tokens per minute.
The maximum images per minute. Only relevant for certain models.
The maximum audio megabytes per minute. Only relevant for certain models.
The maximum requests per day. Only relevant for certain models.
The maximum batch input tokens per day. Only relevant for certain models.
Response
application/json
Response
Project rate limit updated successfully.
ProjectRateLimit
Represents a project rate limit config.
The object type, which is always project.rate_limit
Allowed values:project.rate_limit
The identifier, which can be referenced in API endpoints.
The model this rate limit applies to.
The maximum requests per minute.
The maximum tokens per minute.
The maximum images per minute. Only present for relevant models.
The maximum audio megabytes per minute. Only present for relevant models.
The maximum requests per day. Only present for relevant models.
The maximum batch input tokens per day. Only present for relevant models.
Authentication
Path Parameters
Body
Returns a list of service accounts in the project.
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.
Path Parameters
The ID of the project.
Response
application/json
Response
Project service accounts listed successfully.
ProjectServiceAccountListResponse
Allowed values:list
Represents an individual service account in a project.
Show Child Parameters
Authentication
Path Parameters
Query Parameters
Creates a new service account in the project. This also returns an unredacted API key for the service account.
Path Parameters
The ID of the project.
Body
application/json
Body
The project service account create request payload.
ProjectServiceAccountCreateRequest
The name of the service account being created.
Response
application/json
Response
Project service account created successfully.
ProjectServiceAccountCreateResponse
Allowed values:organization.project.service_account
Service accounts can only have one role of type member
Allowed values:member