Completions

Given a prompt, the model will return a completion.

Create completion

POST https://api.forefront.ai/v1/chat/completions

Creates a model response for the given chat conversation.

Request Body

Name
Type
Description

model*

string

prompt*

string

max_tokens

integer

temeperature

number

stop

array

{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Of course! I'm here to help..."
      }
    }
  ],
  "usage": {
    "input_tokens": 28,
    "output_tokens": 10,
    "total_tokens": 38
  },
  "message": {
    "content": "Of course! I'm here to help."
  }
}

Example request

Last updated