Skip to main content
POST
创建文本补全

Authorizations

Authorization
string
header
required

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Body

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

Response

200 - application/json

成功创建响应

id
string
object
string
Example:

"text_completion"

created
integer
model
string
choices
object[]
usage
object