> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parallel Responses API

> Migrate from Parallel Chat to the Parallel Responses API for web research.

The [Parallel Responses API](https://docs.parallel.ai/responses-api/responses-quickstart) answers questions using live web research and returns answers with citations.

> [!WARNING]
>
> Parallel's Chat API is deprecated. Replace integrations using `ChatParallel` or `ChatParallelWeb` with the Responses API.

## Migrate to Responses

Use the OpenAI Python SDK to call `https://api.parallel.ai/v1/responses`. Pointing an existing Chat Completions client or `ChatParallel` instance at a new model name is not sufficient. Responses uses a different endpoint and request shape.

Install the SDK:

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
pip install -U openai
```

Set `PARALLEL_API_KEY` to your [Parallel API key](https://platform.parallel.ai/), then create a response:

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["PARALLEL_API_KEY"],
    base_url="https://api.parallel.ai/v1",
    timeout=120.0,
)

response = client.responses.create(
    model="parallel",
    input="Who is the current CEO of the largest cloud provider by revenue?",
    reasoning={"effort": "low"},
)

print(response.output_text)
```

Use `model="parallel"` and select a research tier with `reasoning.effort`: `low`, `medium`, `high`, or `auto`. The default effort is `medium`. Higher effort performs more research; `high` requests can take up to a minute.

The Responses API uses `input` for the request. Read the answer through the SDK's `response.output_text` accessor. Do not reuse Chat API model names or assume that its response metadata has the same shape.

## Use Parallel with LangChain

For agent tool calls, use the [Parallel search tool](https://docs.langchain.com/oss/python/integrations/tools/parallel_search) and [extract tool](https://docs.langchain.com/oss/python/integrations/tools/parallel_extract) with a tool-calling model. These integrations use the separate Search and Extract APIs.

For a research tool backed by Responses, see Parallel's [research subagent guide](https://docs.parallel.ai/responses-api/responses-quickstart#use-it-as-a-research-subagent).

## See also

* [Responses API compatibility](https://docs.parallel.ai/responses-api/openai-compatibility)
* [Parallel integrations](https://docs.langchain.com/oss/python/integrations/providers/parallel)

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/chat/parallel.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
