Parallel
The Parallel provider supports web-grounded decisions. It retrieves evidence from the live web and answers boolean, choice, and score questions against that shared evidence.
Setup
Install the provider:
Set the PARALLEL_API_KEY environment variable, or create an instance:
createParallel also accepts baseURL (default https://api.parallel.ai/v1),
headers, and a custom fetch implementation.
Decision Models
fast is currently the only documented mode. The mode argument is required; other mode strings are forwarded to Parallel for validation so newly released modes can be used without an SDK update. It is sent as mode, not model, to Parallel.
Parallel accepts 1–100 related questions, 2–255 choice options, and 2–10 score
levels. Scores are zero-based probability-weighted means and can be fractional.
Boolean values represent estimated probability of truth, not confidence in an answer.
File inputs and box questions are unsupported.
Citations and Provider Metadata
result.providerMetadata.parallel contains:
citations: source objects withurl, optional/nullabletitle, andexcerpts.decisionId: the provider's decision identifier.mode: the execution mode.confidence: native confidence, keyed by question ID when supplied.legend: score level descriptions, keyed by question ID.
Citations apply to the whole request. Parallel provides no per-answer source
mapping. Empty citations and empty excerpt arrays are preserved.
The package exports ParallelDecisionProviderMetadata for typed metadata access.
Evidence excerpts are included by default. To omit them from the response:
This retains URLs and available titles. It does not change the evidence used
to make decisions. Parallel refusal answers are preserved by the model adapter;
decide applies the AI SDK's standard refusal handling.
The provider supports synchronous decision calls. It does not implement language generation or streaming.
Decision Model Capabilities
| Model | Boolean | Choice | Score | Box | Image Input | Reasoning | Max Output Tokens |
|---|---|---|---|---|---|---|---|
fast |
Provider Option Catalog
| Operation | Option | Description |
|---|---|---|
| decision | includeExcerpts | Include evidence excerpts in citations. Defaults to true. |