Skip to navigation

Completions

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Generated from CreateCompletionRequest plus Sikaru extensions; unknown fields are rejected.

modelstringRequired
promptstring or list of anyRequired
streamtrueRequired
best_ofinteger or nullOptional0-20
echoboolean or nullOptional
frequency_penaltydouble or nullOptional-2-2
logit_biasmap from strings to any or nullOptional
logprobsinteger or nullOptional0-5
max_tokensinteger or nullOptional
min_pdouble or nullOptional0-1
modelslist of strings or nullOptional
ninteger or nullOptional1-128
presence_penaltydouble or nullOptional-2-2
providermap from strings to any or nullOptional
repetition_penaltydouble or nullOptional
routestring or nullOptional
seedinteger or nullOptional
stopstring or list of strings or nullOptional
stream_optionsmap from strings to any or nullOptional
suffixstring or nullOptional
temperaturedouble or nullOptional0-2
top_kinteger or nullOptional>=0
top_pdouble or nullOptional0-1
transformslist of strings or nullOptional
typical_pdouble or nullOptional0-1
usagemap from strings to any or nullOptional
userstring or nullOptional

Response

idstring
objectstring
choiceslist of objects or nullOptional
createdinteger or nullOptional
modelstring or nullOptional
usageobject or nullOptional

Public CreateChatCompletionResponse fields at this level (CHAT_USAGE_FIELDS); the projection omits the rest.