Title: Perplexity
Last modified: April 27, 2026

---

# Perplexity

 *  Resolved [allways4backup](https://wordpress.org/support/users/allways4backup/)
 * (@allways4backup)
 * [1 month ago](https://wordpress.org/support/topic/perplexity/)
 * tried to usw perplexity with the custon API. API endpoint is tps://api.perplexity.
   ai/chat/completions but i got an error 404
 * any idea?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Gerard Kanters](https://wordpress.org/support/users/gkanters/)
 * (@gkanters)
 * [1 month ago](https://wordpress.org/support/topic/perplexity/#post-18892524)
 * Try [https://api.perplexity.ai](https://api.perplexity.ai)
 *  Thread Starter [allways4backup](https://wordpress.org/support/users/allways4backup/)
 * (@allways4backup)
 * [1 month ago](https://wordpress.org/support/topic/perplexity/#post-18892532)
 * not working, got an 404. i tried asling perplexity..
 * Sorry, it is too tekky for me, but maybe you See it more clear? Thanks in advance!
 * Using the custom API endpoint [https://api.perplexity.ai/chat/completions](https://api.perplexity.ai/chat/completions)
   in WordPress (e.g. via the “AI Translate” plugin) works only if your plugin sends
   correct headers and body. If you get “API validation failed: HTTP 404”, the URL
   is exposed, but the plugin likely sends it in the wrong way.
 * This is an OpenAI‑compatible endpoint, so you can use it directly with Chat Completions‑
   style requests. You must not append /v1, /models, or any extra path. If the plugin
   tries to auto‑build a URL like [https://api.perplexity.ai/v1/chat/completions](https://api.perplexity.ai/v1/chat/completions),
   that will fail with 404.
 * Required HTTP configurationYour plugin must send:Method: POSTHeaders:Authorization:
   Bearer YOUR_PERPLEXITY_API_KEYContent-Type: application/jsonBody (JSON):
 * { “model”: “pplx-7b-online”, “messages”: [ { “role”: “system”, “content”: “Translate
   the user message from German to English, keep it natural and fluent.” }, { “role”:“
   user”, “content”: “Dies ist ein Beispieltext.” } ]}
 * ID your plugin rewrites the URL internally (e.g. to /v1/chat/completions), you’ll
   hit 404. Ask the plugin developer to add support for Perplexity (or an OpenAI‑
   style endpoint) without auto‑appending /v1.
 *  Plugin Author [Gerard Kanters](https://wordpress.org/support/users/gkanters/)
 * (@gkanters)
 * [1 month ago](https://wordpress.org/support/topic/perplexity/#post-18892536)
 * Yes perplexity.ai is right. Like I said before try [https://api.perplexity.ai](https://api.perplexity.ai)
   and strip /chat/completions from the URL you used. That should work. 
   You do 
   need a valid API key off course.
 *  Thread Starter [allways4backup](https://wordpress.org/support/users/allways4backup/)
 * (@allways4backup)
 * [1 month ago](https://wordpress.org/support/topic/perplexity/#post-18892555)
 * yes,
 * Use base_url=”[https://api.perplexity.ai&#8221](https://api.perplexity.ai&#8221);
   for the Sonar API.
 * is also written in the docu, my API key is valid..i tried
 * sonar and sonar-pro
 * as input in the model field…strange. I’ll investigate tomorrow…thanks for now!
 *  Plugin Author [Gerard Kanters](https://wordpress.org/support/users/gkanters/)
 * (@gkanters)
 * [4 weeks, 1 day ago](https://wordpress.org/support/topic/perplexity/#post-18892835)
 * The problem seems that perplexity.ai does not support the /models path which 
   is used for OpenAI compatible API providers. 
   I made a new release of the plugin
   2.3.0 which solves this issue. Please update the plugin version and test it again.
   I cannot test this myself, since I do not have API access with perplexity. Let
   me know if it works. Thanks
 *  Thread Starter [allways4backup](https://wordpress.org/support/users/allways4backup/)
 * (@allways4backup)
 * [4 weeks, 1 day ago](https://wordpress.org/support/topic/perplexity/#post-18893113)
 * Thanks [@gkanters](https://wordpress.org/support/users/gkanters/) now it seems
   to work 🙂 I´ll start playing with your plugin. Seems amazing!
 *  Plugin Author [Gerard Kanters](https://wordpress.org/support/users/gkanters/)
 * (@gkanters)
 * [4 weeks, 1 day ago](https://wordpress.org/support/topic/perplexity/#post-18893128)
 * Great ! Good to hear. If you like the plugin, please give it a 5 star rating.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fperplexity%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ai-translate/assets/icon-256x256.png?rev=3303182)
 * [AI Translate](https://wordpress.org/plugins/ai-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-translate/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 7 replies
 * 2 participants
 * Last reply from: [Gerard Kanters](https://wordpress.org/support/users/gkanters/)
 * Last activity: [4 weeks, 1 day ago](https://wordpress.org/support/topic/perplexity/#post-18893128)
 * Status: resolved