From the source
From the source
From the source

From the source
The Context API returns the content of web pages that you already have URLs for. Send the URLs to POST /v1/context . The response has one result for each URL, in request order. Each result can include the page as Markdown, its HTML, its links, the passages most relevant to a query, and page metadata.
You can accept a stored copy of a page or force a live fetch. Add criteria with up to five yes or no questions. For each page that it scores, a decision model returns a probability from 0 to 1 for each question. The Context API costs $1.00 per 1,000 fetched URLs.
A URL that fails is free. Scoring with criteria is billed as Decisions API input tokens in addition to the per-URL price. The Perplexity Python library 0.48.0 and the TypeScript SDK 0.43.0 add client.context.create() . See the Context API quickstart .
docs.perplexity.ai