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
OpenAI API key
Create one in the OpenAI API platform, not in the ChatGPT interface.
AffiAuto → Settings
Open the OpenAI section of your AffiAuto settings within WordPress.
Usage-based billing
OpenAI charges for API use separately from the AffiAuto license.
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 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.
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.
- Sign in to the OpenAI API platform.
- Go to API keys and create a key for your project.
- Copy the key to a secure location so you can paste it into WordPress.
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.

You do not need to leave WordPress to generate guides later; the plugin calls the OpenAI API using the credentials you configure here.
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.
- Click Save OpenAI, publishing and image settings.
- Click Test connection.
- 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.
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:

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.
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.
