Create API Key
This API is used to create a new key
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
budget_durationstringOptional
durationstringOptional
key_aliasstring · min: 5Required
max_budgetintegerOptional
modelsstring[]Optional
project_idstringOptional
team_idstringOptional
user_idstringOptional
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200messagestringOptionalExample:
Success400
Invalid request
application/json
post/core/dekallm/keys
POST /core/dekallm/keys HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"budget_duration": "text",
"duration": "text",
"key_alias": "text",
"max_budget": 1,
"models": [
"text"
],
"project_id": "text",
"team_id": "text",
"user_id": "text"
}{
"code": 200,
"data": {
"aliases": {},
"allowed_cache_controls": [
"text"
],
"bloked": true,
"budget_duration": "text",
"budget_id": "text",
"budget_reset_at": "text",
"config": {},
"expires": "text",
"key": "text",
"key_alias": "text",
"key_name": "text",
"litellm_budget_table": "text",
"max_budget": 1,
"max_parallel_requests": "text",
"metadata": {
"tags": "text"
},
"model_max_budget": {},
"model_spend": {},
"models": [
"text"
],
"permissions": {},
"rpm_limit": 1,
"soft_budget_cooldown": true,
"spend": 1,
"team_id": "text",
"token": "text",
"token_id": "text",
"tpm_limit": 1,
"user_id": "text"
},
"message": "Success"
}Last updated