← Blog
zapier automation cost-tracking June 11, 2026 6 min read

How to Track AI Costs in Zapier (OpenAI, Claude, DeepSeek)

Dashboard with cost charts representing Zapier AI workflow cost tracking

TL;DR: Replace Zapier's built-in OpenAI action with a Webhooks action pointing at https://tokonomics.ca/proxy/openai/chat/completions. Every AI call gets metered — cost per Zap, per model, per day. Setup takes 3 minutes, and the Free plan covers 100 calls/month.


The Hidden Cost of AI in Zapier

Zapier makes AI easy. Drop an "OpenAI: Send Prompt" action into your Zap, connect your API key, and it works. The problem is what happens at scale.

A Zap that runs 200 times per day with a GPT-4o prompt costs roughly $6-15 per day in API tokens. That's $180-450/month — and Zapier shows you none of it. You see "200 tasks used." You don't see "$12.40 in tokens consumed."

Most Zapier users discover this when OpenAI sends the invoice. By then, weeks of overspend have already accumulated. Budget alerts that fire before the invoice are what prevent this.


How the Integration Works

Tokonomics is an API proxy. Instead of Zapier calling OpenAI directly, it calls Tokonomics first. The proxy:

  1. Forwards your request to OpenAI (unchanged)
  2. Records token count, model, cost, and latency
  3. Streams the response back to Zapier

Your Zap gets the same response. But the cost data is captured.

Before:  Zapier → api.openai.com → response
After:   Zapier → tokonomics.ca/proxy/openai → api.openai.com → response

Step-by-Step Setup

1. Replace the OpenAI Action with Webhooks

In your Zap:

  1. Remove (or disable) the existing OpenAI action
  2. Add a new action → search for Webhooks by Zapier → select Custom Request

2. Configure the Webhook

Field Value
Method POST
URL https://tokonomics.ca/proxy/openai/chat/completions
Data Pass-Through No
Data (see JSON below)

3. Set Headers

Add these headers:

Key Value
Authorization Bearer mk_your_tokonomics_key
Content-Type application/json
X-Feature-Name your-zap-name

The X-Feature-Name header is optional but recommended — it lets you see cost per Zap in the dashboard.

4. Set the Request Body

In the Data field, enter your JSON:

{
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Summarize this: [insert Zapier field here]"
    }
  ],
  "max_tokens": 500
}

Replace [insert Zapier field here] with the actual Zapier data field from a previous step.

5. Test the Zap

Click Test step. You should get a JSON response with choices[0].message.content. Map that to the next action in your Zap.

Check your Tokonomics dashboard — the call should appear within 30 seconds with model, tokens, and cost.


Using Claude or DeepSeek in Zapier

Same Webhooks approach, different URL:

Claude (Anthropic):

{
  "model": "claude-sonnet-4-6",
  "max_tokens": 1024,
  "messages": [{"role": "user", "content": "Your prompt here"}]
}

DeepSeek:

All providers use the same Authorization: Bearer mk_... header. See the full provider list.


Tagging Zaps for Cost Breakdown

Every Zap should have a unique X-Feature-Name header. This is how you answer "which Zap costs the most?"

Zap X-Feature-Name Monthly cost
Lead scoring lead-scoring $45
Email drafter email-drafter $120
Support ticket classifier ticket-classifier $8
Content generator content-gen $210

Without tags, you see total spend. With tags, you see exactly which Zap to optimize first.

For agencies running Zaps for clients, add client info:

X-Metering-Tags: {"zap":"email-drafter","client":"acme","env":"prod"}

Zapier Pricing vs AI Pricing

Many Zapier users underestimate how AI costs compare to Zapier itself:

Zapier cost AI token cost
Professional plan $49/month (2,000 tasks)
2,000 GPT-4o calls 2,000 tasks $20-100 in tokens
2,000 GPT-4o-mini calls 2,000 tasks $0.30-3 in tokens

The model choice matters enormously. GPT-4o costs 17x more than GPT-4o-mini per token. For many Zapier use cases (classification, extraction, simple Q&A), the cheaper model works just as well.

Use our model comparison guide to pick the right model for each Zap.


Common Savings for Zapier Users

1. Model downgrade

The single biggest saving. Most Zapier AI tasks are simple enough for GPT-4o-mini or Claude Haiku. Check your Tokonomics dashboard — if 80% of your calls go to GPT-4o but the tasks are classification or summarization, switch and save 90%+.

2. Reduce max_tokens

Zapier's OpenAI action defaults to high max_tokens. If your Zap only needs a one-line answer, set max_tokens: 100. You pay for every output token — capping it caps your cost.

3. Shorter system prompts

The system prompt is sent on every call. A 2,000-token system prompt × 5,000 calls/month = 10M input tokens = $25/month on GPT-4o just for instructions. Trim aggressively.

4. Kill zombie Zaps

Zaps that are "on" but forgotten. They run on triggers you no longer care about, making AI calls nobody reads. The Tokonomics dashboard shows cost per feature tag — a Zap with spend but no business value is a zombie.


Webhooks vs Native OpenAI Action: Tradeoffs

Feature Native OpenAI action Webhooks + Tokonomics
Setup ease Easier (no JSON) Slightly more setup
Cost visibility ❌ None ✅ Full (cost, tokens, model, latency)
Budget alerts ❌ No ✅ Email, Slack, Teams, webhook
Per-Zap cost breakdown ❌ No ✅ Via X-Feature-Name tags
Hard spending caps ❌ No ✅ Blocks calls when budget exceeded
Multi-provider OpenAI only ✅ 9 providers in one dashboard
Model flexibility Limited models ✅ Any model from any provider

The Webhooks approach takes 2 extra minutes to set up but gives you complete control and visibility over your AI costs.


Frequently Asked Questions

Can I use this with Zapier's built-in OpenAI actions?

Not directly — Zapier's native OpenAI action doesn't support custom base URLs. Use the Webhooks by Zapier action instead, which gives you full control over the URL, headers, and body.

Does this work with Zapier's free plan?

Yes. The Webhooks action is available on all Zapier plans. On Tokonomics' side, the Free plan includes 100 calls/month.

What about latency?

The proxy adds ~30ms per call (benchmark). Since Zapier Zaps are asynchronous automations (not real-time user-facing), this overhead has zero impact on user experience.

Can I track both Zapier and custom code in the same dashboard?

Yes. All calls through the Tokonomics proxy — whether from Zapier, n8n, Make, or your own application — appear in the same dashboard with unified cost analytics.


Get Started

  1. Create a free Tokonomics account
  2. Copy your API key from the dashboard
  3. Add a Webhooks action in your Zap with the proxy URL
  4. Set X-Feature-Name to your Zap name
  5. Test once — check the dashboard

Your AI costs are now visible across every Zap. Set a budget alert and stop guessing what your automations cost.


All sources retrieved June 2026. Pricing: GPT-4o at $2.50/1M input tokens (OpenAI Pricing), GPT-4o-mini at $0.15/1M input tokens.

About the author
Founder & CTO at Tokonomics. Built the proxy after a $47,000 LLM invoice blindsided his team. Tracks LLM pricing weekly across 9 providers.
Connect on LinkedIn →
← Back to Blog