Zapier

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

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

  1. In your Zap, add an action step and choose the app Webhooks by Zapier.
  2. Pick the event Custom Request (or POST).
  3. Set Method to POST and URL to https://api.tokenmix.ai/v1/chat/completions.
  4. Under Headers, add Authorization = Bearer sk-tm-... and Content-Type = application/json.
  5. In Data, send a chat body, for example: {"model":"gpt-5.5","messages":[{"role":"user","content":"Summarize this text: ..."}]}
  6. 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.