Skip to main content
Parallel provides a suite of web research APIs built specifically for AI agents. By combining Parallel’s high-accuracy Search, Extract, and Monitor APIs with Cerebras’ ultra-fast inference, you can build agents that search the web, extract structured content, and monitor for real-time updates—all with sub-second response times.

Prerequisites

Before you begin, ensure you have:
  • Cerebras API Key - Get a free API key here.
  • Parallel API Key - Visit Parallel and create an account to get your API key.
  • Python 3.10 or higher or Node.js 20 or higher
Parallel’s APIs are designed to deliver token-efficient, LLM-ready content. Combined with Cerebras’ fast inference (available models: gpt-oss-120b, zai-glm-4.7), your agents can perform complex web research tasks with minimal latency.

Configure Parallel with Cerebras

1

Install required dependencies

Install the Parallel SDK and OpenAI client library. The OpenAI client is used to connect to Cerebras’ OpenAI-compatible API.
2

Configure environment variables

Create a .env file in your project directory to securely store your API keys:
3

Perform your first web search

The Parallel Search API returns high-accuracy, compressed excerpts optimized for LLM context windows. Here’s a simple example that searches the web and uses Cerebras to synthesize the results:
The Search API’s objective parameter accepts natural language descriptions of your research goal, making it intuitive for agents to use programmatically.

Core APIs

Parallel offers three main APIs that work together for comprehensive web research:

Search API

The Search API is engineered for AI agents, delivering the most relevant, token-efficient web data at the lowest cost.

Search with Cerebras Synthesis

Combine Parallel’s search with Cerebras’ fast inference to create a complete research workflow:

Extract API

The Extract API converts web pages and PDFs to LLM-ready markdown. It supports two modes:
  • Compressed excerpts: Dense, objective-focused extractions
  • Full content extraction: Complete page content in markdown format

Extract Compressed Excerpts

Extract Full Content

Search + Extract Workflow

Combine Search and Extract for comprehensive research:

Monitor API

The Monitor API flips the traditional pull model to push—create queries that trigger notifications when new information is published to the web.

Create a Monitor

Monitor Use Cases

  • Proactive sub-agent: Create agents that are invoked when web changes are detected
  • Workflow trigger: Trigger workflows when new information surfaces (e.g., add leads to CRM)
  • Continuous intelligence feed: Maintain always-up-to-date data feeds for investment research

Building a Search Agent with Vercel AI SDK

For production applications, you can build a full-stack search agent using the Vercel AI SDK with Cerebras:
skip

Choosing the Right Cerebras Model

Different research tasks benefit from different models:

Next Steps

Troubleshooting

Try these approaches:
  1. Be more specific in your objective - Instead of “AI news”, try “Recent announcements about large language model capabilities from major AI labs”
  2. Use multiple search queries - Provide explicit search_queries to cover different angles
  3. Increase max_results - Get more results and let the LLM filter for relevance
  4. Use the “pro” processor - For fresher, higher-quality results (at higher cost)
Some pages require special handling:
  1. JavaScript-rendered content - Parallel handles most JS-rendered sites, but some may require additional wait time
  2. PDFs - Parallel supports multi-page PDF extraction, including images
  3. Paywalled content - Some content may not be accessible; check the extraction status in the response
Choose based on your research complexity:
  • Complex synthesis (multiple sources, nuanced analysis): gpt-oss-120b
  • Structured extraction (tables, lists, specific data): gpt-oss-120b
  • High-volume pipelines (many simple queries): gpt-oss-120b
  • Coding/technical research: zai-glm-4.7

Additional Resources