completions

Inference: Completion

Compatible with OpenAI's Completions API.

post/completions

Request

Request body

modelstring required

The model to use for the request.

promptstring required

The input prompt to generate completions for.

max_tokensinteger

The maximum number of tokens to generate. Must be between 1 and 32000.

temperaturenumber

Sampling temperature to use. Must be between 0.0 and 2.0.

streamboolean

Whether to stream responses incrementally.

Example request

{
  "model": "Hermes-4.3-36B",
  "prompt": "Once upon a time",
  "max_tokens": 60,
  "temperature": 0.8,
  "stream": true
}

Response

Successful Response

idstring

Unique identifier for the response.

objectstring
createdinteger

Timestamp of response creation.

modelstring

The model used.

Example response

{
  "object": "text_completion"
}

Changes

No recorded changes to this operation across all 1 revision of this API.