The cost of the task can be calculated on the Pricing page.
Live Perplexity LLM Responses
Live Perplexity LLM Responses endpoint allows you to retrieve structured responses from a specific Perplexity AI model, based on the input parameters.
Note: Perplexity uses web_search in all sonar-family models by default, but it’s not guaranteed to work with every request.