Movatterモバイル変換


[0]ホーム

URL:


Parallel
[Menu]

#Introducing the Parallel Chat API

Starting today, the Parallel Chat API is generally available in beta - bringing real-time web research to interactive AI applications using our rapidly growing web index.

Reading time:1 min
Introducing the Parallel Chat API - a low latency web research API for web based LLM completions. The Parallel Chat API returns completions in text and structured JSON format, and is OpenAI Chat Completions compatible.

The Chat API returns OpenAI ChatCompletions compatible streaming text and JSON with the low latency your interactive apps need. It is built with the same obsession for price-performance that we’ve demonstrated with theTask API[Task API]($https://parallel.ai/blog/parallel-task-api).

###Python Code Snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from openaiimport OpenAIclient = OpenAI( api_key="PARALLEL_API_KEY",# Your Parallel API key base_url="https://beta.parallel.ai"# Parallel's API beta endpoint)response = client.chat.completions.create( model="speed",# Parallel model name messages=[ {"role":"user","content":"What does Parallel Web Systems do?"} ], response_format={"type":"json_schema","json_schema": {"name":"reasoning_schema","schema": {"type":"object","properties": {"reasoning": {"type":"string","description":"Think step by step to arrive at the answer", },"answer": {"type":"string","description":"The direct answer to the question", },"citations": {"type":"array","items": {"type":"string"},"description":"Sources cited to support the answer", }, }, }, }, },)print(response.choices[0].message.content)```
from openai import OpenAI
 
client = OpenAI(
api_key="PARALLEL_API_KEY", # Your Parallel API key
base_url="https://beta.parallel.ai" # Parallel's API beta endpoint
)
 
response = client.chat.completions.create(
model="speed", # Parallel model name
messages=[
{"role": "user", "content": "What does Parallel Web Systems do?"}
],
response_format={
"type": "json_schema",
"json_schema": {
"name": "reasoning_schema",
"schema": {
"type": "object",
"properties": {
"reasoning": {
"type": "string",
"description": "Think step by step to arrive at the answer",
},
"answer": {
"type": "string",
"description": "The direct answer to the question",
},
"citations": {
"type": "array",
"items": {"type": "string"},
"description": "Sources cited to support the answer",
},
},
},
},
},
)
 
print(response.choices[0].message.content)
```

Last year, we started building our own web crawler and index, recognizing that AIs need native infrastructure to query and reason over the web. The Chat API answers instantly using our index, while the Task API combines our index with real-time web crawling for maximum accuracy and the freshest data. Both APIs return comprehensive citations so you can always verify responses.

Illustration demonstrating deep research API concepts, web search capabilities, or AI agent integration features
![](https://cdn.sanity.io/images/5hzduz3y/production/dfe299127abfeba88c55260ef84f9a465d733a65-1572x1080.gif)

##
**Start building.**

Get started in ourDeveloper Platform[Developer Platform]($https://platform.parallel.ai/play/chat) or dive into thedocumentation[documentation]($https://docs.parallel.ai/chat-api/chat-quickstart).

Parallel avatar

By Parallel

May 30, 2025

##Related Posts40


[8]ページ先頭

©2009-2025 Movatter.jp