Limits and Quotas (GenAI)¶
This page outlines the operations, endpoints, parameters, and example requests and responses for the Limits and Quotas (GenAI).
GET /api/v2/genai/userLimits/llmApiCalls/¶
Retrieve the number of LLM API calls the user has made which count towards the usage limit.
Code samples¶
# You can also use wget
curl -X GET https://app.datarobot.com/api/v2/genai/userLimits/llmApiCalls/ \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Example responses¶
200 Response
{
"counter": 0
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful Response | RetrieveUserLimitCounterResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
GET /api/v2/genai/userLimits/vectorDatabases/¶
Retrieve the number of vector databases the user has created which count towards the usage limit.
Code samples¶
# You can also use wget
curl -X GET https://app.datarobot.com/api/v2/genai/userLimits/vectorDatabases/ \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Example responses¶
200 Response
{
"counter": 0
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful Response | RetrieveUserLimitCounterResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
Schemas¶
HTTPValidationErrorResponse
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
HTTPValidationErrorResponse
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
detail | [ValidationError] | false | none |
RetrieveUserLimitCounterResponse
{
"counter": 0
}
RetrieveUserLimitCounterResponse
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
counter | integer | true | The number of completed operations which count towards the usage limit. |
ValidationError
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
ValidationError
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
loc | [anyOf] | true | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | integer | false | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
msg | string | true | none | |
type | string | true | none |