Tutorials/Getting Started/Connect Your OpenAI API Key
Step 4 of 4 · Getting Started · About 5 minutes

Getting Started · Step 04

How to Connect Your OpenAI API Key

Connect OpenAI to AffiAuto so you can generate Amazon affiliate buying guides with AI — directly inside your WordPress dashboard.

What you’ll accomplish

✓
Create or retrieve an OpenAI API keyUse your OpenAI API platform account, with billing enabled.
✓
Connect the key in AffiAutoSave your key and verify the connection from WordPress.
✓
Review AI model settingsStart with the default models, then customize them if needed.

Required

OpenAI API key

Create one in the OpenAI API platform, not in the ChatGPT interface.

Where to configure

AffiAuto → Settings

Open the OpenAI section of your AffiAuto settings within WordPress.

Good to know

Usage-based billing

OpenAI charges for API use separately from the AffiAuto license.

← Previous: Connect Amazon Creators API

Before you begin

You only need a few things to connect the AI writing features. The setup is managed inside WordPress, and you can keep the default writing models at first.

AffiAuto installed and licensed

Make sure AffiAuto is active on your WordPress site and your license is activated.

OpenAI API account

Sign in to the OpenAI API platform ↗ or create an account.

API billing enabled

Check that the API account/project has billing configured and sufficient available quota.

Your Amazon connection

For end-to-end guide generation, your Amazon Creators API settings should also be working.

ChatGPT subscription vs. OpenAI API

ChatGPT Plus or other ChatGPT subscriptions do not automatically include OpenAI API credits. You need an API key and separately configured API billing for AffiAuto.

Connect OpenAI step by step

Follow these four steps to enable AI-powered guide generation within AffiAuto.

01

Create or retrieve your OpenAI API key

Visit OpenAI’s API keys page ↗, select the project you intend to use, and create a secret API key if you do not already have one. Ensure your API billing is active.

  1. Sign in to the OpenAI API platform.
  2. Go to API keys and create a key for your project.
  3. Copy the key to a secure location so you can paste it into WordPress.
Keep your key private. Never include an API key in screenshots, emails to strangers, public support threads or page source code. If a key is exposed, revoke it from the OpenAI platform and generate a new one.

02

Paste your API key into AffiAuto

Open your WordPress admin dashboard and navigate to AffiAuto → Settings → OpenAI. Paste your key into the OpenAI API key field.

AffiAuto OpenAI API settings panel in WordPress, used to add an API key and test the connection
AffiAuto’s OpenAI settings — screenshot from the original Getting Started guide.

You do not need to leave WordPress to generate guides later; the plugin calls the OpenAI API using the credentials you configure here.

03

Save your settings and test the connection

AffiAuto provides a built-in connection test. Run it now so you can catch API problems before creating a buying guide.

  1. Click Save OpenAI, publishing and image settings.
  2. Click Test connection.
  3. Confirm that AffiAuto reports a successful OpenAI connection.

Tip: if the connection fails, check that your key was copied correctly and belongs to a project with API billing and access to the selected models.

04

Review your AI models (optional)

AffiAuto comes with default model settings, so you can leave them unchanged for your first guide. When you want to fine-tune quality, speed or cost, review these two options:

Writing Model
Generates the main buying guide content.
Light Tasks Model
Handles lighter work such as product selection, title generation and internal linking.
AffiAuto publishing settings including AI writing and light tasks model configuration
Optional publishing and model settings in AffiAuto.
✓ API key saved✓ Connection tested✓ Models ready

OpenAI connection not working?

These are the first checks to make if the API test fails or a model is unavailable.

My API key is rejected

Make sure you pasted an OpenAI API key rather than a ChatGPT login or another provider’s key. Check for missing characters and revoke/reissue the key if it may have been exposed.

I see a billing or quota error

Verify that API billing is configured for the correct OpenAI account or project and that your usage limit has not been reached. ChatGPT subscriptions are billed separately.

The selected model is unavailable

Check access to the specific model selected in AffiAuto. Start with the plugin’s default models, then try a different compatible model if your project permits it.

The connection passes, but guide generation fails

OpenAI connectivity is only part of the workflow. Also verify your Amazon Creators API connection, publishing settings, and any error message shown by AffiAuto.

Do I need to buy article credits?

No. AffiAuto uses your own OpenAI API key. You pay OpenAI directly for the API usage incurred by your generated content.

Need help? Contact AffiAuto support with the error message, but never share your secret API key.

Watch the complete setup walkthrough

This video walks you through installation, license activation, Amazon Creators API and OpenAI setup inside WordPress.

How to Set Up AffiAuto on WordPress

Follow along with the OpenAI setup portion, then come back to this page to check that your connection is working.

OpenAI API keyConnection testAI models

You’ve completed Getting Started

Ready to create your first buying guide?

Your license and both APIs are configured. Explore the next set of tutorials to learn how to generate Amazon affiliate buying guides from inside WordPress.


Explore buying guide tutorials →