Perplexity API: Real-time Search Cheaper Than OpenAI

Опубликовано: 11 Май 2025
на канале: Tales from the jar side
4,308
89

In this episode of Tales from the Jar side, Ken Kousen explores Perplexity AI's new API, both with Python and Java. Perplexity AI is an innovative search engine offering real-time web access, source citations, and an ad-free experience. Ken provides a comprehensive overview of using Perplexity's new programmatic API, including a Python demo and a comparison with OpenAI's tools. The video also differentiates between Perplexity Sonar’s online models and chat models, emphasizing their unique functionalities and appropriate usage scenarios. Additionally, learn about the platform’s supported models, pricing structure, and see a Java test case using the LangChain4j system. Subscribe for more insights and tutorials on cutting-edge AI technologies.

Tales from the jar side:
▶️ Newsletter: https://kenkousen.substack.com
▶️ YouTube channel:    / @talesfromthejarside  
▶️ Home page: http://www.kousenit.com

00:00 Introduction to Perplexity AI
00:38 Welcome to Tales from the Jar side
01:05 Exploring Perplexity's Features
02:15 Diving into the Perplexity API
02:38 Setting Up Your API Key
03:25 Python Script Demo
05:13 Executing the Script and Analyzing Results
05:54 Examining Supported Models
06:50 Understanding the Pricing Model
08:04 Java Test Case with LangChain4j
08:47 Perplexity Model Comparison
09:44 Real-Time Information Access
12:01 Final Thoughts and Subscription Call

Affiliate links:
These are products I use on a regular basis. If you click on them, your price doesn't change, but I may receive a small referral fee. Feel free to try them out.

▶️ Tella.tv: https://tella.tv/?via=tftjs
Tella is a great screen capture program. Very simple to use, but very powerful. :)
▶️ Descript: https://www.descript.com/?lmref=HHcVuA
This is a great program for transcribing videos and letting you edit them by editing the transcript. It also has several AI features like Studio Sound, Background Removal, Eye Tracking, Autodub, and more. I use it especially for YouTube Shorts.
▶️ TubeBuddy: https://www.tubebuddy.com/pricing?a=t...
This is about the best tool around for giving you statistics on YouTube videos.
▶️ CleanShot: https://cleanshot.sjv.io/Tftjs
I use this as my primary way of making screenshots. You can save them locally or to the cloud, crop and do other edits, add backgrounds, and more.
▶️ Manning Publications: https://www.manning.com/?utm_source=m...
This is where my first book, "Making Java Groovy", was published, but you can use the link for any Manning books