| name | anima-cost-tuning |
| description | Optimize Anima API costs through caching, incremental generation, and tier selection.
Use when managing Anima API usage, reducing unnecessary code generations,
or right-sizing your Anima plan for team size.
Trigger: "anima cost", "anima pricing", "anima budget", "anima API usage".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","figma","anima","cost-optimization"] |
| compatibility | Designed for Claude Code |
Anima Cost Tuning
Pricing Context
Anima uses partner-based pricing (not self-service). API access is currently granted to partners with custom agreements. Costs are typically per-generation or per-seat.
Cost Optimization Strategies
| Strategy | Savings | Implementation |
|---|
| Generation cache | 60-80% | Cache results; only regenerate on design change |
| Incremental generation | 40-60% | Detect changed components; skip unchanged |
| Batch scheduling | 20-30% | Generate during off-peak; avoid real-time |
| Output reuse | 30-50% | Generate once, customize programmatically |
Instructions
Step 1: Usage Tracker
interface GenerationRecord {
timestamp: string;
fileKey: string;
nodeId: string;
cached: boolean;
durationMs: number;
}
class AnimaUsageTracker {
private records: GenerationRecord[] = [];
record(entry: GenerationRecord): void { this.records.push(entry); }
getReport(): { total: number; cached: number; savings: string } {
const total = ..;
cached = ..( r.).;
{
total,
cached,
: total > ? : ,
};
}
}