Parallel product contracts
Verified against the official Parallel OpenAPI and product docs on 2026-07-14. Use this reference only when Search excerpts do not preserve the old behavior.
Contents
Extract API
Use Extract for known URLs when the application needs focused excerpts or page bodies.
- Endpoint:
POST https://api.parallel.ai/v1/extract - Auth:
x-api-key: $PARALLEL_API_KEY - SDK:
parallel-webexposesclient.extract(...)in Python and TypeScript. - Input:
urlsis required and accepts up to 20 URLs.objective,search_queries,max_chars_total,session_id,client_model, andadvanced_settingsare optional. - Full page body: set
advanced_settings.full_contenttotrueor to{max_chars_per_result: ...}. Full content is off by default. - Output:
results,errors, andsession_idare required arrays/fields. Each successful result hasurl,excerpts, optionaltitle, optionalpublish_date, and optionalfull_content.
Example:
extract = client.extract(
urls=selected_urls,
objective=objective,
search_queries=search_queries,
session_id=search_response.session_id,
advanced_settings={"full_content": {"max_chars_per_result": 20_000}},
)Treat an HTTP 200 as a possibly partial success. A requested URL can appear in errors instead of results. Do not zip the returned results to the input list or assume result order. Reconcile unique URLs explicitly, preserve per-URL errors, and test mixed success. If duplicate input URLs are meaningful to the caller, preserve an application-owned request identifier because URL alone is ambiguous.
full_content and excerpts are markdown. If the old application promised plain text, convert at the application boundary and test the conversion. Preserve old timeout and content-size limits deliberately; legacy-provider numeric settings do not transfer one for one.
Chat API
Use Chat for an interactive grounded completion when the old path returned an answer rather than only sources.
- Endpoint:
POST https://api.parallel.ai/chat/completions - Auth:
Authorization: Bearer $PARALLEL_API_KEY - SDK: use the
openaipackage withbase_url/baseURLset tohttps://api.parallel.ai. This is not aparallel-webclient method. - Models:
speedis the low-latency option;lite,base, andcoreare research models with research-basis support. - Streaming and
response_formatare supported. Several OpenAI-compatible controls, including token limits,top_p, andstop, are documented as ignored.
Example:
from openai import OpenAI
chat = OpenAI(api_key=parallel_key, base_url="https://api.parallel.ai")
response = chat.chat.completions.create(
model="speed",
messages=[{"role": "user", "content": question}],
stream=False,
)Preserve whether the old contract streamed, returned JSON, exposed citations, or accepted conversation history. Do not copy unsupported generation controls and assume they still work. For research models, preserve the Parallel-specific basis data when the application exposed citations or provenance.
Task API
Use Task for multi-step research, structured synthesis, or deep provider modes whose consumed output is not a ranked page list.
- Create:
POST https://api.parallel.ai/v1/tasks/runswithx-api-keyauth, orclient.task_run.create(...)/client.taskRun.create(...)fromparallel-web. - Execution is asynchronous. Creation normally returns a running task; completion can take many minutes.
- Poll with the SDK retrieve/result methods, use a webhook for completion notification, or consume server-sent events for progress. A webhook reports status and metadata; fetch the result separately.
- Preserve the selected processor, input, output schema, citations/research basis, terminal failure states, cancellation, timeout budget, and streaming/progress behavior.
Do not replace an old synchronous handler with an unbounded blocking call. Choose polling, webhook, or SSE based on the existing caller contract. Bound polling, handle failed and cancelled terminal states, and make retries idempotent where the surrounding application requires it.
Migration rules
- Tavily
include_raw_contentor Extractraw_contentmaps to Parallel Extract with full content enabled, not to Search excerpts unless snippets satisfy the caller contract. - Exa
contents.text, standalone Contents, or combined deprecatedcontextmaps to Search excerpts only when snippets suffice; otherwise use Extract. - Tavily
include_answer, Exa Answer, and other interactive synthesis can map to Chat or the application's existing model. - Exa deep output, Tavily Research, and structured multi-step synthesis can map to Task.
- Perplexity Search API maps to Search, but grouped multi-query results require separate calls when grouping is caller-visible.
- Perplexity Sonar cited answers default to Chat or the application's existing synthesis layer for foreground answer flows; use Task when the consumed behavior is deep, structured, or asynchronous research. Preserve latency, streaming, citations,
search_results, media, and structured output rather than treating OpenAI-compatible request shapes as behavioral equivalence. - Perplexity Agent presets are research profiles, not stable equivalents of Parallel processors. When the Agent call's consumed behavior is web research and synthesis, select a Task processor from the actual effective tools, step depth, latency, freshness, and output contract. Use the behavior-first starting points in perplexity.md, and preserve any synchronous handler through an explicit lifecycle design.
- Perplexity Agent
web_searchmaps to Search,fetch_urlto Extract, andpeople_searchto Entity Search or an explicitly chosen discovery workflow such as FindAll or Task. Perplexity Search API calls withsearch_type="people"need the same explicit entity route rather than ordinary web Search. Hosted Agent tools cannot be redirected; expose these routes through application-executed custom functions or move the tool loop to another orchestrator. - Perplexity Agent
finance_searchcan use Parallel's general index: Search for source results, Chat for an interactive financial answer, or Task for multi-step or schema-shaped research. If the caller consumes rawfinance_results, add an application-owned normalizer and verify the required market-data coverage and freshness instead of treating the final answer as the same contract. - Perplexity embeddings and general Agent model/tool orchestration are not Parallel Search replacements. Keep them separate or stop for a product decision.
- Firecrawl Search
webresults generally map to Search. Preserve source-group behavior, query semantics, filters, and any attachedscrapeOptionscontent deliberately. - Firecrawl Scrape and Batch Scrape can map to Extract only when the caller needs public-URL markdown, focused excerpts, or full content. Chunk more than 20 URLs and preserve per-URL errors, ordering, concurrency, and any asynchronous job contract in the application.
- Firecrawl Extract can map to Task for multi-page open-web structured research, or to Parallel Extract plus an application-owned model for deterministic structured extraction from known public URLs. Preserve the JSON Schema and asynchronous lifecycle; the similarly named APIs are not one-to-one.
- Firecrawl Agent with
strictConstrainToURLs=Truedoes not map to a Task domain allow-list. Use Extract plus an application-owned model/parser when exact known-URL retrieval satisfies the contract; otherwise retain or block until broader source scope is approved. Task has no direct FirecrawlmaxCreditsequivalent, andspark-1-*names do not determine a Parallel processor. - Firecrawl Crawl, Map, Parse uploads, Browser, Interact, screenshots, and rich scrape formats have no verified one-call Parallel replacement. Stop or retain those capabilities until an explicit design is approved.
- Tavily Crawl/Map and provider-specific images have no verified one-call Parallel Search equivalent. Stop and propose an explicit design instead of silently deleting them.