How to Get a Perplexity AI API Key for AIWU Plugin
Getting started with Perplexity AI in AIWU plugin is simple. Follow this step-by-step guide to create your account and connect Perplexity to your WordPress site.
Step 1: Create a Perplexity Account
- Go to perplexity.ai
- Click “Sign Up” or “Get Started”
- Enter your email address and create a password (or sign up with Google/GitHub)
- Verify your email by clicking the link sent to your inbox
- Log in to your account
Step 2: Access API Settings
- Go to perplexity.ai/settings/api
- Or navigate to Settings → API
- You’ll see the API dashboard
Step 3: Add Payment Method (if required)
Before you can use the API, you may need to add a payment method:
- Click “Add Payment Method” or “Billing”
- Enter your credit card details
- Add initial credits if required
Note: Perplexity may offer free tier or trial credits for new users.
Step 4: Generate Your API Key
- In the API settings page, click “Generate API Key” or “Create New Key”
- Give your key a name (e.g., “AIWU Plugin”)
- Click “Create”
- Copy your API key immediately – you may not be able to see it again!
Your API key looks like this:
pplx-xxxxxxxxxxxxxxxxxxxxx
Step 5: Connect Perplexity to AIWU Plugin
- In your WordPress admin, go to AIWU → Settings → API
- Find the Perplexity field
- Paste your API key
- Click “Save Changes”
Step 6: Test Your Connection
- Go to any AIWU scenario (Content Generator, Blog Post Writer, etc.)
- Select Perplexity as your AI provider
- Generate some test content
- If it works – congratulations! You’re all set! 🎉
Important Security Tips
⚠️ Never share your API key publicly
- Don’t post it on GitHub, forums, or social media
- If exposed, delete it immediately and create a new one in Perplexity settings
Pricing
Perplexity API pricing:
- Sonar models: Affordable pricing, typically $0.20-$1.00 per million tokens
- Specific pricing may vary – check Perplexity pricing page
Typically, one blog post costs $0.005 – $0.02 depending on length.
Regional Restrictions
⚠️ Perplexity API may not be available in some countries:
- Russia (.ru domains)
- Belarus (.by domains)
- China (.cn domains)
- Iran (.ir domains)
- North Korea (.kp domains)
If you’re located in one of these regions or using hosting/server in these countries, Perplexity API may not work. You’ll need to:
- Use a VPN or proxy server
- Use hosting outside restricted regions
- Try alternative AI providers available in AIWU
Troubleshooting
“Authorization Required” (401) error:
- Check if your API key is correct and copied completely
- Verify your payment method is valid
- Confirm your server/hosting is not in a restricted region
“Model predicted empty completion” error:
- Increase the
max_tokensparameter in settings - Try a different prompt or scenario
Connection timeout:
- Check your server’s internet connection
- Verify firewall settings allow API requests
Next Steps
Once connected, you can:
- Generate blog posts, product descriptions, and more
- Use Perplexity for research-based content with citations
- Combine it with other AI providers in AIWU
That’s it! You’re ready to use Perplexity AI with AIWU plugin. 🚀
