
Web Search
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.
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.
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())
curl https://api.edenai.run/v3/universal-ai \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "web/search/perplexityai", "input": {"query": "Latest news about AI regulation in Europe"}}'
const response = await fetch("https://api.edenai.run/v3/universal-ai", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "web/search/perplexityai",
input: {"query": "Latest news about AI regulation in Europe"},
}),
});
console.log(await response.json());
"query": "Latest news about AI regulation in Europe"
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.
Alternatives for Web Search
Other Web Search models you can call with the same key, cheapest first.
More from Perplexity AI
Other Perplexity AI models on Eden AI, for every task.



