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 body is of type object
.
Project rate limit updated successfully.
Represents a project rate limit config.
Was this page helpful?