curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/rate_limits/{rate_limit_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_requests_per_1_minute": 123,
"max_tokens_per_1_minute": 123,
"max_images_per_1_minute": 123,
"max_audio_megabytes_per_1_minute": 123,
"max_requests_per_1_day": 123,
"batch_1_day_max_input_tokens": 123
}
'{
"object": "project.rate_limit",
"id": "<string>",
"model": "<string>",
"max_requests_per_1_minute": 123,
"max_tokens_per_1_minute": 123,
"max_images_per_1_minute": 123,
"max_audio_megabytes_per_1_minute": 123,
"max_requests_per_1_day": 123,
"batch_1_day_max_input_tokens": 123
}Updates a project rate limit.
curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/rate_limits/{rate_limit_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_requests_per_1_minute": 123,
"max_tokens_per_1_minute": 123,
"max_images_per_1_minute": 123,
"max_audio_megabytes_per_1_minute": 123,
"max_requests_per_1_day": 123,
"batch_1_day_max_input_tokens": 123
}
'{
"object": "project.rate_limit",
"id": "<string>",
"model": "<string>",
"max_requests_per_1_minute": 123,
"max_tokens_per_1_minute": 123,
"max_images_per_1_minute": 123,
"max_audio_megabytes_per_1_minute": 123,
"max_requests_per_1_day": 123,
"batch_1_day_max_input_tokens": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the project.
The ID of the rate limit.
The project rate limit update request payload.
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.
Project rate limit updated successfully.
Represents a project rate limit config.
The object type, which is always project.rate_limit
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.
Was this page helpful?