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

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .