Skip to content

Getting Your API Keys

WP-AutoInsight connects directly to the AI providers. You bring the key, the plugin uses it on your site, and you pay the provider directly.

Direct Connection: Unlike other plugins, you pay the AI providers directly for only what you use. This guide shows you how to get those keys safely.

You do not need every provider. Most users start with one text provider and optionally one image provider.

  • OpenAI: Strong general-purpose writing and image generation.
  • Claude: Good for polished writing and analytical drafts.
  • Gemini: Fast and cost-effective for larger volumes.
  • Perplexity: Best when you want web-grounded answers and visible citations.
  • Stability AI: Optional image provider if you want an alternative to OpenAI and Gemini images.

OpenAI is the most popular choice for versatile writing and high-quality images.

  1. Go to the OpenAI API Dashboard.
  2. Sign up or log in.
  3. Click “Create new secret key”.
  4. Give it a name like “WordPress Plugin” and copy the key immediately (it won’t be shown again).
  5. Note: You must add a small amount of credit (e.g., $5) to your OpenAI account for the key to work.

Claude is famous for its natural, human-like writing style and advanced reasoning.

  1. Visit the Anthropic Console.
  2. Create an account and verify your email.
  3. Navigate to the “API Keys” section.
  4. Click “Create Key” and copy it to your clipboard.

Gemini is often the fastest and most budget-friendly option for high-volume content.

  1. Go to Google AI Studio.
  2. Sign in with your standard Google account.
  3. Click “Create API key”.
  4. Choose a project (or create a new one) and copy your key.

Use Perplexity if you need your posts to include real-time web data and clickable citations.

  1. Visit the Perplexity API Settings.
  2. Ensure you have a Perplexity Pro subscription or credits in your API account.
  3. Click “Generate” under the API Key section.

Use Stability AI as an alternative image provider for Featured Images and Infographics.

  1. Go to Stability AI API Keys.
  2. Create an account and add credits to your account.
  3. Click “Create API Key” and copy it.
  4. Enter it in WP-AutoInsight > Advanced Settings under “Image Settings.”

Once you have a key, there are three practical ways to use it:

  1. Onboarding Wizard: Best for first-time setup.
  2. WP-AutoInsight > Connections > API Keys: The main place for day-to-day configuration and choosing which model to use.
  3. wp-config.php or WordPress Connectors: Best for agencies, staging environments, or security-conscious setups.

For maximum security, you can define your keys in your site’s wp-config.php file. The plugin supports constants for all providers:

define('OPENAI_API', 'your-openai-key');
define('GEMINI_API', 'your-gemini-key');
define('CLAUDE_API', 'your-anthropic-key');
define('PERPLEXITY_API', 'your-perplexity-key');
define('STABILITY_API', 'your-stability-key');

WordPress 7.0+ Note: If you use the native WordPress Connectors screen, the convention is different: OPENAI_API_KEY, ANTHROPIC_API_KEY, and GOOGLE_API_KEY. WP-AutoInsight supports both naming styles automatically.

The plugin checks credentials in this order:

  1. WordPress Connectors, if available on the site.
  2. wp-config.php constants.
  3. Keys saved in the plugin settings.

That means a technical team can define keys centrally while content editors still use the plugin normally.

In version 4.0, the plugin uses a shared provider registry behind the scenes. For most users, the benefit is simple: model lists, validation, image support, and connection rules stay more consistent across the dashboard and settings screens. You can see the health of each connection (Verified, Stale, or Failed) directly on the main Dashboard.