AI - API Keys

To unlock SleekByte'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 SleekByte'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 SleekByte. 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 SleekByte to authenticate with AI providers on your behalf. When you make a request through SleekByte, 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.

  1. Create or access your account

    • Visit the OpenAI Platform
    • Sign up for a new account or log into your existing one
  2. Generate your API key

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

  1. Set up your Anthropic account

  2. Create your API key

  3. Fund your account

    • Visit Billing Settings
    • Add funds to enable API usage
    • Review their pricing structure for cost planning

Google

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.

  1. Access Google AI Studio

  2. Generate your API key

    • Click "Create API key" to generate a new key
    • Copy the key and keep it private and secure
  3. Configure in SleekByte

    • The setup process is streamlined with Google's integrated approach
    • You can quickly get your API key working with SleekByte'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.

  1. Create your OpenRouter account

    • Sign up at OpenRouter using your preferred method
    • Choose from various authentication options
  2. Generate your API key

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

Once you have your API keys, setting them up in SleekByte is straightforward and secure.

  1. Access SleekByte settings

    • In your WordPress admin, navigate to the SleekByte section
    • Look for "Settings" or "AI Configuration"
  2. 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
  3. Save your configuration

    • Click the "Save" button next to each field after entering the key
    • SleekByte 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 SleekByte'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
  • SleekByte 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
  • SleekByte 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 SleekByte

Understanding the model selection

SleekByte comes pre-configured with carefully selected models that excel at code generation and WordPress development tasks. Each provider offers different strengths that complement each other.

OpenAI

Available models: GPT 4.1, o4 Mini, o3

  • Excellent for general code generation and problem-solving
  • Strong training on WordPress-specific code patterns
  • Great at understanding complex requirements and generating comprehensive solutions
  • Reliable performance across a wide range of coding tasks

Anthropic

Available models: Claude 4 Opus, Claude 4 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Sonnet

  • Exceptional at code analysis and debugging
  • Provides detailed explanations and reasoning about code decisions
  • Particularly helpful for learning and understanding complex implementations
  • Strong at maintaining context across long conversations

Google

Available models: Gemini 2.5 Pro

  • Competitive performance with generous context windows
  • Effective at working with larger codebases
  • Good balance of capability and cost-effectiveness
  • Strong integration with Google's development ecosystem

OpenRouter

Available models: Kimi K2, Qwen3 Coder

  • Specialized coding models from various providers
  • Access to the latest AI releases as they become available
  • Flexibility to experiment with different approaches
  • Often more competitive pricing for high-volume usage

Getting started with AI assistance

With your API keys configured, SleekByte's AI features become available throughout the interface. The AI understands SleekByte's file structure conventions and WordPress best practices, so it can provide assistance that fits naturally with your existing code.

Initial steps

  1. Start with simple requests to get familiar with how the AI responds
  2. Experiment with different providers to understand their strengths
  3. Gradually work up to more complex tasks as you become comfortable
  4. Monitor your usage through each provider's dashboard

What you can do

  • Generate new snippets by describing features in natural language
  • Send error messages directly to the AI for debugging assistance
  • Get help with WordPress-specific coding challenges and best practices
  • Upload files like design mockups or specifications for implementation
  • Modify existing code while maintaining your style and patterns

The AI is designed to be a collaborative partner in your WordPress development process, helping you write better code more efficiently while learning WordPress best practices along the way.