OpenAI API Key

NordicDataTools Documentation • Documentation
Integration
Support articleThis article is part of Documentation and is presented in the NDT support-center layout for faster scanning, clearer structure and easier next steps.
Getting Started Guide

How to Get Your OpenAI API Key — Step by Step

Everything you need to connect WP SmartForm AI or WP LeadFlow AI to OpenAI and start scoring leads with real AI intelligence.

Both WP SmartForm AI and WP LeadFlow AI use OpenAI’s API to score leads, write intelligent autoresponse emails, and power the AI chatbot. Setting it up takes about five minutes — here’s exactly how to do it.

ℹ️
You need an OpenAI account and a payment method. API usage is billed per request — for most small and medium sites, the total cost is a few cents per month.

1

Create an OpenAI account

Go to platform.openai.com and click Sign up. You can register with Google, Microsoft, or an email address.

If you already have a ChatGPT account, note that ChatGPT and the API are separate products with separate billing. Log in to platform.openai.com specifically — not chat.openai.com.

New accounts receive a small free credit to get started. Once that runs out, you pay only for what you use.
2

Add billing and credits

In the OpenAI platform, go to Settings → Billing and add a payment method. You can set up automatic top-ups or buy a fixed amount of credits upfront.

We recommend starting with a $5–$10 prepaid credit. With the gpt-4o-mini model (the default used by NordicDataTools plugins), each lead costs roughly $0.001–$0.003, so $5 covers thousands of form submissions.

⚠️
Set a monthly usage limit under Settings → Billing → Usage limits. This prevents unexpected charges if your site gets a traffic spike or bot traffic.
3

Generate your API key

In the OpenAI platform, go to Dashboard → API keys (or click your profile → View API keys). Click Create new secret key.

Give it a descriptive name — for example “NordicDataTools – My Site”. This helps you identify it later if you have multiple sites or projects.

⚠️
Copy the key immediately — OpenAI only shows it once. If you close the dialog without copying it, you’ll need to delete it and create a new one. Store it somewhere safe temporarily until you’ve pasted it into WordPress.

Your key will look something like this:

sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Treat your API key like a password. Never share it publicly, commit it to a repository, or paste it into a forum post. Anyone with the key can make API calls billed to your account.
4

Enter the key in WordPress

In your WordPress admin, go to:

  • WP SmartForm AI → Settings → OpenAI API Key
  • or WP LeadFlow AI → Settings → OpenAI API Key

Paste the key and click Save Settings. The plugin will immediately verify the connection and show a green checkmark if everything is working.

ℹ️
If you use both plugins on the same site, you need to enter the key in both settings pages separately — or use the same key for both.
5

Choose the right model

Under the OpenAI settings you can select which model to use. Here’s a quick guide:

Model Speed Quality Cost
gpt-4o-mini ⭐ recommended Fast Excellent ~$0.001/lead
gpt-4o Medium Best ~$0.01/lead
gpt-3.5-turbo Very fast Good ~$0.0005/lead

For most sites, gpt-4o-mini is the sweet spot — it’s fast, very capable, and costs almost nothing at typical contact form volumes.

6

Test that everything works

Submit a test message through your contact form — use a realistic message with some detail, like:

“Hi, we’re a company of 15 people looking for an AI-powered lead tool for our WordPress site. We have budget set aside and would love a demo.”

Then check WP SmartForm AI → Leads. Within a few seconds you should see:

  • A lead record with a score above 50 (Warm or Hot)
  • An AI-generated autoresponse email sent to the address you used
  • An AI summary of the lead’s intent in the lead record
If the lead scores as Cold despite a detailed message, check that your OpenAI API key is correctly saved and that the model is set. You can verify under Help & Setup → System Information — it will show “OpenAI API key: Set ✅”.

Common questions

Do I need a paid OpenAI account?

New accounts get a small free credit. Once that’s used, yes — you need to add a payment method. But costs are very low: a busy site with 500 form submissions per month would spend roughly $0.50–$1.50 on API calls.

Is my data sent to OpenAI?

Yes — the message content from the form submission is sent to OpenAI for analysis. OpenAI’s API does not use this data to train models by default (as of March 2024). Review OpenAI’s API data usage policies and update your privacy policy accordingly. The plugins include a GDPR-ready privacy text you can add to your site.

Can I use the same API key on multiple sites?

Yes — OpenAI API keys are not locked to a domain. However, all usage from all sites will be billed to the same account. If you want to track costs per site separately, create a separate API key for each site in your OpenAI dashboard.

What happens if my OpenAI credits run out?

The plugin falls back gracefully — form submissions are still captured and stored, lead scoring falls back to keyword-based rules, and autoresponse emails use the template fallback instead of AI-generated text. You won’t lose any leads.

The plugin shows “API key invalid” — what do I do?

Double-check that you copied the full key including the sk-proj- prefix, with no trailing spaces. Also verify your OpenAI account has active billing — a key from an account with no payment method or exhausted credits will return an authentication error.

Ready to get started?

Install WP SmartForm AI or WP LeadFlow AI, add your OpenAI key, and start converting more form submissions into qualified leads — today.

View all plugins Read the docs →
Support center

Helpful entry points

Move between setup guides, troubleshooting, FAQs and release notes without leaving the support flow.

Leave a Reply

Your email address will not be published. Required fields are marked *