| name | gamma-cost-tuning |
| description | Optimize Gamma usage costs and manage API spending.
Use when reducing API costs, implementing usage quotas,
or planning for scale with budget constraints.
Trigger with phrases like "gamma cost", "gamma billing",
"gamma budget", "gamma expensive", "gamma pricing".
|
| allowed-tools | Read, Write, Edit |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","gamma","api","scaling","cost-optimization"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Gamma Cost Tuning
Overview
Optimize Gamma API usage to minimize credit consumption. Gamma uses a credit-based billing system where costs are driven by image generation model tier and content complexity. API access requires Pro or higher subscription.
Prerequisites
- Active Gamma Pro/Ultra/Teams/Business subscription
- Understanding of credit system
- Completed
gamma-install-auth setup
Gamma Credit System
Image Model Tiers
| Tier | Credits per Image | Quality Level |
|---|
| Standard | 2-15 | Good for internal/draft presentations |
| Advanced | 20-33 | Higher quality, more detail |
| Premium | 34-75 | Best quality images |
| Ultra | 30-125 | Highest fidelity, photorealistic |
Card text generation also costs credits based on the AI model used.
Plan Comparison
| Feature | Pro | Ultra | Teams | Business |
|---|
| Monthly credits | Included | More credits | Team pool | Custom |
| API access | Yes | Yes | Yes | Yes |
| Max cards | Standard | Up to 75 | Standard | Custom |
| Ad-hoc credit purchase | Yes | Yes | Yes | Yes |
| Auto-recharge | Yes | Yes | Yes | Yes |
Instructions
Step 1: Track Credit Usage
interface UsageEntry {
generationId: string;
creditsUsed: number;
outputFormat: string;
timestamp: ;
}
{
: [] = [];
() {
..(entry);
}
(): { : ; : ; : } {
today = ().();
todayUsage = ..(
u..() === today
);
total = todayUsage.( sum + u., );
{
total,
: todayUsage.,
: todayUsage. > ? .(total / todayUsage.) : ,
};
}
(): { : ; : } {
thisMonth = ().();
monthUsage = ..(
u..() === thisMonth
);
{
: monthUsage.( sum + u., ),
: monthUsage.,
};
}
}
tracker = ();
() {
{ generationId } = gamma.(request);
result = (gamma, generationId);
tracker.({
generationId,
: result. ?? ,
: request. ?? ,
: (),
});
result;
}