Skip to content

AI FinOps

Managing AI costs at the governance level to keep AI operations sustainable.

AI cost structure

    flowchart TD
    A["Total AI cost"] --> B["LLM API cost<br/>Token usage fees"]
    A --> C["Infrastructure cost<br/>GPU / cloud"]
    A --> D["Data cost<br/>Storage / transfer"]
    A --> E["Operational cost<br/>Labor / tooling"]

    B --> F["Input tokens<br/>Context"]
    B --> G["Output tokens<br/>Generated results"]

    style A fill:#0891B2,stroke:#0E7490,color:#fff
    style B fill:#EA580C,stroke:#C2410C,color:#fff
    style C fill:#2563EB,stroke:#1D4ED8,color:#fff
  

Cost-optimization levers

1. Model downgrading (highest impact)

Model switchCost savingsPerformance impact
Claude Opus → Sonnet~80% savingsNegligible for lower-complexity tasks
Claude Sonnet → Haiku~70% savingsNegligible for simple classification/summarization
GPT-4o → GPT-4o-mini~85% savingsSufficient for most tasks

2. Prompt caching

# Example: Anthropic prompt caching
# Use caching when the system prompt repeats across calls
messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": long_system_context,
                "cache_control": {"type": "ephemeral"}  # Mark for caching
            },
            {"type": "text", "text": user_query}
        ]
    }
]
# A cache hit cuts input token cost by 90%

3. Batch processing

For workloads that don’t need a real-time response, the Batch API cuts cost by 50%:

# Anthropic Message Batches API
batch_request = {
    "requests": [
        {"custom_id": "task_1", "params": {...}},
        {"custom_id": "task_2", "params": {...}},
    ]
}

FinOps dashboard KPIs

KPIDescriptionTarget
Cost per feature unitCost per document summarizedWithin budget
Cache hit ratePrompt-caching efficiency> 40%
Token efficiencyToken usage relative to output qualityImproving trend
Monthly cost growth rateMonth-over-month cost increaseAt or below usage growth rate