AI - API Keys
To unlock SleekPixel's AI capabilities, you'll need to provide your own API keys from one or more AI providers. This approach gives you complete control over your AI usage while ensuring your data remains private. Rather than routing through SleekPixel's servers, your WordPress site communicates directly with the AI providers, keeping your code and conversations secure.
The setup process involves obtaining API keys from your chosen providers and configuring them within SleekPixel. Each provider offers different models with unique strengths, so you might choose to set up multiple providers to access the best model for each type of task.
Understanding API key requirements
API keys are essentially passwords that allow SleekPixel to authenticate with AI providers on your behalf. When you make a request through SleekPixel, it uses your API key to access the AI models directly. This means you're billed directly by the provider based on your actual usage, giving you transparent cost control.
The benefits of this approach include:
- Complete data ownership - Your conversations never pass through third-party servers
- Transparent billing - You see exactly what you're paying for with each provider
- Model flexibility - Access to different models optimized for various tasks
- Privacy control - Your code and conversations remain between you and the AI provider
OpenAI
OpenAI provides some of the most popular models for code generation, including GPT-4 and its variants. These models excel at understanding context and generating high-quality WordPress code.
-
Create or access your account
- Visit the OpenAI Platform
- Sign up for a new account or log into your existing one
-
Generate your API key
- Navigate to https://platform.openai.com/account/api-keys
- Click "Create new secret key"
- Copy the key immediately - it won't be shown again
- Store it securely for SleekPixel configuration
-
Add account funding
- Visit the Billing Overview
- Add credit to your account using "Add to credit balance"
- OpenAI operates on pay-per-use, so you only pay for what you use
Anthropic
Anthropic's Claude models are particularly strong at understanding complex codebases and providing detailed explanations. These models often excel at debugging and code review tasks, making them valuable for maintaining and improving existing code.
-
Set up your Anthropic account
- Go to the Anthropic Console
- Create an account or log into your existing one
-
Create your API key
- Navigate to https://console.anthropic.com/settings/keys
- Click "Create Key" to generate a new API key
- Copy and store the key securely
-
Fund your account
- Visit Billing Settings
- Add funds to enable API usage
- Review their pricing structure for cost planning
Google's Gemini models offer competitive performance and often have different pricing structures that might be more cost-effective for certain types of usage. They're particularly strong at understanding and generating code with large context windows.
-
Access Google AI Studio
- Visit Google AI Studio
- Sign in with your Google account
-
Generate your API key
- Click "Create API key" to generate a new key
- Copy the key and keep it private and secure
-
Configure in SleekPixel
- The setup process is streamlined with Google's integrated approach
- You can quickly get your API key working with SleekPixel's latest Gemini model support
OpenRouter
OpenRouter is unique because it provides access to dozens of different AI models through a single API. This gives you access to specialized coding models, the latest releases from various providers, and often more competitive pricing.
-
Create your OpenRouter account
- Sign up at OpenRouter using your preferred method
- Choose from various authentication options
-
Generate your API key
- Visit OpenRouter Settings
- Click "Create Key" to generate your API key
- Store the key securely
-
Add credits to your account
- Use OpenRouter's billing system to add credits
- These credits work across all supported models
- Take advantage of competitive pricing across multiple providers
The advantage of OpenRouter is flexibility—you can experiment with different models for different tasks without managing multiple separate accounts and billing relationships.
Configuring SleekPixel
Once you have your API keys, setting them up in SleekPixel is straightforward and secure.
-
Access SleekPixel settings
- In your WordPress admin, navigate to the SleekPixel section
- Look for "Settings" or "AI Configuration"
-
Enter your API keys
- Find the API Keys section with input fields for each provider:
- OpenAI API Key
- Anthropic API Key
- Google API Key
- OpenRouter API Key
- Paste your keys into the appropriate fields
- Find the API Keys section with input fields for each provider:
-
Save your configuration
- Click the "Save" button next to each field after entering the key
- SleekPixel automatically validates each key
- Verify that all keys are working correctly
Your API keys are stored encrypted in your WordPress database, providing security while keeping them readily available for AI requests.
Security and privacy considerations
The security model of SleekPixel's AI integration is designed around privacy and control. Understanding how your data flows helps you make informed decisions about using AI assistance.
Data flow and privacy
Direct Communication Model
- Requests go directly from your WordPress server to the AI provider
- SleekPixel never sees your conversations, code, or API keys
- You maintain complete control over your data and usage patterns
Local Storage Security
- API keys are encrypted when stored in your WordPress database
- SleekPixel follows WordPress security best practices
- Keys are only accessible to your WordPress installation
Cost and Usage Control
- You can review usage patterns directly with each provider
- Monitor costs in real-time through provider dashboards
- No markup or hidden fees from SleekPixel
Getting started with AI assistance
With your API keys configured, SleekPixel's AI features become available throughout the interface. The AI understands WordPress best practices and can provide intelligent assistance tailored to your specific needs.
Initial steps
- Start with simple requests to get familiar with how the AI responds
- Experiment with different providers to understand their strengths
- Gradually work up to more complex tasks as you become comfortable
- Monitor your usage through each provider's dashboard
The AI is designed to be a collaborative partner in your WordPress workflow, helping you achieve your goals more efficiently while following best practices.