Web Search

web/search/perplexityai by Perplexity AI
Web SearchProvider default · Sync · Text input
Price from
$0.001 / token
Tasks
1
Web Search
Regions
Mode
sync
Input
Text
Output
query, results, answer, sources, images

About Perplexity AI Web Search

Search the web for a query and return ranked results (title, URL, and a snippet or the page content).

Perplexity AI Web Search is Perplexity AI's default model for Web Search available on Eden AI for Web Search, from $0.001 / token. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint.

Learn more about Web Search APIs on Eden AI

Tasks and prices

Perplexity AI Web Search is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.

Task
Price
Regions
Mode
Docs
Playground
Web Searchweb/search/perplexityai
$0.001 / token
sync

Parameters

What you send and what you get back when you call Perplexity AI Web Search through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • query (required): text. The web search query
  • max_results: number. Max number of search results to return
  • depth: enum. Search depth tier. `deep` is refused with a 400 on deepseek, perplexityai and zai, which run one tier only.

Response

  • query
  • results
  • answer
  • sources
  • images

Estimate your monthly cost

Enter your monthly volume for Web Search to compare Perplexity AI Web Search with its cheapest alternatives.

Call Perplexity AI Web Search with Eden AI

Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.

import requests

response = requests.post(
    "https://api.edenai.run/v3/universal-ai",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "web/search/perplexityai",
        "input": {"query": "Latest news about AI regulation in Europe"},
    },
)
print(response.json())

Questions about Perplexity AI Web Search

On Eden AI, Perplexity AI Web Search costs $0.001 / token for Web Search. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Perplexity AI Web Search is available for: Web Search. Input: Text. Output: query, results, answer, sources, images.

Eden AI offers Web Search from 6 providers, all callable with the same API key. The cheapest models are compared just below.

More from Perplexity AI

Other Perplexity AI models on Eden AI, for every task.