Tool

Get llm total costs for project

Get LLM Total Costs for Project is an AI tool that provides detailed daily cost analytics for various large language models (LLMs) used in a project. It fetches and displays the total and daily costs of each model over a specified timeframe, helping teams monitor and optimize their AI expenses efficiently.

posthog

Features

  • Fetches total daily costs for each LLM model used in a project.
  • Supports customizable tracking periods with a default of 7 days.
  • Sorts cost data by model name and highlights the highest cost model in bold.
  • Provides detailed cost breakdown by date for accurate expense monitoring.
  • Outputs results in a clear Markdown formatted table for easy reading and sharing.

Benefits

  • Enables precise tracking of AI model costs to avoid budget overruns.
  • Helps identify the most expensive models for targeted optimization.
  • Simplifies cost reporting with well-structured output formats.
  • Facilitates data-driven decisions regarding AI resource allocation.
  • Saves time by automating cost aggregation and visualization tasks.

Description

Fetches the total LLM daily costs for each model for a project over a given number of days. If no number of days is provided, it defaults to 7. The results are sorted by model name. The total cost is rounded to 4 decimal places. The query is executed against the project's data warehouse. Show the results as a Markdown formatted table with the following information for each model: Model name, Total cost in USD, Each day's date, Each day's cost in USD. Write in bold the model name with the highest total cost. Properly render the markdown table in the response.

Parameters

2 parameters

NameTypeDescription
projectIdrequiredinteger

daysnumber

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy