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": "hhrdQcuW8Co2fHZoW2KK",
    "next_indent": 6,
    "prompt_tokens": 19,
    "suffix_tokens": 4,
    "trim_by_indentation": false
  },
  "max_tokens": 19,
  "n": 13,
  "nwo": "oPqHSFdXSuHxSxhpAe",
  "prompt": "oZnZZP88X5wTvv5B9Q3R7Z",
  "stop": [
    "G4hiUtSIezAg1o"
  ],
  "stream": true,
  "suffix": "dxTTvA3Tqbi38Ze",
  "temperature": 15,
  "top_p": 18
}'
201 Created
Response
{
  "completions": [
    "BFzpgIV9Jv3ilaKvaVrqpkJzn5S2"
  ]
}