Skip to content
Back to skills

1236 Provider Discounts F7c1ee52

ASecurity

Apply percentage-based discounts to specific providers. This is useful for negotiated enterprise pricing with providers.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsgobashawsazuregit

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1236-provider_discounts_f7c1ee52 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1236 Provider Discounts F7c1ee52?

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

Security grade badge for 1236 Provider Discounts F7c1ee52
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1236-provider-discounts-f7c1ee52/badge)](https://www.skillsdirectory.com/skills/tools-only-1236-provider-discounts-f7c1ee52)

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

SKILL.md
# Provider Discounts

Apply percentage-based discounts to specific providers. This is useful for negotiated enterprise pricing with providers.

## Usage with LiteLLM Proxy Server

**Step 1: Add discount config to config.yaml**

```yaml
# Apply 5% discount to all Vertex AI and Gemini costs
cost_discount_config:
  vertex_ai: 0.05  # 5% discount
  gemini: 0.05     # 5% discount
  openrouter: 0.05 # 5% discount
  # openai: 0.10   # 10% discount (example)
```

**Step 2: Start proxy**

```bash
litellm /path/to/config.yaml
```

The discount will be automatically applied to all cost calculations for the configured providers.


## How Discounts Work

- Discounts are applied **after** all other cost calculations (tokens, caching, tools, etc.)
- The discount is a percentage (0.05 = 5%, 0.10 = 10%, etc.)
- Discounts only apply to the configured providers
- Original cost, discount amount, and final cost are tracked in cost breakdown logs
- Discount information is returned in response headers:
  - `x-litellm-response-cost` - Final cost after discount
  - `x-litellm-response-cost-original` - Cost before discount
  - `x-litellm-response-cost-discount-amount` - Discount amount in USD

## Supported Providers

You can apply discounts to all LiteLLM supported providers. Common examples:

- `vertex_ai` - Google Vertex AI
- `gemini` - Google Gemini
- `openai` - OpenAI
- `anthropic` - Anthropic
- `azure` - Azure OpenAI
- `bedrock` - AWS Bedrock
- `cohere` - Cohere
- `openrouter` - OpenRouter

See the full list of providers in the [LlmProviders](https://github.com/BerriAI/litellm/blob/main/litellm/types/utils.py) enum.

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…