jeremylongshore/claude-code-plugins-plus-skills
deepgram-pack
plugins/saas-packs/deepgram-pack/skills/deepgram-cost-tuning/SKILL.md
January 22, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/deepgram-pack/skills/deepgram-cost-tuning/SKILL.md -a claude-code --skill deepgram-cost-tuningInstallation paths:
.claude/skills/deepgram-cost-tuning/# Deepgram Cost Tuning
## Overview
Optimize Deepgram usage and costs through smart model selection, audio preprocessing, and usage monitoring.
## Deepgram Pricing Overview
| Model | Price per Minute | Best For |
|-------|-----------------|----------|
| Nova-2 | $0.0043 | General transcription |
| Nova | $0.0043 | General transcription |
| Whisper Cloud | $0.0048 | Multilingual |
| Enhanced | $0.0145 | Legacy support |
| Base | $0.0048 | Basic transcription |
Additional Features:
- Speaker Diarization: +$0.0044/min
- Smart Formatting: Included
- Punctuation: Included
## Cost Optimization Strategies
### 1. Model Selection
Choose the most cost-effective model for your use case.
### 2. Audio Preprocessing
Reduce audio duration and optimize format.
### 3. Usage Monitoring
Track and control usage in real-time.
### 4. Caching
Avoid re-transcribing the same content.
## Examples
### Cost-Optimized Transcription Service
```typescript
// services/cost-optimized-transcription.ts
import { createClient } from '@deepgram/sdk';
interface CostConfig {
maxMonthlySpend: number;
warningThreshold: number; // percentage
model: string;
enabledFeatures: {
diarization: boolean;
smartFormat: boolean;
};
}
interface CostMetrics {
currentMonthMinutes: number;
currentMonthCost: number;
projectedMonthlyCost: number;
}
export class CostOptimizedTranscription {
private client;
private config: CostConfig;
private metrics: CostMetrics;
private modelCosts: Record<string, number> = {
'nova-2': 0.0043,
'nova': 0.0043,
'base': 0.0048,
'enhanced': 0.0145,
};
constructor(apiKey: string, config: Partial<CostConfig> = {}) {
this.client = createClient(apiKey);
this.config = {
maxMonthlySpend: config.maxMonthlySpend ?? 100,
warningThreshold: config.warningThreshold ?? 80,
model: config.model ?? 'nova-2',
enabledFeatures: config.enabledFeatures ?? {
diarization: false,
smartFormat: true,
},