Native OpenAI Format
POST /v1/completions
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Required | - |
prompt | string | array<string> | Required | - |
max_tokens | integer | Optional | - |
temperature | number | Optional | - |
top_p | number | Optional | - |
n | integer | Optional | - |
stream | boolean | Optional | - |
stop | string | array<string> | Optional | - |
suffix | string | Optional | - |
echo | boolean | Optional | - |
Request Example
{
"body": {
"model": "string",
"prompt": "string"
}
}
Response Fields(200)
| Field Name | Type | Description |
|---|---|---|
model | string | - |
prompt | string | array<string> | - |
max_tokens | integer | - |
temperature | number | - |
top_p | number | - |
n | integer | - |
stream | boolean | - |
stop | string | array<string> | - |
suffix | string | - |
echo | boolean | - |