Skip to main content
POST
Create text completion

Авторизации

Authorization
string
header
обязательно

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Тело

application/json
model
string
обязательно
prompt
обязательно
max_tokens
integer
temperature
number
top_p
number
n
integer
stream
boolean
stop
suffix
string
echo
boolean

Ответ

200 - application/json

Response created successfully

id
string
object
string
Пример:

"text_completion"

created
integer
model
string
choices
object[]
usage
object