OpenAI Compatible

OpenAI Compatible Chat Completions (Simple Chatbots)

post

Provides a drop-in replacement for the OpenAI Chat Completions API, designed specifically for Simple Chatbots built in Waterflai. This endpoint is not intended for executing Chatflows or Workflows. You can use this for both streaming and non-streaming responses.

Authorizations
X-API-KeystringRequired

Your secret API key.

Body
modelstringRequired

The ID of the Simple Chatbot to use for this completion.

conversation_idstringOptional

A unique identifier for the conversation session.

Default: UID
streambooleanOptional

If set, partial message deltas will be sent, like in ChatGPT.

Default: false
temperaturenumber · floatOptionalDefault: 0.7
top_pnumber · floatOptionalDefault: 1
nintegerOptionalDefault: 1
max_tokensintegerOptionalDefault: 4096
stopone ofOptional
stringOptional
or
string[]Optional
presence_penaltynumber · floatOptionalDefault: 0
frequency_penaltynumber · floatOptionalDefault: 0
Responses
200

Successful response. The format depends on the stream parameter in the request.

post
/v1/chat/completions

Last updated