跳转到主要内容
POST
Native OpenAI Format

授权

Authorization
string
header
必填

Use Bearer Token authentication 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