AutomationIntermediate

How to Use Your Own OpenAI API Key in Zapier

Connect a personal OpenAI account to Zapier so AI steps run on your key, your model choice, and your billing.

7 minIntermediate

AI by Zapier is convenient but limited and shares pooled credits. If you want a specific model, longer context, or full control over cost, connect your own OpenAI account. This guide covers creating an API key, adding it to Zapier, and using the OpenAI app as an action.

What you need

  • A Zapier account
  • An OpenAI account with billing set up at platform.openai.com
  • Permission to create an API key on that account
  • About 10 minutes

Step 1: Create an OpenAI API key

Sign in at platform.openai.com, open the API keys page from your account menu, and click Create new secret key. Name it something like zapier-prod. Copy the key right away because OpenAI only shows it once.

OpenAI - key created
Secret key (copy now, shown once):
sk-proj-9Qb2...redacted...A7xZ
Store this in a password manager.
$
Treat the key like a password
Anyone with this key can spend money on your account. Never paste it into a public Zap shared link, a screenshot, or a Slack message. Rotate it immediately if it leaks.

Step 2: Add the OpenAI app in Zapier

In a Zap, add an action and search for OpenAI (sometimes labeled ChatGPT by Zapier). Choose the Conversation or Send Prompt action. When it asks to connect an account, paste your secret key. Zapier validates it and stores it as a connected account you can reuse across Zaps.

Zapier - Connect OpenAI
Connect OpenAI account
API Key: sk-proj-9Qb2****************A7xZ
[ Yes, Continue ] tests the key
Status: Connected as project: default
Pasting your secret key to authorize the OpenAI app.

Step 3: Pick a model and write the prompt

In the action settings, select a model from the dropdown such as gpt-4o-mini for cheap fast work or gpt-4o for harder tasks. Set a low max tokens value to cap cost, then map your trigger fields into the user message box.

Action settings (conceptual)
{
  "model": "gpt-4o-mini",
  "max_tokens": 300,
  "temperature": 0.3,
  "user_message": "Rewrite this support reply to be friendly and concise:\n{{Body}}"
}

Step 4: Test, then reuse the connection

Test the step and confirm the response comes back. Every future Zap that needs OpenAI can now select this same connected account, so you only enter the key once. Watch your usage on the OpenAI dashboard for the first few days.

Result: Your Zaps now call GPT directly on your own billing, letting you choose models and control spend instead of relying on shared Zapier AI credits.

Watch related tutorials

Tags
#zapier#openai#api-key#integration#gpt