API → AIGenerate code completions for KCL
beta

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object 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": "J",
    "next_indent": 25,
    "prompt_tokens": 22,
    "suffix_tokens": 14,
    "trim_by_indentation": false
  },
  "max_tokens": 25,
  "n": 10,
  "nwo": "3o6NY",
  "prompt": "IfYEioQ",
  "stop": [
    "qiFq"
  ],
  "stream": true,
  "suffix": "QpAUB5kLKuJo0FKIYAvTy2fMwmmDbv",
  "temperature": 32,
  "top_p": 30
}'
201 Created
Response
{
  "completions": [
    "nwrhdD7FUgD8QribaJHVwr"
  ]
}