API Configuration
Learn how to connect your preferred AI providers to AI Product Tools.
The API Configuration section is where you connect the plugin to AI services like OpenAI, Google Gemini, OpenRouter, and Anthropic Claude. You must configure at least one provider to start generating content.
If your site supports WordPress AI Connectors, AI Product Tools can also use provider credentials managed centrally by Connectors. In that case, the provider card will show that the credential source is managed outside the local plugin setting.
Accessing API Configuration
To manage your API keys and providers:
- Navigate to AI Product Tools in your WordPress admin sidebar.
- Click on Settings.
- Select the API Configuration tab.
Provider Selection
The plugin supports multiple AI providers. Each provider is displayed as a card showing its name, available models, and current status.
- OpenAI: Defaults to
gpt-4.1-mini, with additional models depending on your OpenAI account. - Gemini: Defaults to
gemini-2.5-flash, a fast choice for high-volume work. - OpenRouter: Defaults to
openrouter/freeand lets you test many free or paid models through one account. - Claude: Defaults to
claude-sonnet-4-6, known for nuanced writing and strong instruction following.
To select a provider as your default, click on its card. The plugin will use the selected provider for all generation tasks as long as it has a valid API key.
If your active provider key is missing or invalid, generation tools will show a provider/key warning. Configure another provider and switch the default provider if you want to continue with a different AI service.
Managing API Keys
Each provider requires a unique API key to function.
How to add an API key:
- Click the provider card you wish to configure.
- Locate the API Key field.
- Enter your key. You can use the eye icon to show or hide the characters.
- Click Save Settings at the bottom of the page.
Key Format Hints:
- OpenAI: Usually starts with
sk-... - Gemini: Usually starts with
AIza... - OpenRouter: Usually starts with
sk-or-... - Claude: Usually starts with
sk-ant-...
If you do not have an API key, use the Get API Key link provided under each field to visit the provider's official console and create one.
Security and Validation
The plugin takes security seriously:
- Encryption: Local API keys are stored encrypted in your WordPress database.
- Connectors support: WordPress AI Connectors can manage supported provider credentials centrally when available.
- Validation: The system sanitizes inputs and removes accidental spaces before validating keys.
- Status Indicators: A "Configured" badge or provider source badge appears when a usable key is available.
Never share your API keys with anyone. If you suspect a key has been compromised, revoke it in the provider's console and generate a new one immediately.
Auto-Switching Logic
If you remove the API key for your currently active provider, choose another configured provider before running generation jobs or the chatbot. This prevents failed requests caused by a missing credential.
What's Next?
Now that your API is connected, you can configure your Content Settings to match your brand's voice.
AI provider token usage is billed by your chosen provider. Plugin plans and Advanced Optimization Requests are separate from provider API token costs.