POST
/organization/projects/{project_id}/rate_limits/{rate_limit_id}Modify a project rate limit
Updates the configured limits for a model-specific project rate limit. Supply project_id and rate_limit_id to identify the configuration, then include the limit values you want to change.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
project_idstringrequired
The unique identifier of the project containing the rate limit.
rate_limit_idstringrequired
The unique identifier of the project rate limit to update.
Project rate limit values to update; supply the limit fields that you want to change.
max_requests_per_1_minuteintegeroptional
The maximum requests per minute.
max_tokens_per_1_minuteintegeroptional
The maximum tokens per minute.
max_images_per_1_minuteintegeroptional
The maximum images per minute. Only relevant for certain models.
max_audio_megabytes_per_1_minuteintegeroptional
The maximum audio megabytes per minute. Only relevant for certain models.
max_requests_per_1_dayintegeroptional
The maximum requests per day. Only relevant for certain models.
batch_1_day_max_input_tokensintegeroptional
The maximum batch input tokens per day. Only relevant for certain models.
200Returns the updated project rate limit with its identifier, applicable model, and configured request, token, image, audio, and batch limits.
objectstringrequired
The object type, which is always `project.rate_limit`
idstringrequired
The identifier, which can be referenced in API endpoints.
modelstringrequired
The model this rate limit applies to.
max_requests_per_1_minuteintegerrequired
The maximum requests per minute.
max_tokens_per_1_minuteintegerrequired
The maximum tokens per minute.
max_images_per_1_minuteintegeroptional
The maximum images per minute. Only present for relevant models.
max_audio_megabytes_per_1_minuteintegeroptional
The maximum audio megabytes per minute. Only present for relevant models.
max_requests_per_1_dayintegeroptional
The maximum requests per day. Only present for relevant models.
batch_1_day_max_input_tokensintegeroptional
The maximum batch input tokens per day. Only present for relevant models.
400Returned when the rate limit update cannot be processed.
errorobjectrequired
Error handling
A 400 is returned when the rate limit update cannot be processed. project_id and rate_limit_id must identify the project rate limit, and each supplied limit value must be an integer.