Skip to main content

Overview

Parallel AI’s POST /api/v0/chat/completions endpoint is 100% compatible with OpenAI’s Chat Completions API spec. To migrate an existing integration, you only need to change the base_url in your client — no other code changes are required.
This means any library, tool, or service built for the OpenAI API works out of the box with Parallel AI. Swap the base URL and your API key, and you’re done.

Quick Start

Supported Parameters

The following request parameters are fully supported:

Streaming

Set stream: true to receive a streaming response using Server-Sent Events (SSE), identical to OpenAI’s streaming format.
Each streamed chunk follows the standard OpenAI SSE format with data: prefixed JSON objects, ending with data: [DONE].

Learn More