API → AI → Generate code completions for KCLbeta
beta
Parameters
Name
Type
Req.
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
post
/ai/kcl/completions$ curl -X POST "https://api.zoo.dev/ai/kcl/completions" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"extra": {
"language": "74XCgQkz",
"next_indent": 16,
"prompt_tokens": 14,
"suffix_tokens": 19,
"trim_by_indentation": true
},
"max_tokens": 15,
"n": 10,
"nwo": "",
"prompt": "lQ",
"stop": [
"jPF"
],
"stream": false,
"suffix": "pazLUKR",
"temperature": 2,
"top_p": 22
}'
201 Created
Response{
"completions": [
"sbrEA98HUNIVwRA00sO5drE2JD"
]
}