This demo is powered by two APIs: You.com Web Search for live web intel and Parasail for inference on open-weight models. Each section below shows what the API does, how to call it, and what it costs.
Models like GPT-4 and Claude are proprietary; you access them only through the vendor's API. Open-weight models (GLM, Kimi, MiniMax, DeepSeek, Qwen) have publicly released weights, so inference providers like Parasail can host and serve them through an OpenAI-compatible API, with full model choice at a fraction of the cost. But they share one hard constraint: a knowledge cutoff. Training ends on a fixed date, and everything after it is a blank. You.com Web Search is what fills that gap, fetching live web results at query time so the model can reason about the world as it is today, not as it was when training stopped.
Returns live news + web results in a single call — no scraping, no stale index. Used in this demo to ground every LLM step in fresh company signals. Add livecrawl=web to get full page markdown, not just snippets.
| Tier | Cost | Notes |
|---|---|---|
| Search (web + news) | $5.00 / 1k calls | $0.005 per call |
| Livecrawl | $1.00 / 1k URLs | First 10 URLs per call free |
Goes beyond raw results — runs multiple searches autonomously, reads through sources, and synthesizes a cited, natural-language answer. You get a markdown response with inline citations [[1, 2]] plus the source list. Depth is controlled by the research_effort tier.
| Effort tier | Cost / call | Latency | Best for |
|---|---|---|---|
| Lite | $0.012 | <10s | Quick lookups, high volume |
| Standard | $0.050 | 10–30s | Most production use |
| Deep | $0.100 | <2 min | Complex, multi-faceted questions |
| Exhaustive | $0.450 | <5 min | Comprehensive analysis |
The table below covers the 5 models used in this demo. Parasail hosts many more — run the discovery snippet above to see everything available on your key.
| Model | Provider | Input $/1M | Output $/1M |
|---|---|---|---|
| Loading… | |||
You.com Web Search: $5.00 / 1,000 queries ($0.005 per call). Livecrawl: first 10 URLs included; excess at $1 / 1,000 URLs.
A full pipeline run (search + brief + email) costs roughly $0.003–$0.005 total — about 300 accounts per dollar.
Loading…
| File | What it does |
|---|---|
server.py |
HTTP server — routes requests, streams SSE events to the UI |
index.html |
Single-page frontend — all three tabs, no build step |
search_tool.py |
You.com Search API wrapper — tool schema, system prompt, and execute_search() |
base_agent.py |
Tool-use loop — OpenAICompatibleAgent drives the search → LLM → search cycle |
models.py |
Model registry — display names, model IDs, and per-token pricing |
costs.py |
Cost calculation — token + search call pricing formatted for the UI |
agents/parasail_agent.py |
Parasail-specific agent — client setup, model defaults, wires into OpenAICompatibleAgent |
agents/pipeline_agent.py |
Three-stage pipeline — enrich(), brief_stream(), email_stream() |
.env.example |
Environment variable template — copy to .env and add your API keys |