✨ New feature: AI Workflow Builder is now live — build automations right inside WordPress.
How to Get a Perplexity AI API Key for AIWU Plugin - AIWU – AI Plugin for WordPress
Table of Contents
< All Topics

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

  1. Go to perplexity.ai
  2. Click “Sign Up” or “Get Started”
  3. Enter your email address and create a password (or sign up with Google/GitHub)
  4. Verify your email by clicking the link sent to your inbox
  5. Log in to your account

Step 2: Access API Settings

  1. Go to perplexity.ai/settings/api
  2. Or navigate to SettingsAPI
  3. 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:

  1. Click “Add Payment Method” or “Billing”
  2. Enter your credit card details
  3. Add initial credits if required

Note: Perplexity may offer free tier or trial credits for new users.

Step 4: Generate Your API Key

  1. In the API settings page, click “Generate API Key” or “Create New Key”
  2. Give your key a name (e.g., “AIWU Plugin”)
  3. Click “Create”
  4. 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

  1. In your WordPress admin, go to AIWUSettingsAPI
  2. Find the Perplexity field
  3. Paste your API key
  4. Click “Save Changes”

Step 6: Test Your Connection

  1. Go to any AIWU scenario (Content Generator, Blog Post Writer, etc.)
  2. Select Perplexity as your AI provider
  3. Generate some test content
  4. 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_tokens parameter 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. 🚀

Scroll to Top