{"record":{"id":"160ed67a71cb9f1b","repo":"BerriAI/litellm","slug":"budget-limits-entry-max-budget-over-ceiling-max","errorCode":null,"errorMessage":"budget_limits entry max_budget ({over_ceiling.max_budget}) cannot exceed the caller's own max_budget ({delegation_ceiling}).","messagePattern":"budget_limits entry max_budget \\((.+?)\\) cannot exceed the caller's own max_budget \\((.+?)\\)\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/key_management_endpoints.py","lineNumber":737,"sourceCode":"            status_code=400,\n            detail={\"error\": (f\"budget_limits entry max_budget ({non_finite.max_budget}) must be a finite number.\")},\n        )\n    if user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN.value:\n        return\n    if is_ui_session_team_key:\n        return\n    if user_api_key_dict.is_session_token and team_table is None:\n        raise HTTPException(\n            status_code=400,\n            detail={\n                \"error\": (\"budget_limits cannot be set without specifying team_id when using a CLI session token.\")\n            },\n        )\n    if delegation_ceiling is None:\n        return\n    over_ceiling: Final = next((w for w in budget_limits if w.max_budget > delegation_ceiling), None)\n    if over_ceiling is not None:\n        raise HTTPException(\n            status_code=400,\n            detail={\n                \"error\": (\n                    f\"budget_limits entry max_budget ({over_ceiling.max_budget}) \"\n                    f\"cannot exceed the caller's own max_budget ({delegation_ceiling}).\"\n                )\n            },\n        )\n\n\nasync def validate_team_id_used_in_service_account_request(\n    team_id: str | None,\n    prisma_client: PrismaClient | None,\n):\n    \"\"\"\n    Validate team_id is used in the request body for generating a service account key\n    \"\"\"\n    if team_id is None:","sourceCodeStart":719,"sourceCodeEnd":755,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/key_management_endpoints.py#L719-L755","documentation":"Error \"budget_limits entry max_budget ({over_ceiling.max_budget}) cannot exceed the caller's own max_budget ({delegation_ceiling}).\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/key_management_endpoints.py:737 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set max_budget to a value at or below your own max_budget.","Ask a proxy admin with a higher budget ceiling to create the key."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}