Skip to content

Collection of quick projects to build with Sonar APIs

Notifications You must be signed in to change notification settings

ppl-ai/api-cookbook

Repository files navigation

Sonar API Projects

A collection of practical applications and tools built with Perplexity's Sonar API, the fastest, most cost-effective AI answer engine with robust search capabilities.

⚠️ API Key Required

Before you begin: You'll need a Perplexity API key to use any project in this repository.

Sign up for an API key by following the steps in the Perplexity documentation.

About This Repository

This repository contains various projects that demonstrate how to leverage Perplexity's Sonar API for different use cases. Each project is designed to showcase the API's capabilities while providing practical, ready-to-use tools for developers.

Projects

Fact Checker CLI

The flagship project in this collection is a command-line tool that analyzes claims or articles for factual accuracy. Using Sonar API's powerful search capabilities, it identifies false or misleading statements, provides corrections, and cites reliable sources.

Read more about the Fact Checker CLI →

Coming Soon

We're actively working on adding more projects to this collection:

  • Research Assistant: Automated literature review and summarization tool
  • News Analyzer: Track developing stories and analyze reporting biases
  • Content Verifier: Browser extension for real-time fact checking
  • Data Explorer: Query and visualize complex datasets through natural language

Why Sonar API?

Perplexity's Sonar API offers several advantages that make it ideal for building powerful AI applications:

  • Fast & Cost-Effective: Get reliable answers at a fraction of the cost of other AI APIs
  • Search Grounding: Internet-connected models that can access and cite the latest information
  • Easy Integration: Simple, straightforward API that developers can integrate in minutes
  • Scalable Pricing: Pay-as-you-go model that scales with your usage

Getting Started

To use any of the projects in this repository, you'll need:

  1. A Perplexity API key (sign up here)
  2. Python 3.7+ installed on your system

Each project includes its own README with specific installation and usage instructions.

API Access

You can sign up for Perplexity's Sonar API at sonar.perplexity.ai.

The API offers:

  • Free tier to get started
  • Straightforward documentation
  • Transparent usage-based pricing

Contributing

Contributions to this repository are welcome! Whether you want to:

  • Fix bugs in existing projects
  • Add new features to current tools
  • Contribute entirely new Sonar API projects
  • Improve documentation or examples

Please check the CONTRIBUTING.md file for guidelines.

License

Unless otherwise specified, all projects in this repository are licensed under the MIT License. See the LICENSE file for details.


Build with the best AI answer engine. Power your products with the fastest, cheapest API offering out there with search grounding. Get started in minutes.