POST
Completions

授权

Authorization
string
header
必填

ZeroCat API 密钥(sk- 开头),在控制台「API 密钥」页面创建。 格式: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

成功创建响应

id
string
object
string
示例:

"text_completion"

created
integer
model
string
choices
object[]
usage
object