OpenAI Compatible
Authorizations
X-API-KeystringRequired
Your secret API key.
Body
modelstringRequired
The ID of the Simple Chatbot to use for this completion.
conversation_idstringOptionalDefault:
A unique identifier for the conversation session.
UIDstreambooleanOptionalDefault:
If set, partial message deltas will be sent, like in ChatGPT.
falsetemperaturenumber · floatOptionalDefault:
0.7top_pnumber · floatOptionalDefault:
1nintegerOptionalDefault:
1max_tokensintegerOptionalDefault:
4096stopone ofOptional
stringOptional
string[]Optional
presence_penaltynumber · floatOptionalDefault:
0frequency_penaltynumber · floatOptionalDefault:
0Responses
200
Successful response. The format depends on the stream parameter in the request.
401
API key is missing or invalid.
application/json
499
Client Closed Request. This custom status code indicates an internal inference error occurred. It is used to prevent client-side retries for errors that have already been handled or retried internally.
application/json
500
An unexpected error occurred on the server.
application/json
post
/v1/chat/completionsLast updated