Skip to content

Completions

This section lists the implemented endpoints under this capability.

Create text completion

POST /v1/completions

Create a text completion from the supplied prompt.

Authentication

  • Bearer Token (Authorization: Bearer <token>)

Request Body

  • Content-Type: application/json
  • Schema: CompletionRequest
Field Type Required Description
model string yes -
prompt - yes -
max_tokens integer no -
temperature number no -
top_p number no -
n integer no -
stream boolean no -
stop - no -
suffix string no -
echo boolean no -

Responses

Status Description Schema
200 Response created successfully CompletionResponse