key_generate
Create a new LiteLLM Proxy API key with configurable model access, budget cap, and expiration time.
Instructions
Generate a new LiteLLM Proxy API key (/key/generate)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "key_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | List of models the key is allowed to access | |
| team_id | No | Optional Team ID to associate with the key | |
| duration | No | Duration for the key to remain valid (e.g., 1h, 30d) | |
| metadata | No | Any additional metadata to store with the key | |
| max_budget | No | Maximum spend budget in USD |