Reference for creating a new deep research task via POST /v1/deepresearch/tasks.
API key for authentication. Get yours at platform.valyu.ai.
Request to create a DeepResearch task.
The research query or question. Use query (preferred) or input (deprecated).
"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024"
Deprecated. Use query instead.
Research mode controlling depth and cost.
| Mode | Price | Best For | Max Steps |
|---|---|---|---|
fast | $0.10 | Quick queries, batch processing | 10 |
standard | $0.50 | Balanced research | 15 |
heavy | $2.50 | Complex topics requiring deep analysis | 15 |
max | $15.00 | Exhaustive research with maximum quality | 25 |
fast, standard, heavy, max "standard"
Deprecated. Use mode instead.
fast, standard, heavy, max Deprecated. Use research_strategy instead. Natural language strategy to guide the research agent's approach.
"Focus on Phase 3 trials and compare efficacy data across studies"
Natural language strategy to guide the research phase. Controls how the agent searches, what sources to prioritize, and research methodology.
"Focus on Phase 3 trials and compare efficacy data across studies"
Natural language instructions for the output format. Has highest priority and overrides default formatting. Controls structure, style, length, and presentation of the final report.
"Write a 2-page executive summary with bullet points and a comparison table"
Search configuration for DeepResearch tasks.
URLs to include in the research context. Max 10.
10[
"https://clinicaltrials.gov/study/NCT12345678"
]Files to analyze as part of the research. Max 10.
10Desired output formats. Defaults to ["markdown"].
"markdown" - Markdown report (default)"pdf" - PDF document (can combine with "markdown")"toon" - Visual toon-style outputJSON schema output cannot be combined with markdown or PDF.
markdown, pdf, toon ["markdown", "pdf"]Arbitrary key-value metadata to attach to the task.
{
"project": "drug-discovery",
"priority": "high"
}MCP servers to provide additional tools during research. Max 5.
5Enable code execution capability for the research agent.
DeepResearch task IDs to use as context for this task. Max 3.
3["a1b2c3d4-e5f6-7890-abcd-ef1234567890"]HTTPS URL to receive a webhook POST when the task completes. Signed with HMAC-SHA256.
"https://your-app.com/webhooks/deepresearch"
Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.
Deliverable files to generate from the research (e.g. Excel reports, presentations). Max 10.
10A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.
500Research task created and queued.
Response after creating a DeepResearch task.
Unique identifier for the research task.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Initial task status. "running" if started immediately, "queued" if waiting for capacity.
running, queued "running"
Research mode used for this task.
fast, standard, heavy, max "standard"
ISO 8601 timestamp of task creation.
"2024-06-15T10:30:00.000Z"
Metadata attached to the task.
Whether the task is publicly accessible.
false
HMAC-SHA256 secret for verifying webhook payloads. Only present when webhook_url was provided.
Status message. Present when task is queued.