Skip to main content
POST
Native OpenAI Format

Authorizations

Authorization
string
header
required

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

Response created successfully

id
string
object
string
Example:

"text_completion"

created
integer
model
string
choices
object[]
usage
object