
Zapier
Call TokenMix from a Zap using Webhooks by Zapier, a premium action
What it is
Zapier is a no-code automation platform that connects thousands of apps into automated workflows called Zaps. A Zap has a trigger and one or more action steps. Zapier has added AI features and agents in recent years.
Before you begin
- A Zapier account. The Webhooks and Code actions used here are premium, so you need a paid plan or an active trial.
- A TokenMix account and an API key from tokenmix.ai/dashboard/keys (
sk-tm-...). - The endpoint
https://api.tokenmix.ai/v1/chat/completions.
Zapier's built-in ChatGPT and OpenAI actions only ask for an OpenAI key and have no custom base URL field, so they can't point at TokenMix. Use Webhooks by Zapier instead.
Connect TokenMix
- In your Zap, add an action step and choose the app Webhooks by Zapier.
- Pick the event Custom Request (or POST).
- Set Method to
POSTand URL tohttps://api.tokenmix.ai/v1/chat/completions. - Under Headers, add
Authorization=Bearer sk-tm-...andContent-Type=application/json. - In Data, send a chat body, for example:
{"model":"gpt-5.5","messages":[{"role":"user","content":"Summarize this text: ..."}]} - Use the response in later steps; the text is at
choices.0.message.content.
Verify it works
Test the step in the Zap editor. A response with a choices array means the request reached TokenMix. Confirm the spend in your TokenMix dashboard under usage.
FAQ
Why not the ChatGPT action? It is bound to OpenAI's endpoint with no custom base URL, so it can't use TokenMix. Webhooks by Zapier can call any endpoint.
Is Webhooks free? No. Webhooks by Zapier and Code by Zapier are premium actions, available on paid plans or during a trial.