All templates

Automated Groq API Usage and Cost Tracking

Every Monday, WebRun opens the Groq console, reads last week's requests, tokens, and spend broken down by API key, writes one dated row per key into Airtable, and posts a short Notion note showing how the week compares with the weeks before it.

Runs on WebRun · Strict Lockdown policy
Every Monday at 9:00 AM WebRunorchestrates each step
1 Groq read usage and billing
2 Airtable write the week's row
3 Notion post the trend
In short

How do I track my Groq API usage and cost each week?

WebRun opens the Groq console every Monday and reads the last seven days of requests, tokens, and spend, split by API key. It writes a dated row per key into Airtable with cost per thousand tokens, then posts a short Notion note showing how the week's volume and spend compare with previous weeks.

  • A quiet climb in spend is visible before the invoice arrives
  • Cost sits next to volume every week, not just at billing time
  • Spend split by API key so you know which project drives it

Built for engineering leads · AI product teams · startup founders · platform engineers

Step by step

What does WebRun do on every run?

The exact actions WebRun takes, in order - in plain language, so you can adjust anything.

  1. WebRun signs in and gets to work

    Opens console.groq.com in a real browser with your saved login - no setup, no API keys.

  2. 1
    Groq - read usage and billing
    groq.com
    WebRun in Groq: read usage and billing
    WebRun opens Groq to read usage and billing.
    • Open the Groq console and go to usage for the last seven days
    • Capture request count and token totals, split by API key where the console shows it
    • Open billing and read the spend recorded for the same period
    • Note anything unusual, such as a key with no traffic or a day well above the rest

    Done when Last week's requests, tokens, and spend have been read from the console.

  3. 2
    Airtable - write the week's row
    airtable.com
    WebRun in Airtable: write the week's row
    WebRun opens Airtable to write the week's row.
    • Open your usage base and add a dated row for the week
    • Fill in requests, tokens, and spend per API key
    • Add a cost per thousand tokens column so efficiency is comparable across weeks
    • Leave earlier rows untouched so the history builds up

    Done when This week's usage and cost are recorded in Airtable next to the previous weeks.

  4. 3
    Notion - post the trend
    notion.so
    WebRun in Notion: post the trend
    WebRun opens Notion to post the trend.
    • Post a short note to your engineering page with this week's totals
    • Show the change against the previous week in both volume and spend
    • Call out any key whose share of spend moved sharply

    Done when The team can see this week's spend and how it moved.

Run settings

How is each run configured?

Starting pageWhere Chrome opens at the start of each run
console.groq.com
ScheduleRuns automatically on this cadence
Every Monday at 9:00 AM
DeliveryHow each run's result reaches you
Weekly usage table · Airtable
OutputWhat each run produces - A dated row per API key with requests, tokens, spend, and cost per thousand tokens for the week.
Table
Setup & safety

Secure by default

Connect once, stays signed in

WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.

Your credentials stay in your own private environment - WebRun never stores your passwords.
Strict Lockdown

Every action is checked against this policy before it runs.

Domains ALLOWLIST
Typed input ALLOW
Shell command BLOCK
File uploads BLOCK
Runs in a contained environment More on policies
Good to know

Questions, answered

Does it change anything in my Groq account?

No. WebRun only reads the usage and billing pages in the console. It never creates or revokes an API key, changes a plan, edits a limit, or makes any payment.

Why record it weekly instead of reading the dashboard?

Because the console shows the current period, not the shape of the last six months. A dated Airtable row per week turns a moving number into a trend you can plot before the invoice explains it.

Can it split spend by API key?

Yes, wherever the Groq console reports usage per key. Each key gets its own row, so you can see which project or environment is driving the week's cost.

Put this on autopilot.

Turn it on in minutes - or have our team set it up for you.