Completions
This api call accepts a single prompt and returns a single text. It is used in places that do not need context.
Completion API
POST
/api/chat/completions
Headers
Name
Value
Content-Type
application/json
API-Key
<token>
Body
Name
Type
Description
prompt
string
The prompt you are passing to the LLM
Who is the president of Kenya
systemPrompt
(optional)
string
Set default system message
You are a professional researcher
Response
Last updated