❄️ Winter Sale: 40% OFF AIWU
WINTER_SECRET
Valid until Mar 1st
How to Get Your OpenRouter API Key - AIWU – AI Plugin for WordPress
Table of Contents
< All Topics

How to Get Your OpenRouter API Key

AIWU now supports OpenRouter API, giving you unified access to over 200 AI models through a single API key and billing account.

What is OpenRouter?

OpenRouter is a unified gateway that provides access to AI models from multiple providers including OpenAI, Anthropic, Google, Meta, and dozens of others. Instead of managing separate API keys and accounts for each provider, you get one key that works with all of them.

Why Use OpenRouter with AIWU?

Simplified Management: One API key instead of juggling multiple keys from different providers.

Cost Efficiency: Pay-as-you-go pricing with competitive rates. Compare models and choose the best price-to-performance ratio for your needs.

Model Flexibility: Switch between models instantly without changing your setup. Try Claude 3.5 Sonnet, GPT-4, Gemini Pro, or open-source models like Llama 3 – all through the same integration.

Reliability: If one provider has downtime, easily fallback to another model without reconfiguring AIWU.

Access to Latest Models: Get immediate access to new models as they’re released, without waiting for AIWU updates.

Getting Started with OpenRouter

Step 1: Create Your Account

Visit openrouter.ai and sign up for a free account. You’ll need to verify your email address to proceed.

Step 2: Generate Your API Key

Once logged in:

  1. Navigate to Settings in the top menu
  2. Click on Keys in the sidebar
  3. Click the Create Key button
  4. (Optional) Give your key a descriptive name like “AIWU WordPress”
  5. Copy your API key immediately – you won’t be able to see it again

Important: Store your API key securely. Treat it like a password – never share it publicly or commit it to version control.

Step 3: Add Credits to Your Account

OpenRouter uses a prepaid credit system:

  1. Go to SettingsCredits
  2. Click Add Credits
  3. Choose your amount (minimum $5 recommended to start)
  4. Complete payment through your preferred method

Your credits will be used based on the models you choose and how much you use them. Different models have different pricing – premium models like GPT-4 cost more per token than open-source alternatives.

Step 4: Connect OpenRouter to AIWU

Now you’re ready to use OpenRouter with AIWU:

  1. Open your WordPress admin panel
  2. Go to AIWU SettingsAPI Keys
  3. Find the OpenRouter section
  4. Paste your API key
  5. Save your settings

That’s it! You can now select any OpenRouter model in AIWU’s chatbot, workflow builder, or content generation tools.

Monitoring Your Usage

Keep track of your spending:

  • Check your Credits page to see remaining balance
  • View detailed usage statistics by model
  • Set up spending alerts to avoid surprises
  • OpenRouter shows cost estimates before you run requests

Troubleshooting

“Insufficient credits” error: Add more credits to your OpenRouter account.

“Invalid API key” error: Double-check you copied the entire key and saved it correctly in AIWU settings.

Model not working: Some models require minimum credit balance or have specific requirements. Check the model details on OpenRouter.

Rate limits: Free tier has rate limits. Upgrade your account or spread requests over time.

Next Steps

Now that you’re connected, explore what you can do:

  • Build AI chatbots with multiple model options
  • Create automated workflows that use the best model for each task
  • Generate content at scale with cost-effective models
  • Experiment with different models to find your perfect fit

For detailed pricing and model specifications, visit the OpenRouter documentation.

Scroll to Top