API Reference

Parasail offers a direct drop-in replacement for OpenAI's batch API. The same documentation, guides, and cookbooks apply.

You can use OpenAI's or community-built client libraries for your preferred language.

The only workflow changes are:

  • Use the Parasail URL: https://api.saas.parasail.io

  • Use your Parasail API key. Create one here.

  • Use an open model that Parasail supports instead of ChatGPT.

OpenAI API reference

OpenAI Batch API reference

OpenAI Files API reference

Client Setup

# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.saas.parasail.io/v1",
    api_key="$PARASAIL_API_KEY",
)

Chat Completions vs Text Completions

As long as vLLM keeps support for both, Parasail has support for both endpoints.

/completions endpoint provides the completion for a single prompt and takes a single string as an input, whereas the /chat/completions provides the responses for a given dialog and requires the input in a specific format corresponding to the message history.

Last updated