Skip to main content
The Batch API accepts 1-100 DeepResearch tasks per add request and schedules them for processing with shared configuration, unified monitoring, and aggregated cost tracking. Use it for bulk research where many queries share the same mode, output formats, and search settings. For your first batch, follow the batch quickstart. This guide covers shared settings, pagination, failures and completion notifications. Use individual tasks when you need files, deliverables or MCP servers.

Workflow: create, add tasks, wait

Create the batch with shared settings, save its batch_id, then add queries in requests of up to 100 tasks. Track task counts until the batch reaches a terminal state. Actual concurrency depends on account limits and capacity. Keep your submitted queries and their task IDs so you can reconcile every input with a completed, failed or cancelled result. Do not treat a completed-only results page as proof that the whole batch succeeded.

Shared vs per-task configuration

Tasks inherit mode, output_formats, and search from the batch and cannot override them. Each task can set its own research_strategy, report_format, urls, and metadata. Mode pricing and search parameters are identical to standard DeepResearch - see the search configuration section for the full source list, date filters, and category options. Set them in the batch search object and they apply to every task.

Retrieve results

Check the batch status and task counts for failures as well as successes. A completed-only listing omits failed and cancelled tasks; use an unfiltered listing to reconcile every submitted query. Use list_tasks with include_output=True to get full outputs. It’s paginated; follow pagination.last_key for more pages.
include_output defaults to false for a lightweight status-only listing. Set it to true only when you need full output, sources, and cost per task.

Batch and task statuses

Individual tasks use the standard queued / running / completed / failed / cancelled states.

Webhooks

Set a webhook_url to get notified when the batch reaches a terminal state (completed, completed_with_errors, or cancelled) instead of polling.

Limitations

The batch API does not support deliverables, files, mcp_servers, previous_reports, or alert_email, and code_execution is always on. Use individual task creation (POST /v1/deepresearch/tasks) if you need any of these. Other constraints: 1-100 tasks per request; the batch must be open or processing to add tasks.

Billing

Creating a batch is free and holds nothing. Adding tasks holds the mode price of every task in the request against your balance in one all-or-nothing step: either every task is added or none are. If your available balance (after holds for your other queued and running tasks) is too low, you get a 402 whose error message starts with Insufficient credits for N tasks and states the total cost, your available balance and how many tasks you can afford. If billing cannot be checked, you get 503 with {"error": "Billing temporarily unavailable"} and nothing is added; retry with backoff. A task that waits in the queue for more than 48 hours needs enough balance when it starts, otherwise it fails with an Insufficient credits - ... error. Failed tasks are not charged. The batch cost field is the sum of its tasks’ charges. See billing and credit holds.

Next steps

DeepResearch guide

Individual task features: files, deliverables, MCP servers

Python SDK

Python batch methods

TypeScript SDK

TypeScript batch methods

API reference

Batch endpoint documentation