The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
litellm_project Resource
Manages a project in LiteLLM. Projects sit between teams and keys in the hierarchy, allowing fine-grained budget and model access control within a team
Example Usage
resource "litellm_team" "research" {
team_alias = "research-team"
}
resource "litellm_project" "ml_experiments" {
team_id = litellm_team.research.id
project_alias = "ml-experiments"
description = "ML experimentation project"
models = ["gpt-5.6", "claude-opus-5"]
max_budget = 1000.0
soft_budget = 800.0
budget_duration = "30d"
tpm_limit = 500000
rpm_limit = 5000
tags = ["research", "gpu"]
metadata = {
cost_center = "R&D-001"
}
}
Argument Reference
The following arguments are supported:
team_id- (Required, Forces new resource) The team ID this project belongs toproject_alias- (Optional) Human-friendly name for the projectdescription- (Optional) Description of the project's purpose and use casemodels- (Optional) List of models the project can accessmetadata- (Optional) Map of metadata for the projecttags- (Optional) Tags associated with the projectmax_budget- (Optional) Maximum budget for this projectsoft_budget- (Optional) Soft budget limit for warningsbudget_duration- (Optional) Budget reset duration, for example1h,30dbudget_id- (Optional) Budget ID to associate with this projecttpm_limit- (Optional) Tokens per minute limitrpm_limit- (Optional) Requests per minute limitmax_parallel_requests- (Optional) Maximum parallel requests allowedmodel_max_budget- (Optional) Map of per-model budget limitsmodel_rpm_limit- (Optional) Map of per-model RPM limitsmodel_tpm_limit- (Optional) Map of per-model TPM limitsblocked- (Optional) Whether the project is blocked from making requests
Attribute Reference
In addition to all arguments above, the following attributes are exported:
id- The project ID assigned by LiteLLMspend- Current spend for the projectcreated_at- Timestamp when the project was createdupdated_at- Timestamp when the project was last updatedcreated_by- User that created the projectupdated_by- User that last updated the project
Import
Projects can be imported using the project ID:
terraform import litellm_project.example 4a422a4c-e246-4d02-a1eb-13e835cd0725