For the conceptual overview, search configuration, and best practices, see the DeepResearch Guide. This page is the TypeScript SDK method reference.
Basic usage
Research modes
Setmode to fast (25 credits per task), standard (100 credits), heavy (500) or max (2,500). Tool and deliverable charges can apply; see pricing and the DeepResearch guide for mode selection.
Creating a task holds its mode price against your balance, so you need at least that amount available (for example 2,500 credits for max). See billing and credit holds for the 402 and 503 responses.
instant mode is not in the SDK’s mode type yet. Call the create endpoint directly to use it.Output formats
Waiting for completion
webhook_secret is returned only once on create - store it immediately:
Reference
create() options
create() options
query (string, required) - research query or task description.Tools (code execution, screenshots, browser, charts)
Tools (code execution, screenshots, browser, charts)
All tools are off by default. You enable them; the agent decides when to use them. Each accepts a boolean or Generated screenshots and charts appear in
{ enabled: boolean, max_calls: number } (max_calls can only be lowered from the system default).result.images with image_type of "screenshot" or "chart". See Pricing for surcharges. Code execution is Python-only with a 30s default timeout (5-60s); screenshots are capped at 15 per task and 5 MB each.Deliverables (CSV, Excel, PowerPoint, Word, PDF)
Deliverables (CSV, Excel, PowerPoint, Word, PDF)
Generate formatted documents from the research (max 10 per task, produced after research completes). Use simple strings or the typed
Deliverable:Each
DeliverableResult has id, type, status, title, url (token-signed, expires), row_count/column_count (CSV/Excel), and error if failed.File attachments and URLs
File attachments and URLs
Response format
Response format
cost is the total price (base mode + tool surcharges); cost_breakdown itemizes it.Task management
Task management
See also
DeepResearch Guide
Search config, webhooks, and use cases
Batch Processing
Run many research tasks in parallel
Human-in-the-loop
Pause at checkpoints to guide the agent
API Reference
REST endpoint documentation