Skip to content
Back to skills

2595 Team Model Add 5c354768

ASecurity

:::info This is an Enterprise feature. [Enterprise Pricing](https://www.litellm.ai/#pricing) [Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions) ::: Allow team to add a their own models/key for that project - so any OpenAI call they make uses their OpenAI key. Useful for teams that want to call their own finetuned models.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
code-qualitybashazuredebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2595-team_model_add_5c354768 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2595 Team Model Add 5c354768?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2595 Team Model Add 5c354768
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2595-team-model-add-5c354768/badge)](https://www.skillsdirectory.com/skills/tools-only-2595-team-model-add-5c354768)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# ✨ Allow Teams to Add Models

:::info

This is an Enterprise feature.
[Enterprise Pricing](https://www.litellm.ai/#pricing)

[Contact us here to get a free trial](https://calendly.com/d/cx9p-5yf-2nm/litellm-introductions)

:::

Allow team to add a their own models/key for that project - so any OpenAI call they make uses their OpenAI key.

Useful for teams that want to call their own finetuned models.

## Specify Team ID in `/model/add` endpoint


```bash
curl -L -X POST 'http://0.0.0.0:4000/model/new' \
-H 'Authorization: Bearer sk-******2ql3-sm28WU0tTAmA' \ # πŸ‘ˆ Team API Key (has same 'team_id' as below)
-H 'Content-Type: application/json' \
-d '{
  "model_name": "my-team-model", # πŸ‘ˆ Call LiteLLM with this model name
  "litellm_params": {
    "model": "openai/gpt-4o",
    "custom_llm_provider": "openai",
    "api_key": "******ccb07",
    "api_base": "https://my-endpoint-sweden-berri992.openai.azure.com",
    "api_version": "2023-12-01-preview"
  },
  "model_info": {
    "team_id": "e59e2671-a064-436a-a0fa-16ae96e5a0a1" # πŸ‘ˆ Specify the team ID it belongs to
  }
}'

```

## Test it! 

```bash
curl -L -X POST 'http://0.0.0.0:4000/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-******2ql3-sm28WU0tTAmA' \ # πŸ‘ˆ Team API Key
-d '{
  "model": "my-team-model", # πŸ‘ˆ team model name
  "messages": [
    {
      "role": "user",
      "content": "What's the weather like in Boston today?"
    }
  ]
}'

```

## Debugging

### 'model_name' not found 

Check if model alias exists in team table. 

```bash
curl -L -X GET 'http://localhost:4000/team/info?team_id=e59e2671-a064-436a-a0fa-16ae96e5a0a1' \
-H 'Authorization: Bearer sk-******2ql3-sm28WU0tTAmA' \
```

**Expected Response:**

```json
{
    {
    "team_id": "e59e2671-a064-436a-a0fa-16ae96e5a0a1",
    "team_info": {
        ...,
        "litellm_model_table": {
            "model_aliases": {
                "my-team-model": # πŸ‘ˆ public model name "model_name_e59e2671-a064-436a-a0fa-16ae96e5a0a1_e81c9286-2195-4bd9-81e1-cf393788a1a0" πŸ‘ˆ internally generated model name (used to ensure uniqueness)
            },
            "created_by": "default_user_id",
            "updated_by": "default_user_id"
        }
    },
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.