Skip to main content
POST
Create text completion

Autorisations

Authorization
string
header
requis

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

Corps

application/json
model
string
requis
prompt
requis
max_tokens
integer
temperature
number
top_p
number
n
integer
stream
boolean
stop
suffix
string
echo
boolean

Réponse

200 - application/json

Response created successfully

id
string
object
string
Exemple:

"text_completion"

created
integer
model
string
choices
object[]
usage
object